Search completed in 1.32 seconds.
linear-gradient() - CSS: Cascading Style Sheets
the
linear-gradient() css function creates an image consisting of a progressive transition between two or more colors along a straight
line.
... syntax /* a gradient tilted 45 degrees, starting blue and finishing red */
linear-gradient(45deg, blue, red); /* a gradient going from the bottom right to the top left corner, starting blue and finishing red */
linear-gradient(to left top, blue, red); /* color stop: a gradient going from the bottom to top, starting blue, turning green at 40% of its length, and finishing red */
linear-gradient(0deg, blue, green 40%, red); /* color hint: a gradient going from the left...
... to right, starting red, getting to the midpoint color 10% of the way across the length of the gradient, taking the rest of the 90% of the length to change to blue */
linear-gradient(.25turn, red, 10%, blue); /* multi-position color stop: a gradient tilted 45 degrees, with a red bottom-left half and a blue top-right half, with a hard
line where the gradient changes from red to blue */
linear-gradient(45deg, red 0 50%, blue 50% 100%); values <side-or-corner> the position of the gradient
line's starting point.
...And 18 more matches
outline-style - CSS: Cascading Style Sheets
the out
line-style css property sets the style of an element's out
line.
... an out
line is a
line that is drawn around an element, outside the border.
... it is often more convenient to use the shorthand property out
line when defining the appearance of an out
line.
...And 18 more matches
box-lines - CSS: Cascading Style Sheets
the box-
lines css property determines whether the box may have a single or multiple
lines (rows for horizontally oriented boxes, columns for vertically oriented boxes).
... /* keyword values */ box-
lines: single; box-
lines: multiple; /* global values */ box-
lines: inherit; box-
lines: initial; box-
lines: unset; by default a horizontal box will lay out its children in a single row, and a vertical box will lay out its children in a single column.
... this behavior can be changed using the box-
lines property.
...And 16 more matches
OfflineAudioContext - Web APIs
the off
lineaudiocontext interface is an audiocontext interface representing an audio-processing graph built from linked together audionodes.
... in contrast with a standard audiocontext, an off
lineaudiocontext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an audiobuffer.
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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/audio...
...And 15 more matches
line-height - CSS: Cascading Style Sheets
the
line-height css property sets the height of a
line box.
... it's commonly used to set the distance between
lines of text.
... on block-level elements, it specifies the minimum height of
line boxes within the element.
...And 15 more matches
Checking when a deadline is due - Web APIs
in this article we look at a complex example involving checking the current time and date against a dead
line stored via indexeddb.
... the main complication here is checking the stored dead
line info (month, hour, day, etc.) against the current time and date taken from a date object.
... the main example application we will be referring to in this article is to-do list notifications, a simple to-do list application that stores task titles and dead
line times and dates via indexeddb, and then provides users with notifications when dead
line dates are reached, via the notification, and vibration apis.
...And 14 more matches
Inline formatting context - CSS: Cascading Style Sheets
this article explains the in
line formatting context core concepts the in
line formatting context is part of the visual rendering of a web page.
... in
line boxes are laid out one after the other, in the direction sentences run in the writing mode in use: in a horizontal writing mode, boxes are laid out horizontally, starting on the left.
... in the example below, the two (<div>) elements with the black borders form a block formatting context, inside which each word participates in an in
line formatting context.
...And 14 more matches
outline - CSS: Cascading Style Sheets
the out
line css shorthand property set all the out
line properties in a single declaration.
... constituent properties this property is a shorthand for the following css properties: out
line-color out
line-style out
line-width syntax /* style */ out
line: solid; /* color | style */ out
line: #f66 dashed; /* style | width */ out
line: inset thick; /* color | style | width */ out
line: green solid 3px; /* global values */ out
line: inherit; out
line: initial; out
line: unset; the out
line property may be specified using one, two, or three of the values listed below.
... note: the out
line will be invisible for many elements if its style is not defined.
...And 14 more matches
outline-color - CSS: Cascading Style Sheets
the out
line-color css property sets the color of an element's out
line.
... syntax /* <color> values */ out
line-color: #f92525; out
line-color: rgb(30,222,121); out
line-color: blue; /* keyword value */ out
line-color: invert; /* global values */ out
line-color: inherit; out
line-color: initial; out
line-color: unset; the out
line-color property is specified as any one of the values listed below.
... values <color> the color of the out
line, specified as a <color>.
...And 11 more matches
repeating-linear-gradient() - CSS: Cascading Style Sheets
the repeating-
linear-gradient() css function creates an image consisting of repeating
linear gradients.
... it is similar to
linear-gradient() and takes the same arguments, but it repeats the color stops infinitely in all directions so as to cover its entire container.
...with each repetition, the positions of the color stops are shifted by a multiple of the length of the basic
linear gradient.
...And 11 more matches
<u>: The Unarticulated Annotation (Underline) element - HTML: Hypertext Markup Language
the html unarticulated annotation element (<u>) represents a span of in
line text which should be rendered in a way that indicates that it has a non-textual annotation.
... this is rendered by default as a simple solid under
line, but may be altered using css.
... this element used to be called the "under
line" element in older versions of html, and is still sometimes misused in this way.
...And 11 more matches
Inline elements - HTML: Hypertext Markup Language
html (hypertext markup language) elements historically were categorized as either "block-level" elements or "in
line-level" elements.
... in
line elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the content.
... in this article, we'll examine html in
line-level elements and how they differ from block-level elements.
...And 11 more matches
stroke-linejoin - SVG: Scalable Vector Graphics
the stroke-
linejoin attribute is a presentation attribute defining the shape to be used at the corners of paths when they are stroked.
... note: as a presentation attribute stroke-
linejoin 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 nine elements: <altglyph>, <path>, <polygon>, <poly
line>, <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" ...
...And 11 more matches
CanvasRenderingContext2D.lineCap - Web APIs
the canvasrenderingcontext2d.
linecap property of the canvas 2d api determines the shape used to draw the end points of
lines.
... note:
lines can be drawn with the stroke(), strokerect(), and stroketext() methods.
... syntax ctx.
linecap = "butt" || "round" || "square"; options "butt" the ends of
lines are squared off at the endpoints.
...And 10 more matches
Grid Lines - MDN Web Docs Glossary: Definitions of Web-related terms
grid
lines are created when you define tracks in the explicit grid using css grid layout.
...this gives us 4 column
lines and 3 row
lines.
...peat(3, 100px); } .wrapper > div { border: 2px solid #ffa94d; border-radius: 5px; background-color: #ffd8a8; padding: 1em; color: #d9480f; } <div class="wrapper"> <div>one</div> <div>two</div> <div>three</div> <div>four</div> <div>five</div> </div> .wrapper { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 100px 100px; }
lines can be addressed using their
line number.
...And 9 more matches
Command line options
command
line options are used to specify various startup options for mozilla applications.
... for example, if you have multiple profiles you can use command
line configuration options to bypass the profile manager and open a specific profile.
...you can open the command
line interface by pressing shift + f2.
...And 9 more matches
SVGLineElement - Web APIs
the svg
lineelement interface provides access to the properties of <
line> elements, as well as methods to manipulate them.
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line points="341,25 351,20 351,30 341,25" stroke="#d4dde4...
...And 9 more matches
text-underline-position - CSS: Cascading Style Sheets
the text-under
line-position css property specifies the position of the under
line which is set using the text-decoration property's under
line value.
... syntax /* single keyword */ text-under
line-position: auto; text-under
line-position: under; text-under
line-position: left; text-under
line-position: right; /* multiple keywords */ text-under
line-position: under left; text-under
line-position: right under; /* global values */ text-under
line-position: inherit; text-under
line-position: initial; text-under
line-position: unset; syntax values auto the user agent uses its own algorithm to place the
line at or under the alphabetic base
line.
... under forces the
line to be set below the alphabetic base
line, at a position where it won't cross any descenders.
...And 9 more matches
baseline-shift - SVG: Scalable Vector Graphics
the base
line-shift attribute allows repositioning of the dominant-base
line relative to the dominant-base
line of the parent text content element.
... note: as a presentation attribute base
line-shift 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 four elements: <altglyph>, <textpath>, <tref>, and <tspan> usage notes value <length-percentage> | sub | super default value 0 animatable yes sub the dominant-base
line is shifted to the default position for subscripts.
...And 9 more matches
<linearGradient> - SVG: Scalable Vector Graphics
the <
lineargradient> element lets authors define
linear gradients that can be applied to fill or stroke of graphical elements.
... don't be confused with css
linear-gradient() as css gradients can only apply to html elements where svg gradient can only apply to svg elements.
... html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <
lineargradient id="mygradient" gradienttransform="rotate(90)"> <stop offset="5%" stop-color="gold" /> <stop offset="95%" stop-color="red" /> </
lineargradient> </defs> <!-- using my
linear gradient --> <circle cx="5" cy="5" r="4" fill="url('#mygradient')" /> </svg> attributes gradientunits this attribute defines the coordinate system for attributes x1, x2, y1, y2 value type: userspaceonuse|objectboundingbox ; default value: objectboundingbox; animatable: yes gradienttransform this attribute provides additional transformation to the gradient coordinate system.
...And 9 more matches
SVGLinearGradientElement - Web APIs
the svg
lineargradientelement interface corresponds to the <
lineargradient> element.
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line points="341,25 351,20 351,30 341,25" stroke="#d4dde4...
...And 8 more matches
Making PWAs work offline with Service workers - Progressive web apps (PWAs)
previous overview: progressive web apps next now that we’ve seen what the structure of js13kpwa looks like and have seen the basic shell up and running, let's look at how the off
line capabilities using service worker are implemented.
...we examine how to add off
line functionality.
...they finally fix issues that front-end developers have struggled with for years — most notably how to properly cache the assets of a website and make them available when the user’s device is off
line.
...And 8 more matches
Providing Command-Line Options - Archive of obsolete content
extensions and xul applications can modify the way command
line parameters are handled by writing a component that implements the nsicommand
linehandler interface and registering it in a category.
... see also: xulrunner:command
line overview the code below is an example of writing a javascript xpcom component to handle command
line parameters.
... you can learn more about how the command
line is interpreted by looking at the documentation for the nsicommand
line interface.
...And 7 more matches
CommandLine - Archive of obsolete content
handling command
line arguments with xulrunner for multiple instances application it's fairly easy to retrieve application specific command
line arguments in xulrunner when it's not a single instance application.
... an nsicommand
line object is passed as the first argument of the launched window: example var cmd
line = window.arguments[0]; cmd
line = cmd
line.queryinterface(components.interfaces.nsicommand
line); alert(cmd
line.handleflagwithparam("test", false)); see also: chrome: command
line for single instance applications of course, for a single instance application (see toolkit.singletonwindowtype for more information), the last example still applies the first time your application is launched.
... however, if you'd like to retrieve the latest command
line arguments (to open a file for example), a possible solution is to create your own command
line handler.
...And 7 more matches
The Firefox codebase: CSS Guidelines
this document contains guide
lines defining how css inside the firefox codebase should be written, it is notably relevant for firefox front-end engineers.
... formatting spacing & indentation 2 spaces indentation is preferred add a space after each comma, except within color functions:
linear-gradient(to bottom, black 1px, rgba(255,255,255,0.2) 1px) always add a space before !important.
... do this: border-color: red; not this: border: red; put multiple selectors on different
lines do this: h1, h2, h3 { font-family: sans-serif; text-align: center; } not this: h1, h2, h3 { font-family: sans-serif; text-align: center; } naming standards for class names lower-case-with-dashes is the most common.
...And 7 more matches
CanvasRenderingContext2D.textBaseline - Web APIs
the canvasrenderingcontext2d.textbase
line property of the canvas 2d api specifies the current text base
line used when drawing text.
... syntax ctx.textbase
line = "top" || "hanging" || "middle" || "alphabetic" || "ideographic" || "bottom"; options possible values: "top" the text base
line is the top of the em square.
... "hanging" the text base
line is the hanging base
line.
...And 7 more matches
Navigator.onLine - Web APIs
returns the on
line status of the browser.
... the property returns a boolean value, with true meaning on
line and false meaning off
line.
... in chrome and safari, if the browser is not able to connect to a local area network (lan) or a router, it is off
line; all other conditions return true.
...And 7 more matches
text-underline-offset - CSS: Cascading Style Sheets
the text-under
line-offset css property sets the offset distance of an under
line text decoration
line (applied using text-decoration) from its original position.
... text-under
line-offset is not part of the text-decoration shorthand.
... while an element can have multiple text-decoration
lines, text-under
line-offset only impacts underlining, and not other possible
line decoration options such as over
line or
line-through.
...And 7 more matches
SVG Guidelines
authoring guide
lines a lot of svg files (particularly those generated by svg editors) ship without being cleaned up and can contain a ton of junk that bloats the file size and slows down rendering.
... basics two spaces indenting no useless whitespaces or
line breaks (see below for more details) adding a license header use double quotes whitespace and
line breaks whitespace in addition to trailing whitespace at the end of
lines, there are a few more cases more specific to svgs: trailing whitespaces in attribute values (usually seen in path definitions) excessive whitespace in path or polygon points definition examples this path: <path d=" m5,5 l1,1z "> can be cut down to this: <p...
...ath d="m5,5 l1,1z"> similarly, this polygon: <polygon points=" 0,0 4,4 4,0 "/> can be cut down to this: <polygon points="0,0 4,4 4,0"/>
line breaks you should only use
line breaks for logical separation or if they help make the file readable.
...And 6 more matches
CanvasRenderingContext2D.setLineDash() - Web APIs
the set
linedash() method of the canvas 2d api's canvasrenderingcontext2d interface sets the
line dash pattern used when stroking
lines.
... it uses an array of values that specify alternating lengths of
lines and gaps which describe the pattern.
... note: to return to using solid
lines, set the
line dash list to an empty array.
...And 6 more matches
OfflineAudioContext.startRendering() - Web APIs
the startrendering() method of the off
lineaudiocontext interface starts rendering the audio graph, taking into account the current connections and the current scheduled changes.
... the complete event (of type off
lineaudiocompletionevent) is raised when the rendering is finished, containing the resulting audiobuffer in its renderedbuffer property.
... syntax event-based version: off
lineaudioctx.startrendering(); off
lineaudioctx.oncomplete = function(e) { // e.renderedbuffer contains the output buffer } promise-based version: off
lineaudioctx.startrendering().then(function(buffer) { // buffer contains the output buffer }); parameters none.
...And 6 more matches
stroke-linecap - SVG: Scalable Vector Graphics
the stroke-
linecap attribute is a presentation attribute defining the shape to be used at the end of open subpaths when they are stroked.
... note: as a presentation attribute stroke-
linecap 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 eight elements: <altglyph>, <path>, <poly
line>, <
line>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 6 6" xmlns="http://www.w3.org/2000/svg"> <!-- effect of the (default) "butt" value --> <
line x1="1" y1="1" x2="5" y2="1" stroke="black" stroke-
linecap="butt" /> <!-- effect of the "round" value --> <
line x1="1" y1="3" x2="5" y2="3" stroke="black" stroke-
linecap="round" /> <!-- effect of the "square" value --> <
line x1="1" y1="5" x2="5" y2="5" stroke="black" stroke-
linecap="square" /> <!-- the following pink
lines highlight the position of the path for each stroke --> <path d="m1,1 h4 m1,3 h4 m...
...And 6 more matches
XUL accessibility guidelines - Archive of obsolete content
introduction welcome to the xul accessibility guide
lines.
... it is hoped that these guide
lines will be sufficiently clear and detailed that everyone—even someone with no previous background in accessibility—can understand them.
... there is also a xul accessibility tool which can help test some of these guide
lines, but please be aware that no tool can replace human judgement for accessibility, and understanding the guide
lines is vital.
...And 5 more matches
XUL Coding Style Guidelines - Archive of obsolete content
to make xul files easy to read and maintain, localization friendly, and portable across user agents, we need to have a set of coding style guide
lines to ensure our objectives are achievable.
... the author has collected a set of guide
lines from various sources listed in the references section.
... while some of the guide
lines are recommended practices, the others are mandatory.
...And 5 more matches
NSS API Guidelines
nss api guide
lines newsgroup: mozilla.dev.tech.crypto introduction this document describes how the nss code is organized, the libraries that get built from the nss sources, and guide
lines for writing nss code.
... these guide
lines will familiarize you with some of the ways things can be done in the nss code.
... some of the guide
lines in this document, are more forward-looking than documentary.
...And 5 more matches
nsICommandLineHandler
toolkit/components/command
lines/public/nsicommand
linehandler.idlscriptable handles arguments on the command
line of a xul application.
... 1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) each command
line handler is registered in the category "command-
line-handler".
...example: category entry value command-
line-handler b-jsdebug @mozilla.org/venkman/clh;1 command-
line-handler c-extensions @mozilla.org/extension-manager/clh;1 command-
line-handler m-edit @mozilla.org/composer/clh;1 command-
line-handler m-irc @mozilla.org/chatzilla/clh;1 command-
line-handler y-final @mozilla.org/browser/clh-final;1 method overview void handle(in nsicommand
line acommand
line)...
...And 5 more matches
CanvasRenderingContext2D.lineTo() - Web APIs
the canvasrenderingcontext2d method
lineto(), part of the canvas 2d api, adds a straight
line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.
... syntax ctx.
lineto(x, y); parameters x the x-axis coordinate of the
line's end point.
... y the y-axis coordinate of the
line's end point.
...And 5 more matches
Document.timeline - Web APIs
the time
line readonly property of the document interface represents the default time
line of the current document.
... this time
line is a special instance of documenttime
line that is automatically created on page load.
... this time
line is unique to each document and persists for the lifetime of the document including calls to document.open().
...And 5 more matches
LinearAccelerationSensor - Web APIs
the
linearaccelerationsensor interface of the sensor apis provides on each reading the acceleration applied to the device along all three axes, but without the contribution of gravity.
... constructor
linearaccelerationsensor.
linearaccelerationsensor() creates a new
linearaccelerationsensor object.
... properties
linearaccelerationsensor.x read only returns a double containing the
linear acceleration of the device along the device's x axis.
...And 5 more matches
SVGPolylineElement - Web APIs
the svgpoly
lineelement interface provides access to the properties of <poly
line> elements, as well as methods to manipulate them.
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line points="341,25 351,20 351,30 341,25" stroke="#d4dde4...
...And 5 more matches
-webkit-line-clamp - CSS: Cascading Style Sheets
the -webkit-
line-clamp css property allows limiting of the contents of a block container to the specified number of
lines.
... it only works in combination with the display property set to -webkit-box or -webkit-in
line-box and the -webkit-box-orient property set to vertical.
... in most cases you will also want to set overflow to hidden, otherwise the contents won't be clipped but an ellipsis will still be shown after the specified number of
lines.
...And 5 more matches
line-break - CSS: Cascading Style Sheets
the
line-break css property sets how to break
lines of chinese, japanese, or korean (cjk) text when working with punctuation and symbols.
... /* keyword values */
line-break: auto;
line-break: loose;
line-break: normal;
line-break: strict;
line-break: anywhere; /* global values */
line-break: inherit;
line-break: initial;
line-break: unset; syntax values auto break text using the default
line break rule.
... loose break text using the least restrictive
line break rule.
...And 5 more matches
outline-offset - CSS: Cascading Style Sheets
the out
line-offset css property sets the amount of space between an out
line and the edge or border of an element.
... syntax /* <length> values */ out
line-offset: 3px; out
line-offset: 0.2em; /* global values */ out
line-offset: inherit; out
line-offset: initial; out
line-offset: unset; values <length> the width of the space between the element and its out
line.
... a negative value places the out
line inside the element.
...And 5 more matches
outline-width - CSS: Cascading Style Sheets
the css out
line-width property sets the thickness of an element's out
line.
... an out
line is a
line that is drawn around an element, outside the border.
... it is often more convenient to use the shorthand property out
line when defining the appearance of an out
line.
...And 5 more matches
overflow-inline - CSS: Cascading Style Sheets
the overflow-in
line css property sets what shows when content overflows the in
line start and end edges of a box.
... the overflow-in
line property maps to overflow-y or overflow-x depending on the writing mode of the document.
... syntax /* keyword values */ overflow-in
line: visible; overflow-in
line: hidden; overflow-in
line: scroll; overflow-in
line: auto; /* global values */ overflow-in
line: inherit; overflow-in
line: initial; overflow-in
line: unset; the overflow-in
line property is specified as a single keyword chosen from the list of values below.
...And 5 more matches
text-decoration-line - CSS: Cascading Style Sheets
the text-decoration-
line css property sets the kind of decoration that is used on text in an element, such as an under
line or over
line.
... when setting multiple
line-decoration properties at once, it may be more convenient to use the text-decoration shorthand property instead.
... syntax /* single keyword */ text-decoration-
line: none; text-decoration-
line: under
line; text-decoration-
line: over
line; text-decoration-
line:
line-through; text-decoration-
line: blink; /* multiple keywords */ text-decoration-
line: under
line over
line; /* two decoration
lines */ text-decoration-
line: over
line under
line 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.
...And 5 more matches
<line> - SVG: Scalable Vector Graphics
the <
line> element is an svg basic shape used to create a
line connecting two points.
... html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <
line x1="0" y1="80" x2="100" y2="20" stroke="black" /> <!-- if you do not specify the stroke color the
line will not be visible --> </svg> attributes x1 defines the x-axis coordinate of the
line starting point.
... value type: <length>|<percentage>|<number> ; default value: 0; animatable: yes x2 defines the x-axis coordinate of the
line ending point.
...And 5 more matches
CanvasRenderingContext2D.createLinearGradient() - Web APIs
the canvasrenderingcontext2d.create
lineargradient() method of the canvas 2d api creates a gradient along the
line connecting two given coordinates.
... this method returns a
linear canvasgradient.
... syntax canvasgradient ctx.create
lineargradient(x0, y0, x1, y1); the create
lineargradient() method is specified by four parameters defining the start and end points of the gradient
line.
...And 4 more matches
CanvasRenderingContext2D.lineJoin - Web APIs
the canvasrenderingcontext2d.
linejoin property of the canvas 2d api determines the shape used to join two
line segments where they meet.
... note:
lines can be drawn with the stroke(), strokerect(), and stroketext() methods.
... syntax ctx.
linejoin = "bevel" || "round" || "miter"; options there are three possible values for this property: "round", "bevel", and "miter".
...And 4 more matches
Document.ononline - Web APIs
the document.on
line event is fired on the <body> of each page when the browser switches between on
line and off
line mode.
...both events are non-cancellable (you can't prevent the user from coming on
line, or going off
line).
... window.navigator.on
line returns boolean true if the browser is on
line and false if it is definitely off
line (disconnected from the network).
...And 4 more matches
WebGLRenderingContext.lineWidth() - Web APIs
the webglrenderingcontext.
linewidth() method of the webgl api sets the
line width of rasterized
lines.
... the webgl spec, based on the opengl es 2.0/3.0 specs points out that the minimum and maximum width for a
line is implementation defined.
...because of these implementation defined limits it is not recommended to use
line widths other than 1.0 since there is no guarantee any user's browser will display any other width.
...And 4 more matches
-moz-outline-radius - CSS: Cascading Style Sheets
in mozilla applications like firefox, the -moz-out
line-radius css shorthand property can be used to give an element's out
line rounded corners.
... /* one value */ -moz-out
line-radius: 25px; /* two values */ -moz-out
line-radius: 25px 1em; /* three values */ -moz-out
line-radius: 25px 1em 12%; /* four values */ -moz-out
line-radius: 25px 1em 12% 4mm; /* global values */ -moz-out
line-radius: inherit; -moz-out
line-radius: initial; -moz-out
line-radius: unset; constituent properties this property is a shorthand for the following css properties: -moz-out
line-radius-bottomleft -moz-out
line-radius-bottomright -moz-out
line-radius-topleft -moz-out
line-radius-topright syntax values elliptical out
lines and <percentage> values follow the syntax described in border-radius.
... one, two, three or four <out
line-radius> values, represents one of: <length> see <length> for possible values.
...And 4 more matches
border-inline-end - CSS: Cascading Style Sheets
the border-in
line-end css property is a shorthand property for setting the individual logical in
line-end border property values in a single place in the style sheet.
... constituent properties this property is a shorthand for the following css properties: border-in
line-end-color border-in
line-end-style border-in
line-end-width syntax border-in
line-end: 1px; border-in
line-end: 2px dashed; border-in
line-end: medium dashed blue; the physical border to which border-in
line-end maps depends on the element's writing mode, directionality, and text orientation.
... related properties are border-block-start, border-block-end, and border-in
line-start, which define the other borders of the element.
...And 4 more matches
border-inline-start - CSS: Cascading Style Sheets
the border-in
line-start css property is a shorthand property for setting the individual logical in
line-start border property values in a single place in the style sheet.
... constituent properties this property is a shorthand for the following css properties: border-in
line-start-color border-in
line-start-style border-in
line-start-width syntax border-in
line-start: 1px; border-in
line-start: 2px dotted; border-in
line-start: medium dashed green; the physical border to which border-in
line-start maps depends on the element's writing mode, directionality, and text orientation.
... related properties are border-block-start, border-block-end, and border-in
line-end, which define the other borders of the element.
...And 4 more matches
line-height-step - CSS: Cascading Style Sheets
the
line-height-step css property sets the step unit for
line box heights.
... when the property is set,
line box heights are rounded up to the closest multiple of the unit.
... /* point values */
line-height-step: 18pt; syntax the
line-height-step property is specified as any one of the following: a <length>.
...And 4 more matches
<br>: The Line Break element - HTML: Hypertext Markup Language
the html <br> element produces a
line break in text (carriage-return).
... it is useful for writing a poem or an address, where the division of
lines is significant.
...the text after the <br> begins again at the start of the next
line of the text block.
...And 4 more matches
keySplines - SVG: Scalable Vector Graphics
the keysp
lines attribute defines a set of bézier curve control points associated with the keytimes list, defining a cubic bézier function that controls interval pacing.
... this attribute is ignored unless the calcmode attribute is set to sp
line.
... if there are any errors in the keysp
lines specification (bad values, too many or too few values), the animation will not occur.
...And 4 more matches
-ms-hyphenate-limit-lines - Archive of obsolete content
the -ms-hyphenate-limit-
lines css property is a microsoft extension specifying the maximum number of consecutive
lines in an element that may be ended with a hyphenated word.
... initial valueno-limitapplies toblock container elementsinheritedyescomputed valueas specifiedanimation typediscrete syntax values no-limit indicates that hyphenation is not limited based on the number of consecutive hyphenated
lines.
... in the flow above the consecutive hyphenated
lines limit would be an infinitely large positive number.
...And 3 more matches
nsICommandLineRunner
the nsicommand
linerunner is an extension of nsicommand
line used to initialize command
lines and run them by processing the comand
line handlers.
... toolkit/components/command
lines/public/nsicommand
linerunner.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: nsicommand
line method overview void init(in long argc, in nscharptrarray argv, in nsifile workingdir, in unsigned long state); void run(); void setwindowcontext(in nsidomwindow awindow); attributes attribute type description helptext autf8string process and combine the help text provided by each command-
line handler.
...And 3 more matches
AudioParam.linearRampToValueAtTime() - Web APIs
the
linearramptovalueattime() method of the audioparam interface schedules a gradual
linear change in the value of the audioparam.
... the change starts at the time specified for the previous event, follows a
linear ramp to the new value given in the value parameter, and reaches the new value at the time given in the endtime parameter.
... syntax var audioparam = audioparam.
linearramptovalueattime(value, endtime) parameters value a floating point number representing the value the audioparam will ramp to by the given time.
...And 3 more matches
CanvasRenderingContext2D.getLineDash() - Web APIs
the get
linedash() method of the canvas 2d api's canvasrenderingcontext2d interface gets the current
line dash pattern.
... syntax ctx.get
linedash(); return value an array of numbers that specify distances to alternately draw a
line and a gap (in coordinate space units).
...for example, setting the
line dash to [5, 15, 25] will result in getting back [5, 15, 25, 5, 15, 25].
...And 3 more matches
CanvasRenderingContext2D.lineWidth - Web APIs
the canvasrenderingcontext2d.
linewidth property of the canvas 2d api sets the thickness of
lines.
... note:
lines can be drawn with the stroke(), strokerect(), and stroketext() methods.
... syntax ctx.
linewidth = value; options value a number specifying the
line width, in coordinate space units.
...And 3 more matches
DocumentTimeline - Web APIs
the documenttime
line interface of the the web animations api represents animation time
lines, including the default document time
line (accessed via document.time
line).
... constructor documenttime
line() creates a new documenttime
line object associated with the active document of the current browsing context.
... properties this interface inherits its property from its parent, animationtime
line.
...And 3 more matches
ElementCSSInlineStyle.style - Web APIs
the style property is used to get as well as set the in
line style of an element.
... when getting, it returns a cssstyledeclaration object that contains a list of all styles properties for that element with values assigned for the attributes that are defined in the element's in
line style attribute.
...the style property has the same (and highest) priority in the css cascade as an in
line style declaration set via the style attribute.
...And 3 more matches
NavigatorOnLine - Web APIs
the navigatoron
line interface contains methods and properties related to the connectivity status of the browser.
... there is no object of type navigatoron
line, but other interfaces, like navigator or workernavigator, implement it.
... properties the navigatoron
line interface doesn't inherit any property.
...And 3 more matches
RTCIceCandidate.sdpMLineIndex - Web APIs
the read-only sdpm
lineindex property on the rtcicecandidate interface is a zero-based index of the m-
line describing the media associated with the candidate.
... this value is specified when creating the rtcicecandidate by setting the corresponding sdpm
lineindex value in the rtcicecandidateinit object when creating a new candidate with new rtcicecandidate().
... if you instead call rtcicecandidate() with a string parameter containing the candidate m-
line text, the value of sdpm
lineindex is extracted from the m-
line.
...And 3 more matches
overscroll-behavior-inline - CSS: Cascading Style Sheets
the overscroll-behavior-in
line css property sets the browser's behavior when the in
line direction boundary of a scrolling area is reached.
... /* keyword values */ overscroll-behavior-in
line: auto; /* default */ overscroll-behavior-in
line: contain; overscroll-behavior-in
line: none; /* global values */ overscroll-behavior-in
line: inherit; overscroll-behavior-in
line: initial; overscroll-behavior-in
line: unset; syntax the overscroll-behavior-in
line property is specified as a keyword chosen from the list of values below.
... formal definition initial valueautoapplies tonon-replaced block-level elements and non-replaced in
line-block elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax contain | none | auto examples preventing in
line overscrolling in this demo we have two block-level boxes, one inside the other.
...And 3 more matches
scroll-margin-inline - CSS: Cascading Style Sheets
the scroll-margin-in
line shorthand property sets the scroll margins of an element in the in
line dimension.
... constituent properties this property is a shorthand for the following css properties: scroll-margin-in
line-end scroll-margin-in
line-start syntax /* <length> values */ scroll-margin-in
line: 10px; scroll-margin-in
line: 1em .5em ; /* global values */ scroll-margin-in
line: inherit; scroll-margin-in
line: initial; scroll-margin-in
line: unset; values <length> an outset from the corresponding edge of the scroll container.
... last of all we specify the scroll margin values, a different one for the second and third child elements: .scroller > div:nth-child(2) { scroll-margin-in
line: 1rem; } .scroller > div:nth-child(3) { scroll-margin-in
line: 2rem; } this means that when scrolling past the middle child elements, the scrolling will snap to 1rem outside the in
line end edge of the second <div>, and 2rems outside the in
line end edge of the third <div>.
...And 3 more matches
RegExp.prototype.multiline - JavaScript
the multi
line property indicates whether or not the "m" flag is used with the regular expression.
... multi
line is a read-only property of an individual regular expression instance.
... property attributes of regexp.prototype.multi
line writable no enumerable no configurable yes description the value of multi
line is a boolean and is true if the "m" flag was used; otherwise, false.
...And 3 more matches
<polyline> - SVG: Scalable Vector Graphics
the <poly
line> svg element is an svg basic shape that creates straight
lines connecting several points.
... typically a poly
line is used to create open shapes as the last point doesn't have to be connected to the first point.
... html,body,svg { height:100% } <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <!-- example of a poly
line with the default fill --> <poly
line points="0,100 50,25 50,75 100,0" /> <!-- example of the same poly
line shape with stroke and no fill --> <poly
line points="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 poly
line value type: <number>+ ; default value: ""; animatable: yes pathlength this attribute lets specify the total length for the path, in user units.
...And 3 more matches
nsIDOMOfflineResourceList
the nsidomoff
lineresourcelist interface provides access to the application cache that allows web content's resources to be cached locally for use while off
line.
... dom/interfaces/off
line/nsidomoff
lineresourcelist.idlscriptable please add a summary to this article.
...erbird 3.1 / fennec 1.0) inherits from: nsisupports method overview void mozadd(in domstring uri); boolean mozhasitem(in domstring uri); domstring mozitem(in unsigned long index); void mozremove(in domstring uri); void swapcache(); void update(); attributes attribute type description mozitems nsidomoff
lineresourcelist the list of dynamically-managed entries in the off
line resource list.
...And 2 more matches
Animation.timeline - Web APIs
the animation.time
line property of the animation interface returns or sets the time
line associated with this animation.
... a time
line is a source of time values for synchronization purposes, and is an animationtime
line-based object.
... by default, the animation's time
line and the document's time
line are the same.
...And 2 more matches
AnimationTimeline.currentTime - Web APIs
the currenttime read-only property of the web animations api's animationtime
line interface returns the time
line's current time in milliseconds, or null if the time
line is inactive.
... syntax var currenttime = animationtime
line.currenttime; value a number representing the time
line's current time in milliseconds, or null if the time
line is inactive.
... reduced time precision to offer protection against timing attacks and fingerprinting, the precision of animationtime
line.currenttime might get rounded depending on browser settings.
...And 2 more matches
AnimationTimeline - Web APIs
the animationtime
line interface of the web animations api represents the time
line of an animation.
... this interface exists to define time
line features (inherited by documenttime
line and future time
line types) and is not itself directly used by developers.
... anywhere you see animationtime
line, you should use documenttime
line or any other time
line type instead.
...And 2 more matches
CanvasRenderingContext2D.lineDashOffset - Web APIs
the canvasrenderingcontext2d.
linedashoffset property of the canvas 2d api sets the
line dash offset, or "phase." note:
lines are drawn by calling the stroke() method.
... syntax ctx.
linedashoffset = value; value a float specifying the amount of the
line dash offset.
... examples offsetting a
line dash this example draws two dashed
lines.
...And 2 more matches
OfflineAudioCompletionEvent - Web APIs
the web audio api off
lineaudiocompletionevent interface represents events that occur when the processing of an off
lineaudiocontext is terminated.
... note: this interface is marked as deprecated; it is still supported for legacy reasons, but it will soon be superseded when the promise version of off
lineaudiocontext.startrendering is supported in browsers, which will no longer need it.
... constructor off
lineaudiocompletionevent.off
lineaudiocompletionevent creates a new off
lineaudiocompletionevent object instance.
...And 2 more matches
Performance Timeline - Web APIs
the performance time
line api defines extensions to the performance interface to support client-side latency measurements within applications.
...the standard also includes interfaces that allow an application to define performance observer callbacks that are notified when specific performance events are added to the browser's performance time
line.
...for more details about the interfaces, see the reference pages and using performance time
line.
...And 2 more matches
Understanding the Web Content Accessibility Guidelines - Accessibility
this set of articles provides quick explanations to help you understand the steps that need to be taken to conform to the recommendations out
lined in the w3c web content accessibility guide
lines 2.0 or 2.1 (or just wcag, for the purposes of this writing).
... the wcag 2.0 and 2.1 provide a detailed set of guide
lines for making web content more accessible to people with a wide variety of disabilities.
... each of the links below will take you to pages that further expand on these areas, giving you practical advice on how to write your web content so it conforms to the success criteria out
lined in each of the wcag 2.0 and 2.1 guide
lines that further sub-divides each principle.
...And 2 more matches
overflow-inline - CSS: Cascading Style Sheets
the overflow-in
line css media feature can be used to test how the output device handles content that overflows the initial containing block along the in
line axis.
... syntax the overflow-in
line feature is specified as a keyword value chosen from the list below.
... none content that overflows the in
line axis is not displayed.
...And 2 more matches
border-inline - CSS: Cascading Style Sheets
the border-in
line css property is a shorthand property for setting the individual logical in
line border property values in a single place in the style sheet.
... border-in
line: 1px; border-in
line: 2px dotted; border-in
line: medium dashed blue; the physical borders to which border-in
line maps depends on the element's writing mode, directionality, and text orientation.
...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-in
line-color border-in
line-style border-in
line-width syntax values the border-in
line is specified with one or more of the following, in any order: <'border-width'> the width of the border.
...And 2 more matches
Using HTML sections and outlines - Developer guides
important: there are no implementations of the proposed out
line algorithm in web browsers nor assistive technology; it was never part of a final w3c specification.
... therefore the out
line algorithm should not be used to convey document structure to users.
...it is important for developers to use these semantic elements in
line with their intended purposes.
...And 2 more matches
Inline options - Archive of obsolete content
options file the xul allowed for the in
line options is limited to a few new tags.
...so if you would like to do some changes to the xul on the in
line options page you can do so.
... some discussion on the subject at stackoverflow: how to use addeventlistener on inputchanged of in
line options display notifications if you want to use the settings ui for anything more than storing preferences, then you will probably need to initialize them when they first appear.
...you must also specify the optionstype as 2: <em:optionsurl>chrome://myaddon/content/name_of_my_file_to_use_for_in
line_opts.xul</em:optionsurl> <em:optionstype>2</em:optionstype> your chrome.manifest file should contain the following, otherwise the path chrome://myaddon/content/name_of_my_file_to_use_for_in
line_opts.xul will not exist content myaddon ./ this method allows you to maintain compatibility with previous versions of firefox by adding an override to your chrome.manifest: ...
Baseline - MDN Web Docs Glossary: Definitions of Web-related terms
the base
line is a term used in european and west asian typography meaning an imaginary
line upon which the characters of a font rest.
... the descenders of characters like g and p extend below this
line.
... east asian scripts have no base
line.
... learn more general knowledge base
line on wikipedia technical reference css box alignment on mdn ...
AddressErrors.addressLine - Web APIs
an object based on addresserrors includes an address
line property when validation of the address finds one or more errors in the array of strings in the address's address
line.
... syntax var address
lineerror = addresserrors.address
line; value if an error occurred during validation of the address due to one of the strings in the address
line array having an invalid value, this property is set to a domstring providing a human-readable error message explaining the validation error.
... if the paymentaddress object's address
line property was determined to be valid, this property is not included in the addresserrors dictionary.
... specifications specification status comment payment request apithe definition of 'addresserrors.address
line' in that specification.
ElementCSSInlineStyle - Web APIs
the elementcssin
linestyle mixin describes cssom-specific features common to the htmlelement, svgelement and mathmlelement interfaces.
... note: elementcssin
linestyle is a mixin and not an interface; you can't actually create an object of type elementcssin
linestyle.
... propertiesstylethe style property is used to get as well as set the in
line style of an element.
... when getting, it returns a cssstyledeclaration object that contains a list of all styles properties for that element with values assigned for the attributes that are defined in the element's in
line style attribute.methodsthis interface has no methods.
LinearAccelerationSensor.x - Web APIs
the x read-only property of the
linearaccelerationsensor interface returns a double precision integer containing the
linear acceleration of the device along the device's x axis.
... syntax var x
linearaccelerationsensor =
linearaccelerationsensor.x value a number.
... example
linear acceleration is typically read in the sensor.onreading event callback.
... let lasensor = new
linearaccelerationsensor({frequency: 60}); lasensor.addeventlistener('reading', e => { console.log("
linear acceleration along the x-axis " + lasensor.x); console.log("
linear acceleration along the y-axis " + lasensor.y); console.log("
linear acceleration along the z-axis " + lasensor.z); }); lasensor.start(); specifications specification status comment generic sensor api candidate recommendation defines sensors in general.
OES_texture_float_linear - Web APIs
the oes_texture_float_
linear extension is part of the webgl api and allows
linear filtering with floating-point pixel types for textures.
...
linear filtering the oes_texture_float extension alone does not allow
linear filtering with floating-point textures.
... with the help of this extension, you can now set the magnification or minification filter in the webglrenderingcontext.texparameter() method to one of gl.
linear, gl.
linear_mipmap_nearest, gl.nearest_mipmap_
linear, or gl.
linear_mipmap_
linear, and use floating-point textures.
... examples gl.getextension('oes_texture_float'); gl.getextension('oes_texture_float_
linear'); var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); gl.texparameterf(gl.texture_2d, gl.texture_mag_filter, gl.
linear); gl.teximage2d(gl.texture_2d, 0, gl.rgba, gl.rgba, gl.float, image); specifications specification status comment oes_texture_float_
linearthe definition of 'oes_texture_float_
linear' in that specification.
OES_texture_half_float_linear - Web APIs
the oes_texture_half_float_
linear extension is part of the webgl api and allows
linear filtering with half floating-point pixel types for textures.
...
linear filtering the oes_texture_half_float extension alone does not allow
linear filtering with half floating-point textures.
... with the help of this extension, you can now set the magnification or minification filter in the webglrenderingcontext.texparameter() method to one of gl.
linear, gl.
linear_mipmap_nearest, gl.nearest_mipmap_
linear, or gl.
linear_mipmap_
linear, and use half floating-point textures.
... examples var halffloat = gl.getextension('oes_texture_half_float'); gl.getextension('oes_texture_half_float_
linear'); var texture = gl.createtexture(); gl.bindtexture(gl.texture_2d, texture); gl.texparameterf(gl.texture_2d, gl.texture_mag_filter, gl.
linear); gl.teximage2d(gl.texture_2d, 0, gl.rgba, gl.rgba, halffloat.half_float_oes, image); specifications specification status comment oes_texture_half_float_
linearthe definition of 'oes_texture_half_float_
linear' in that specification.
PaymentAddress.addressLine - Web APIs
the address
line read-only property of the paymentaddress interface is an array of domstring objects, each specifying a
line of the address that is not covered by one of the other properties of paymentaddress.
... these
lines may include the street name, house number, apartment number, rural delivery route, descriptive instructions, or post office box.
... syntax var paymentaddress
lines = paymentaddress.address
line; value an array of domstring objects, each containing one
line of the address.
... for example, the address
line array for the mozilla space in london would have the following entries: example showing address
line entries for an address in london index address
line[] value 0 metal box factory 1 suite 441, 4th floor 2 30 great guildford street these, combined with additional values for other properties of the paymentaddress, would represent the full address, which is: mozilla metal box factory suite 441, 4th floor 30 great guildford street london se1 0hs united kingdom specifications specification status comment payment request apithe definition of 'paymentaddress.address
line' in that specification.
Using Performance Timeline - Web APIs
the performance time
line standard defines extensions to the performance interface to support client-side latency measurements within applications.
... performance extensions performance time
line extends the performance object with three methods that provide different mechanisms to get a set of performance records (metrics), depending on the specified filter criteria.
... specifications the interfaces described in this document are defined in the performance time
line standard which has two levels: performance time
line level 2; editors draft; work in progress.
... performance time
line; w3c recommendation 12 december 2013 see also performance time
line (overview) a primer for web performance timing apis ...
RTCIceCandidateInit.sdpMLineIndex - Web APIs
the optional property sdpm
lineindex in the rtcicecandidateinit dictionary specifies the value of the rtcicecandidate object's sdpm
lineindex property.
... value a number containing a 0-based index into the set of m-
lines providing media descriptions, indicating which media source is associated with the candidate, or null if no such association is available.
... note: attempting to add a candidate (using addicecandidate()) that has a value of null for either sdpmid or sdpm
lineindex will throw a typeerror exception.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcicecandidateinit.sdpm
lineindex' in that specification.
-moz-outline-radius-bottomleft - CSS: Cascading Style Sheets
in mozilla applications, the -moz-out
line-radius-bottomleft css property can be used to round the bottom-left corner of an element's out
line.
... syntax the value of -moz-out
line-radius-bottomleft is either a css <length> or a percentage of the corresponding dimensions of the border box.
... formal definition initial value0applies toall elementsinheritednopercentagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percentage or calc(); formal syntax <out
line-radius>where <out
line-radius> = <length> | <percentage> examples rounding a out
line since this is a firefox-only property, this example will not display the desired effect if you are viewing this in a browser other than firefox.
... html <p>look at this paragraph's bottom-left corner.</p> css p { margin: 10px; border: solid cyan; out
line: dotted green; -moz-out
line-radius-bottomleft: 2em; } result specifications not part of any standard.
-moz-outline-radius-topleft - CSS: Cascading Style Sheets
in mozilla applications, the -moz-out
line-radius-topleft css property can be used to round the top-left corner of an element's out
line.
... syntax the value of -moz-out
line-radius-topleft is either a css <length> or a percentage of the corresponding dimensions of the border box.
... formal definition initial value0applies toall elementsinheritednopercentagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percentage or calc(); formal syntax <out
line-radius>where <out
line-radius> = <length> | <percentage> examples the example below will not display the desired effect if you are viewing this in a browser other than firefox.
... html <p>look at this paragraph's top-left corner.</p> css p { margin: 5px; border: solid cyan; out
line: dotted red; -moz-out
line-radius-topleft: 2em; } result specifications not part of any standard.
border-inline-end-style - CSS: Cascading Style Sheets
the border-in
line-end-style css property defines the style of the logical in
line end border of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation.
... syntax /* <'border-style'> values */ border-in
line-end-style: dashed; border-in
line-end-style: dotted; border-in
line-end-style: groove; related properties are border-block-start-style, border-block-end-style, and border-in
line-start-style, which define the other border styles of the element.
... values <'border-style'> the
line style of the border.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'border-top-style'> examples html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 5px solid blue; border-in
line-end-style: dashed; } results specifications specification status comment css logical properties and values level 1the definition of 'border-in
line-end-style' in that specification.
border-inline-start-style - CSS: Cascading Style Sheets
the border-in
line-start-style css property defines the style of the logical in
line start border of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation.
... syntax /* <'border-style'> values */ border-in
line-start-style: dashed; border-in
line-start-style: dotted; border-in
line-start-style: groove; related properties are border-block-start-style, border-block-end-style, and border-in
line-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.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'border-top-style'> examples html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 5px solid blue; border-in
line-start-style: dashed; } specifications specification status comment css logical properties and values level 1the definition of 'border-in
line-start-style' in that specification.
border-inline-style - CSS: Cascading Style Sheets
the border-in
line-style css property defines the style of the logical in
line borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation.
... /* <'border-style'> values */ border-in
line-style: dashed; border-in
line-style: dotted; border-in
line-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.
...ormal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <'border-top-style'> examples html content <div> <p class="exampletext">example text</p> </div> css content div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 5px solid blue; border-in
line-style: dashed; } specifications specification status comment css logical properties and values level 1the definition of 'border-in
line-style' in that specification.
inline-size - CSS: Cascading Style Sheets
the in
line-size css property defines the horizontal or vertical size of an element's block, depending on its writing mode.
... syntax /* <length> values */ in
line-size: 300px; in
line-size: 25em; /* <percentage> values */ in
line-size: 75%; /* keyword values */ in
line-size: max-content; in
line-size: min-content; in
line-size: fit-content(20em); in
line-size: auto; /* global values */ in
line-size: inherit; in
line-size: initial; in
line-size: unset; if the writing mode is vertically oriented, the value of in
line-size relates to the height of the element; otherwise, it relates to the width of the e...
... values the in
line-size property takes the same values as the width and height properties.
... formal definition initial valueautoapplies tosame as width and heightinheritednopercentagesin
line-size of containing blockcomputed valuesame as width and heightanimation typea length, percentage or calc(); formal syntax <'width'> examples setting in
line size in pixels html <p class="exampletext">example text</p> css .exampletext { writing-mode: vertical-rl; background-color: yellow; in
line-size: 110px; } result specifications specification status comment css logical properties and values level 1the definition of 'in
line-size' in that specification.
inset-inline-end - CSS: Cascading Style Sheets
the inset-in
line-end css property defines the logical in
line end inset of an element, which maps to a physical inset depending on the element's writing mode, directionality, and text orientation.
... /* <length> values */ inset-in
line-end: 3px; inset-in
line-end: 2.4em; /* <percentage>s of the width or height of the containing block */ inset-in
line-end: 10%; /* keyword value */ inset-in
line-end: auto; /* global values */ inset-in
line-end: inherit; inset-in
line-end: initial; inset-in
line-end: unset; the shorthand for inset-in
line-start and inset-in
line-end is inset-in
line.
... syntax values the inset-in
line-end property takes the same values as the left property.
... formal definition initial valueautoapplies topositioned elementsinheritednopercentageslogical-width of containing blockcomputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalanimation typea length, percentage or calc(); formal syntax <'top'> examples setting in
line end offset html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; position: relative; inset-in
line-end: 20px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the definition of 'inset-in
line-end' in that specification.
inset-inline-start - CSS: Cascading Style Sheets
the inset-in
line-start css property defines the logical in
line start inset of an element, which maps to a physical offset depending on the element's writing mode, directionality, and text orientation.
... /* <length> values */ inset-in
line-start: 3px; inset-in
line-start: 2.4em; /* <percentage>s of the width or height of the containing block */ inset-in
line-start: 10%; /* keyword value */ inset-in
line-start: auto; /* global values */ inset-in
line-start: inherit; inset-in
line-start: initial; inset-in
line-start: unset; the shorthand for inset-in
line-start and inset-in
line-end is inset-in
line.
... syntax values the inset-in
line-start property takes the same values as the left property.
... formal definition initial valueautoapplies topositioned elementsinheritednopercentageslogical-width of containing blockcomputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalanimation typea length, percentage or calc(); formal syntax <'top'> examples setting in
line start offset html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; position: relative; inset-in
line-start: 20px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the definition of 'inset-in
line-start' in that specification.
margin-inline-end - CSS: Cascading Style Sheets
the margin-in
line-end css property defines the logical in
line end margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.
... syntax /* <length> values */ margin-in
line-end: 10px; /* an absolute length */ margin-in
line-end: 1em; /* relative to the text size */ margin-in
line-end: 5%; /* relative to the nearest block container's width */ /* keyword values */ margin-in
line-end: auto; /* global values */ margin-in
line-end: inherit; margin-in
line-end: initial; margin-in
line-end: unset; it relates to margin-block-start, margin-block-end, and margin-in
line...
... values the margin-in
line-end property takes the same values as the margin-left property.
... formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length formal syntax <'margin-left'> examples setting in
line end margin html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; margin-in
line-end: 20px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the definition of 'margin-in
line-end' in that specification.
margin-inline-start - CSS: Cascading Style Sheets
the margin-in
line-start css property defines the logical in
line start margin of an element, which maps to a physical margin depending on the element's writing mode, directionality, and text orientation.
... syntax /* <length> values */ margin-in
line-start: 10px; /* an absolute length */ margin-in
line-start: 1em; /* relative to the text size */ margin-in
line-start: 5%; /* relative to the nearest block container's width */ /* keyword values */ margin-in
line-start: auto; /* global values */ margin-in
line-start: inherit; it relates to margin-block-start, margin-block-end, and margin-in
line-end, which define the other margins of the ele...
... values the margin-in
line-start property takes the same values as the margin-left property.
... formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length formal syntax <'margin-left'> examples setting in
line start margin html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; margin-in
line-start: 20px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the definition of 'margin-in
line-start' in that specification.
margin-inline - CSS: Cascading Style Sheets
the margin-in
line css shorthand property is a shorthand property that defines both the logical in
line start and end margins of an element, which maps to physical margins depending on the element's writing mode, directionality, and text orientation.
... /* <length> values */ margin-in
line: 10px 20px; /* an absolute length */ margin-in
line: 1em 2em; /* relative to the text size */ margin-in
line: 5% 2%; /* relative to the nearest block container's width */ margin-in
line: 10px; /* sets both start and end values */ /* keyword values */ margin-in
line: auto; /* global values */ margin-in
line: inherit; margin-in
line: initial; margin-in
line: unset; this property corresponds to the margin-top and margin-bottom, or margin-right, and margin-left properties, depending on the values defined for writing-mode, direction, and text-orientation.
... constituent properties this property is a shorthand for the following css properties: margin-in
line-end margin-in
line-start syntax values the margin-in
line property takes the same values as the margin-left property.
... formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typediscrete formal syntax <'margin-left'>{1,2} examples setting in
line start and end margins html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; margin-in
line: 20px 40px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the definition of 'margin-in
line' in that specification.
max-inline-size - CSS: Cascading Style Sheets
the max-in
line-size css property defines the horizontal or vertical maximum size of an element's block depending on its writing mode.
...if the writing mode is vertically oriented, the value of max-in
line-size relates to the maximal height of the element, otherwise it relates to the maximal width of the element.
... syntax /* <length> values */ max-in
line-size: 300px; max-in
line-size: 25em; /* <percentage> values */ max-in
line-size: 75%; /* keyword values */ max-in
line-size: auto; max-in
line-size: max-content; max-in
line-size: min-content; max-in
line-size: fit-content(20em); /* global values */ max-in
line-size: inherit; max-in
line-size: initial; max-in
line-size: unset; values the max-in
line-size property takes the same values as the max-width and max-height properties.
... formal definition initial value0applies tosame as width and heightinheritednopercentagesin
line-size of containing blockcomputed valuesame as max-width and max-heightanimation typea length, percentage or calc(); formal syntax <'max-width'> examples setting max in
line size in pixels html <p class="exampletext">example text</p> css .exampletext { writing-mode: vertical-rl; background-color: yellow; block-size: 100%; max-in
line-size: 200px; } result specifications specification status comment css logical properties and values level 1the definition of 'max-in
line-size' in that specification.
min-inline-size - CSS: Cascading Style Sheets
the min-in
line-size css property defines the horizontal or vertical minimal size of an element's block, depending on its writing mode.
... syntax /* <length> values */ min-in
line-size: 100px; min-in
line-size: 5em; /* <percentage> values */ min-in
line-size: 10%; /* keyword values */ min-in
line-size: max-content; min-in
line-size: min-content; min-in
line-size: fit-content(20em); /* global values */ min-in
line-size: inherit; min-in
line-size: initial; min-in
line-size: unset; if the writing mode is vertically oriented, the value of min-in
line-size relates to the minimum height of the element; otherwi...
... values the min-in
line-size property takes the same values as the min-width and min-height properties.
... formal definition initial value0applies tosame as width and heightinheritednopercentagesin
line-size of containing blockcomputed valuesame as min-width and min-heightanimation typea length, percentage or calc(); formal syntax <'min-width'> examples setting minimum in
line size for vertical text html <p class="exampletext">example text</p> css .exampletext { writing-mode: vertical-rl; background-color: yellow; block-size: 5%; min-in
line-size: 200px; } result specifications specification status comment css logical properties and values level 1the definition of 'min-in
line-size' in that specification.
padding-inline-end - CSS: Cascading Style Sheets
the padding-in
line-end css property defines the logical in
line end padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
... syntax /* <length> values */ padding-in
line-end: 10px; /* an absolute length */ padding-in
line-end: 1em; /* a length relative to the text size */ /* <percentage> value */ padding-in
line-end: 5%; /* a padding relative to the block container's width */ /* global values */ padding-in
line-end: inherit; padding-in
line-end: initial; padding-in
line-end: unset; values the padding-in
line-end property takes the same values as the padding-left property.
... it relates to padding-block-start, padding-block-end, and padding-in
line-start, which define the other paddings of the element.
... formal definition initial value0applies toall elementsinheritednopercentageslogical-width of containing blockcomputed valueas <length>animation typea length formal syntax <'padding-left'> examples setting in
line end padding for vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; padding-in
line-end: 20px; background-color: #c8c800; } specifications specification status comment css logical properties and values level 1the definition of 'padding-in
line-end' in that specification.
padding-inline-start - CSS: Cascading Style Sheets
the padding-in
line-start css property defines the logical in
line start padding of an element, which maps to a physical padding depending on the element's writing mode, directionality, and text orientation.
... syntax /* <length> values */ padding-in
line-start: 10px; /* an absolute length */ padding-in
line-start: 1em; /* a length relative to the text size */ /* <percentage> value */ padding-in
line-start: 5%; /* a padding relative to the block container's width */ /* global values */ padding-in
line-start: inherit; padding-in
line-start: initial; padding-in
line-start: unset; values the padding-in
line-start property takes the same values as the padding-left property.
... it relates to padding-block-start, padding-block-end, and padding-in
line-end, which define the other paddings of the element.
... formal definition initial value0applies toall elementsinheritednopercentageslogical-width of containing blockcomputed valueas <length>animation typea length formal syntax <'padding-left'> examples setting in
line start padding for vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; padding-in
line-start: 20px; background-color: #c8c800; } specifications specification status comment css logical properties and values level 1the definition of 'padding-in
line-start' in that specification.
padding-inline - CSS: Cascading Style Sheets
the padding-in
line css shorthand property defines the logical in
line start and end padding of an element, which maps to physical padding properties depending on the element's writing mode, directionality, and text orientation.
... /* <length> values */ padding-in
line: 10px 20px; /* an absolute length */ padding-in
line: 1em 2em; /* relative to the text size */ padding-in
line: 10px; /* sets both start and end values */ /* <percentage> values */ padding-in
line: 5% 2%; /* relative to the nearest block container's width */ /* global values */ padding-in
line: inherit; padding-in
line: initial; padding-in
line: unset; constituent properties this property is a shorthand for the following css properties: padding-in
line-end padding-in
line-start syntax values the padding-in
line property takes the same values as the padding-left property.
... formal definition initial value0applies toall elementsinheritednopercentageslogical-width of containing blockcomputed valueas <length>animation typediscrete formal syntax <'padding-left'>{1,2} examples setting in
line padding for vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; padding-in
line: 20px 40px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the d...
...efinition of 'padding-in
line' in that specification.
scroll-margin-inline-end - CSS: Cascading Style Sheets
the scroll-margin-in
line-end property defines the margin of the scroll snap area at the end of the in
line dimension that is used for snapping this box to the snapport.
... syntax /* <length> values */ scroll-margin-in
line-end: 10px; scroll-margin-in
line-end: 1em; /* global values */ scroll-margin-in
line-end: inherit; scroll-margin-in
line-end: initial; scroll-margin-in
line-end: unset; values <length> an outset from the in
line end edge of the scroll container.
... last of all we specify the scroll margin values, a different one for the second and third child elements: .scroller > div:nth-child(2) { scroll-margin-in
line-end: 1rem; } .scroller > div:nth-child(3) { scroll-margin-in
line-end: 2rem; } this means that when scrolling past the middle child elements, the scrolling will snap to 1rem outside the in
line end edge of the second <div>, and 2rems outside the in
line end edge of the third <div>.
... result try it for yourself: specifications specification status comment css scroll snap module level 1the definition of 'scroll-margin-in
line-end' in that specification.
scroll-margin-inline-start - CSS: Cascading Style Sheets
the scroll-margin-in
line-start property defines the margin of the scroll snap area at the start of the in
line dimension that is used for snapping this box to the snapport.
... syntax /* <length> values */ scroll-margin-in
line-start: 10px; scroll-margin-in
line-start: 1em; /* global values */ scroll-margin-in
line-start: inherit; scroll-margin-in
line-start: initial; scroll-margin-in
line-start: unset; values <length> an outset from the in
line start edge of the scroll container.
... last of all we specify the scroll margin-values, a different one for the second and third child elements: .scroller > div:nth-child(2) { scroll-margin-in
line-start: 1rem; } .scroller > div:nth-child(3) { scroll-margin-in
line-start: 2rem; } this means that when scrolling past the middle child elements, the scrolling will snap to 1rem outside the in
line start edge of the second <div>, and 2rems outside the in
line start edge of the third <div>.
... result try it for yourself: specifications specification status comment css scroll snap module level 1the definition of 'scroll-margin-in
line-start' in that specification.
Mobile-friendliness - Developer guides
what is mobile friend
liness?
... mobile friend
liness can mean a multitude of things, depending on who you’re talking to.
...a slimmed-down,
linearized page layout with elements sized for a touchscreen would be much more appropriate.
... separate sites responsive design a hybrid approach original document information originally published on 4 may, 2011 on the mozilla webdev blog as "approaches to mobile web development part 1 - what is mobile friend
liness?", by jason grlicky.
Extension Theming Guidelines - Archive of obsolete content
this is a set of guide
lines on how to control the look and feel of your extension while leaving it open for styling by custom themes.
... branding certain items of your extensions style, in particular logos and icons can be kept in the chrome content package such that they are not replaceable by custom themes stylesheets guide
lines include stylesheets for every new window that your extension adds and for every window that your extension overlays content into be sure to add a stylesheet from your chrome skin package.
... xul guide
lines xbl bindings xbl bindings are applied using style rules.
Cmdline tests - Archive of obsolete content
the cmd
line testsuite is located in test/cmd
line.
...see test/cmd
line/readme document for more information.
... two use cases for the cmd
line testsuite: use case 1: test the interactive cmd
line debugger test contents: start avmshell -d test.abc, set breakpoint on a
line, show local variable value, quit from cmdutils import * def run(): r=runtestlib() r.run_test( 'debugger locals', '%s -d testdata/debug.abc'%r.avmrd, input='break 53\ncontinue\nnext\ninfo locals\nnext\ninfo locals\nquit\n', expectedout=['local1 = undefined','local2 = 10','local2 = 15'] ) use case 2: test -memstats returns memory logs to stdout test contents: start avmshell -memstats test.abc, assert stdout contains 'gross stats', 'sweep m reclaimed n pages.' from cmdutils import * def run(): r=runtestlib() r.run_test(name='memstats', command="%s -memstats testdata/memstats.ab...
multiline - Archive of obsolete content
« xul reference home multi
line type: boolean if true, the textbox displays multiple
lines.
... if the user presses enter, a new
line is started.
... if false, the textbox only allows entry of one
line.
overflow-clip-box-inline
the overflow-clip-box-in
line css property specifies relative to which box the clipping happens when there is an overflow — in the in
line direction.
... /* keyword values */ overflow-clip-box-in
line: padding-box; overflow-clip-box-in
line: content-box; /* global values */ overflow-clip-box-in
line: inherited; overflow-clip-box-in
line: initial; overflow-clip-box-in
line: unset; note: on gecko, by default, padding-box is used everywhere, but <input type="text"> and similar use the value content-box.
... examples padding-box html <div class="things"> <input value="abcdefghijklmnopqrstuvwxyzÅÄÖ" class="scroll padding-box"> <div class="scroll padding-box"><span>abcdefghijklmnopqrstuvwxyzÅÄÖ</span></div> </div> css .scroll { overflow: auto; padding: 0 30px; width: 6em; border: 1px solid black; background: lime content-box; } .padding-box { overflow-clip-box-in
line: padding-box; } javascript function scrollsomeelements() { var elms = document.queryselectorall('.scroll'); for (i=0; i < elms.length; ++i) { elms[i].scrollleft=80; } } var elt = document.queryelementsbytagname('body')[0]; elt.addeventlistener("load", scrollsomeelements, false); result specifications this property has been proposed to the w3c csswg; it is not yet on the standar...
AnimationPlaybackEvent.timelineTime - Web APIs
the time
linetime read-only property of the animationplaybackevent interface represents the time value of the animation's time
line at the moment the event is queued.
... this will be unresolved if the animation was not associated with a time
line at the time the event was generated or if the associated time
line was inactive.
... specifications specification status comment web animationsthe definition of 'animationplaybackevent.time
linetime' in that specification.
IdleDeadline.didTimeout - Web APIs
the read-only didtimeout property on the idledead
line interface is a boolean value which indicates whether or not the idle callback is being invoked because the timeout interval specified when window.requestidlecallback() was called has expired.
... if didtimeout is true, the idledead
line object's timeremaining() method will return approximately 0.
... syntax var timedout = idledead
line.didtimeout; value a boolean which is true if the callback is running due to the callback's timeout period elapsing or false if the callback is running because the user agent is idle and is offering time to the callback.
IdleDeadline.timeRemaining() - Web APIs
the timeremaining() method on the idledead
line interface returns the estimated number of milliseconds remaining in the current idle period.
... syntax timeremaining = idledead
line.timeremaining(); return value a domhighrestimestamp value (which is a floating-point number) representing the number of milliseconds the user agent estimates are left in the current idle period.
... if the idledead
line object's didtimeout property is true, this method returns zero.
IdleDeadline - Web APIs
the idledead
line interface is used as the data type of the input parameter to idle callbacks established by calling window.requestidlecallback().
... properties idledead
line.didtimeout read only a boolean whose value is true if the callback is being executed because the timeout specified when the idle callback was installed has expired.
... methods idledead
line.timeremaining() returns a domhighrestimestamp, which is a floating-point value providing an estimate of the number of milliseconds remaining in the current idle period.
LinearAccelerationSensor.y - Web APIs
the y read-only property of the
linearaccelerationsensor interface returns a double precision integer containing the acceleration of the device along the device's y axis.
... example
linear acceleration is typically read in the sensor.onreading event callback.
... let lasensor = new
linearaccelerationsensor({frequency: 60}); lasensor.addeventlistener('reading', e => { console.log("
linear acceleration along the x-axis " + lasensor.x); console.log("
linear acceleration along the y-axis " + lasensor.y); console.log("
linear acceleration along the z-axis " + lasensor.z); }); lasensor.start(); specifications specification status comment generic sensor api candidate recommendation defines sensors in general.
LinearAccelerationSensor.z - Web APIs
the z read-only property of the
linearaccelerationsensor interface returns a double precision integer containing the acceleration of the device along the device's z axis.
... example
linear acceleration is typically read in the sensor.onreading event callback.
... let lasensor = new
linearaccelerationsensor({frequency: 60}); lasensor.addeventlistener('reading', e => { console.log("
linear acceleration along the x-axis " + lasensor.x); console.log("
linear acceleration along the y-axis " + lasensor.y); console.log("
linear acceleration along the z-axis " + lasensor.z); }); lasensor.start(); specifications specification status comment generic sensor api candidate recommendation defines sensors in general.
OfflineAudioContext: complete event - Web APIs
the complete event of the off
lineaudiocontext interface is fired when the rendering of an off
line audio context is complete.
... bubbles no cancelable no default action none interface off
lineaudiocompletionevent event handler property off
lineaudiocontext.oncomplete examples when processing is complete, you might want to use the oncomplete handler the prompt the user that the audio can now be played, and enable the play button: let off
lineaudioctx = new off
lineaudiocontext(); off
lineaudioctx.addeventlistener('complete', () => { console.log('off
line audio processing now complete'); showmodaldialog('song processed and ready to play'); playbtn.disabled = false; }) you can also set up the event handler using the off
lineaudiocontext.oncomplete property: let off
lineaudioctx = new off
lineaudiocontext(); off
lineaudioctx.oncomplete = function() { c...
...onsole.log('off
line audio processing now complete'); showmodaldialog('song processed and ready to play'); playbtn.disabled = false; } specifications specification status comment web audio apithe definition of 'off
lineaudiocompletionevent' in that specification.
OfflineAudioContext.oncomplete - Web APIs
the oncomplete event handler of the off
lineaudiocontext interface is called when the audio processing is terminated, that is when the complete event (of type off
lineaudiocompletionevent) is raised.
... syntax var off
lineaudioctx = new off
lineaudiocontext(); off
lineaudioctx.oncomplete = function() { ...
... off
lineaudioctx.oncomplete = function() { console.log('off
line audio processing now complete'); showmodaldialog('song processed and ready to play'); playbtn.disabled = false; } specifications specification status comment web audio apithe definition of 'oncomplete' in that specification.
OfflineAudioContext.resume() - Web APIs
the resume() method of the off
lineaudiocontext interface resumes the progression of time in an audio context that has been suspended.
... the promise resolves immediately because the off
lineaudiocontext does not require the audio hardware.
... syntax off
lineaudiocontext.resume().then(function() { ...
OfflineAudioContext.suspend() - Web APIs
the suspend() method of the off
lineaudiocontext interface schedules a suspension of the time progression in the audio context at the specified time and returns a promise.
... this is generally useful at the time of manipulating the audio graph synchronously on off
lineaudiocontext.
... syntax off
lineaudiocontext.suspend(suspendtime).then(function() { ...
SecurityPolicyViolationEvent.lineNumber - Web APIs
the
linenumber read-only property of the securitypolicyviolationevent interface is the
line number in the document or worker at which the violation occurred.
... syntax let
linenumber = violationeventinstance.
linenumber; value a number representing the
line number at which the violation occurred.
... example document.addeventlistener("securitypolicyviolation", (e) => { console.log(e.
linenumber); }); specifications specification status comment content security policy level 3the definition of '
linenumber' in that specification.
Window.scrollByLines() - Web APIs
the window.scrollby
lines() method scrolls the document by the specified number of
lines.
... syntax window.scrollby
lines(
lines) parameters
lines is the number of
lines to scroll the document by.
... example <!-- scroll up the document by 5
lines --> <button id="scroll-up" onclick="scrollby
lines(-5);">up 5
lines</button> <!-- scroll down the document by 5
lines --> <button id="scroll-down" onclick="scrollby
lines(5);">down 5
lines</button> specification this is not part of any specification.
WorkerGlobalScope.onoffline - Web APIs
the onoff
line property of the workerglobalscope interface represents an eventhandler to be called when the off
line event occurs and bubbles through the worker.
... syntax self.onoff
line = function() { ...
... }; example the following code snippet shows an onoff
line handler set inside a worker: self.onoff
line = function() { console.log('your worker is now off
line'); } specifications specification status comment html living standardthe definition of 'workerglobalscope.onoff
line' in that specification.
WorkerGlobalScope.ononline - Web APIs
the onon
line property of the workerglobalscope interface represents an eventhandler to be called when the on
line event occurs and bubbles through the worker.
... syntax self.onon
line = function() { ...
... }; example the following code snippet shows an onon
line handler set inside a worker: self.onon
line = function() { console.log('your worker is now on
line'); } specifications specification status comment html living standardthe definition of 'workerglobalscope.onon
line' in that specification.
XRRenderState.inlineVerticalFieldOfView - Web APIs
the in
lineverticalfieldofview read-only property of the xrrenderstate interface defines the angle of the field of view in radians used when computing projection matrices for "in
line" xrsession objects.
... syntax var adouble = xrrenderstate.in
lineverticalfieldofview; value a number.
... specifications specification status comment unknownthe definition of 'xrrenderstate.in
lineverticalfieldofview' in that specification.
XRRenderState.inlineVerticalFieldOfView - Web APIs
the read-only in
lineverticalfieldofview property of the xrrenderstate interface returns the default vertical field of view for "in
line" sessions and null for all immersive sessions.
... syntax var in
lineverticalfieldofview = xrrenderstate.in
lineverticalfieldofview; value a number for "in
line" sessions, which represents the default field of view, and null for immersive sessions.
... specifications specification status comment webxr device apithe definition of 'xrrenderstate.in
lineverticalfieldofview' in that specification.
-moz-outline-radius-bottomright - CSS: Cascading Style Sheets
in mozilla applications, the -moz-out
line-radius-bottomright css property can be used to round the bottom-right corner of an element's out
line.
... syntax the value of -moz-out
line-radius-bottomright is either a css <length> or a percentage of the corresponding dimensions of the border box.
... formal definition initial value0applies toall elementsinheritednopercentagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percentage or calc(); formal syntax <out
line-radius>where <out
line-radius> = <length> | <percentage> examples html <p>look at this paragraph's bottom-right corner.</p> css p { margin: 5px; border: solid cyan; out
line: dotted red; -moz-out
line-radius-bottomright: 2em; } result the example above will not display the desired effect if you are viewing this in a browser other than firefox.
-moz-outline-radius-topright - CSS: Cascading Style Sheets
in mozilla applications, the -moz-out
line-radius-topright css property can be used to round the top-right corner of an element's out
line.
... syntax the value of -moz-out
line-radius-topright is either a css <length> or a percentage of the corresponding dimensions of the border box.
... formal definition initial value0applies toall elementsinheritednopercentagesrefer to the corresponding dimension of the border boxcomputed valueas specifiedanimation typea length, percentage or calc(); formal syntax <out
line-radius>where <out
line-radius> = <length> | <percentage> examples html <p>look at this paragraph's top-right corner.</p> css p { margin: 5px; border: solid cyan; out
line: dotted red; -moz-out
line-radius-topright: 2em; } result the example above will not display the desired effect if you are viewing this in a browser other than firefox.
border-inline-color - CSS: Cascading Style Sheets
the border-in
line-color css property defines the color of the logical in
line borders of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation.
... border-in
line-color: yellow; border-in
line-color: #f5f6f7; the border color in the other dimension can be set with border-block-color which sets border-block-start-color, and border-block-end-color.
...rrentcolorapplies toall elementsinheritednocomputed valuecomputed coloranimation typediscrete formal syntax <'border-top-color'>{1,2} examples border color with vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 10px solid blue; border-in
line-color: red; } results specifications specification status comment css logical properties and values level 1the definition of 'border-in
line-color' in that specification.
border-inline-end-color - CSS: Cascading Style Sheets
the border-in
line-end-color css property defines the color of the logical in
line-end border of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation.
... syntax border-in
line-end-color: rebeccapurple; border-in
line-end-color: #663399; related properties are border-block-start-color, border-block-end-color, and border-in
line-start-color, which define the other border colors of the element.
... formal definition initial valuecurrentcolorapplies toall elementsinheritednocomputed valuecomputed coloranimation typea color formal syntax <'border-top-color'> examples html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 10px solid blue; border-in
line-end-color: red; } specifications specification status comment css logical properties and values level 1the definition of 'border-in
line-end-color' in that specification.
border-inline-end-width - CSS: Cascading Style Sheets
the border-in
line-end-width css property defines the width of the logical in
line-end border of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation.
... syntax /* <'border-width'> values */ border-in
line-end-width: 2px; border-in
line-end-width: thick; related properties are border-block-start-width, border-block-end-width, and border-in
line-start-width, which define the other border widths of the element.
...ckcomputed valueabsolute length; 0 if the border style is none or hiddenanimation typea length formal syntax <'border-top-width'> examples applying a border with vertical text html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 1px solid blue; border-in
line-end-width: 5px; } results specifications specification status comment css logical properties and values level 1the definition of 'border-in
line-end-width' in that specification.
border-inline-start-color - CSS: Cascading Style Sheets
the border-in
line-start-color css property defines the color of the logical in
line start border of an element, which maps to a physical border color depending on the element's writing mode, directionality, and text orientation.
... syntax border-in
line-start-color: red; border-in
line-start-color: #ee4141; related properties are border-block-start-color, border-block-end-color, and border-in
line-end-color, which define the other border colors of the element.
... formal definition initial valuecurrentcolorapplies toall elementsinheritednocomputed valuecomputed coloranimation typea color formal syntax <'border-top-color'> examples html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 10px solid blue; border-in
line-start-color: red; } specifications specification status comment css logical properties and values level 1the definition of 'border-in
line-start-color' in that specification.
border-inline-start-width - CSS: Cascading Style Sheets
the border-in
line-start-width css property defines the width of the logical in
line-start border of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation.
... syntax /* <'border-width'> values */ border-in
line-start-width: 5px; border-in
line-start-width: thick; related properties are border-block-start-width, border-block-end-width, and border-in
line-end-width, which define the other border widths of the element.
...entageslogical-width of containing blockcomputed valueabsolute length; 0 if the border style is none or hiddenanimation typea length formal syntax <'border-top-width'> examples html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 1px solid blue; border-in
line-start-width: 5px; } specifications specification status comment css logical properties and values level 1the definition of 'border-in
line-start-width' in that specification.
border-inline-width - CSS: Cascading Style Sheets
the border-in
line-width css property defines the width of the logical in
line borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation.
... /* <'border-width'> values */ border-in
line-width: 5px 10px; border-in
line-width: 5px; border-in
line-width: thick; 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.
...entageslogical-width of containing blockcomputed valueabsolute length; 0 if the border style is none or hiddenanimation typediscrete formal syntax <'border-top-width'> examples html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 1px solid blue; border-in
line-width: 5px 10px; } specifications specification status comment css logical properties and values level 1the definition of 'border-in
line-width' in that specification.
inset-inline - CSS: Cascading Style Sheets
the inset-in
line css property defines the logical start and end offsets of an element in the in
line direction, which maps to physical offsets depending on the element's writing mode, directionality, and text orientation.
... /* <length> values */ inset-in
line: 3px 10px; inset-in
line: 2.4em 3em; inset-in
line: 10px; /* value applied to start and end */ /* <percentage>s of the width or height of the containing block */ inset-in
line: 10% 5%; /* keyword value */ inset-in
line: auto; /* global values */ inset-in
line: inherit; inset-in
line: initial; inset-in
line: unset; constituent properties this property is a shorthand for the following css properties: inset-in
line-end inset-in
line-start syntax values the inset-in
line property takes the same values as the left property.
... formal definition initial valueautoapplies topositioned elementsinheritednopercentageslogical-width of containing blockcomputed valuesame as box offsets: top, right, bottom, left properties except that directions are logicalanimation typea length, percentage or calc(); formal syntax <'top'>{1,2} examples setting in
line start and end offsets html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; position: relative; inset-in
line: 20px 50px; background-color: #c8c800; } result specifications specification status comment css logical properties and values level 1the definition of 'inset-in
line' in that specification.
scroll-padding-inline-end - CSS: Cascading Style Sheets
the scroll-padding-in
line-end property defines offsets for the end edge in the in
line dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user.
... syntax /* keyword values */ scroll-padding-in
line-end: auto; /* <length> values */ scroll-padding-in
line-end: 10px; scroll-padding-in
line-end: 1em; scroll-padding-in
line-end: 10%; /* global values */ scroll-padding-in
line-end: inherit; scroll-padding-in
line-end: initial; scroll-padding-in
line-end: unset; values <length-percentage> an inwards offset from the in
line end edge of the scrollport, as a valid length or a percentage.
...valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-in
line-end' in that specification.
scroll-padding-inline-start - CSS: Cascading Style Sheets
the scroll-padding-in
line-start property defines offsets for the start edge in the in
line dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user.
... syntax /* keyword values */ scroll-padding-in
line-start: auto; /* <length> values */ scroll-padding-in
line-start: 10px; scroll-padding-in
line-start: 1em; scroll-padding-in
line-start: 10%; /* global values */ scroll-padding-in
line-start: inherit; scroll-padding-in
line-start: initial; scroll-padding-in
line-start: unset; values <length-percentage> an inwards offset from the in
line start edge of the scrollport, as a valid length or a percent...
...valueautoapplies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax auto | <length-percentage>where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-in
line-start' in that specification.
scroll-padding-inline - CSS: Cascading Style Sheets
the scroll-padding-in
line shorthand property sets the scroll padding of an element in the in
line dimension.
... constituent properties this property is a shorthand for the following css properties: scroll-padding-in
line-end scroll-padding-in
line-start syntax /* keyword values */ scroll-padding-in
line: auto; /* <length> values */ scroll-padding-in
line: 10px; scroll-padding-in
line: 1em .5em; scroll-padding-in
line: 10%; /* global values */ scroll-padding-in
line: inherit; scroll-padding-in
line: initial; scroll-padding-in
line: unset; values <length-percentage> an inwards offset from the corresponding edge...
...applies toscroll containersinheritednopercentagesrelative to the scroll container's scrollportcomputed valueas specifiedanimation typeby computed value type formal syntax [ auto | <length-percentage> ]{1,2}where <length-percentage> = <length> | <percentage> specifications specification status comment css scroll snap module level 1the definition of 'scroll-padding-in
line' in that specification.
<iframe>: The Inline Frame element - HTML: Hypertext Markup Language
the html in
line frame element (<iframe>) represents a nested browsing context, embedding another html page into the current one.
... srcdoc in
line html to embed, overriding the src attribute.
... scripting in
line frames, like <frame> elements, are included in the window.frames pseudo-array.
Pipeline operator (|>) - JavaScript
the experimental pipe
line operator |> (currently at stage 1) pipes the value of an expression into a function.
... examples chaining function calls the pipe
line operator can improve readability when chaining several functions.
... const double = (n) => n * 2; const increment = (n) => n + 1; // without pipe
line operator double(increment(double(double(5)))); // 42 // with pipe
line operator 5 |> double |> double |> increment |> double; // 42 specifications specification pipe
line operatorthe definition of 'pipe
line operator' in that specification.
overline-position - SVG: Scalable Vector Graphics
the over
line-position attribute represents the ideal vertical position of the over
line.
... the over
line position is expressed in the font's coordinate system.
... usage context categories none value <number> animatable no normative document svg 1.1 (2nd edition) elements the following elements can use the over
line-position attribute: <font-face> ...
overline-thickness - SVG: Scalable Vector Graphics
the over
line-thickness attribute represents the ideal thickness of the over
line.
... the over
line thickness is expressed in the font's coordinate system.
... usage context categories none value <number> animatable no normative document svg 1.1 (2nd edition) elements the following elements can use the over
line-thickness attribute: <font-face> ...
underline-position - SVG: Scalable Vector Graphics
« svg attribute reference home the under
line-position attribute represents the ideal vertical position of the under
line.
... the under
line position is expressed in the font's coordinate system.
... usage context categories none value <number> animatable no normative document svg 1.1 (2nd edition) elements the following elements can use the under
line-position attribute: <font-face> ...
underline-thickness - SVG: Scalable Vector Graphics
« svg attribute reference home the under
line-thickness attribute represents the ideal thickness of the under
line.
... the under
line thickness is expressed in the font's coordinate system.
... usage context categories none value <number> animatable no normative document svg 1.1 (2nd edition) elements the following elements can use the under
line-thickness attribute: <font-face> ...
newlines - Archive of obsolete content
« xul reference home new
lines type: one of the values below how the text box handles pastes with new
lines in them.
... possible values: pasteintact paste new
lines unchanged pastetofirst paste text up to the first new
line, dropping the rest of the text replacewithcommas pastes the text with the new
lines replaced with commas replacewithspaces pastes the text with new
lines replaced with spaces strip pastes the text with the new
lines removed stripsurroundingwhitespace pastes the text with new
lines and adjacent whitespace removed ...
ui.SpellCheckerUnderlineStyle
ui.spellcheckerunder
linestyle holds the style which is used to under
line words not recognized by the spellchecker.
... 0 no underlining 1 dotted 2 dashed 3 single solid
line 4 two solid
lines 5 (default) wavy ...
Index - MDN Web Docs Glossary: Definitions of Web-related terms
9 atag atag, accessibility, authoring tool accessibility guide
lines, glossary atag (authoring tool accessibility guide
lines) is a w3c recommendation for building accessible-authoring tools that produce accessible contents.
... 28 base
line css, glossary, svg, alignment, typography the base
line is a term used in european and west asian typography meaning an imaginary
line upon which the characters of a font rest.
...it may refer to: 33 block (css) css, codingscripting, design, glossary, html a block on a webpage is an html element that appears on a new
line, i.e.
...And 29 more matches
Client-side storage - Learn web development
this lets you persist data for long-term storage, save sites or documents for off
line use, retain user-specific settings for your site, and more.
... saving web application generated documents locally for use off
line often client-side and server-side storage are used together.
...this api is designed for storing http responses to specific requests, and is very useful for doing things like storing website assets off
line so the site can subsequently be used without a network connection.
...And 29 more matches
JIT Optimization Strategies
it then directly in
lines the value of the property into hot code that accesses it.
... for (var i = 0; i < array.length; i++) { if (array[i] > 100) return true; } when this optimization is successful, property access is eliminated entirely and replaced with an in
line constant.
... when this optimization is successful, property access is eliminated entirely and replaced with an in
line constant.
...And 29 more matches
Using the application cache - HTML: Hypertext Markup Language
as of firefox 44+, when appcache is used to provide off
line support for a page, a warning message displays in the console advising developers to use service workers instead (bug 1204581).
... introduction html5 provides an application caching mechanism that lets web applications run off
line.
... this application cache (appcache) interface lists resources that browsers should cache to be available off
line.
...And 28 more matches
What went wrong? Troubleshooting JavaScript - Learn web development
you should see an error message along the following
lines: this is a pretty easy error to track down, and the browser gives you several useful bits of information to help you out (the screenshot above is from firefox, but other browsers provide similar information).
...if you follow this link, you'll see the exact
line where the error is highlighted.
... the
line number where the error is, and the character number in that
line where the error is first seen.
...And 25 more matches
Hacking Tips
js> function f () { return 1; } js> dis(f); flags: loc op ----- -- main: 00000: one 00001: return 00002: stop source notes: ofs
line pc delta desc args ---- ---- ----- ------ -------- ------ 0: 1 0 [ 0] new
line 1: 2 0 [ 0] colspan 2 3: 2 2 [ 2] colspan 9 getting the bytecode of a function (from gdb) in jsopcode.cpp, a function named js::disassembleatpc can print the bytecode of a script.
... the backtrace contains in the following order, the stack depth, the interpreter frame pointer (see js/src/vm/stack.h, stackframe class) or (nil) if compiled with ionmonkey, the file and
line number of the call location and under parentheses, the jsscript pointer and the jsbytecode pointer (pc) executed.
...p(argc, vp); (gdb) enable unwinder .* spidermonkey (gdb) backtrace 10 #0 0x0000000000f89979 in js::math_cos(jscontext*, unsigned int, js::value*) (cx=0x14f2640, argc=1, vp=0x7fffffff6a88) at js/src/jsmath.cpp:338 #1 0x0000000000ca9c6e in js::calljsnative(jscontext*, bool (*)(jscontext*, unsigned int, js::value*), js::callargs const&) (cx=0x14f2640, native=0xf89960 , args=...) at js/src/jscntxtin
lines.h:235 #2 0x0000000000c87625 in js::invoke(jscontext*, js::callargs const&, js::maybeconstruct) (cx=0x14f2640, args=..., construct=js::no_construct) at js/src/vm/interpreter.cpp:476 #3 0x000000000069bdcf in js::jit::docallfallback(jscontext*, js::jit::base
lineframe*, js::jit::iccall_fallback*, uint32_t, js::value*, js::mutablehandlevalue) (cx=0x14f2640, frame=0x7fffffff6ad8, stub_=0x1798838, ar...
...And 25 more matches
Images, Tables, and Mysterious Gaps - Archive of obsolete content
instead of "shrinkwrapping" the image itself, the browser is now wrapping around the
line in which the image sits.
... the image is sitting in a
line because images are, by default, in
line content.
... how in
line content is constructed in order to understand what just happened, let's take a look at the construction of a
line box, the placement of images within a
line box, and the placement of a
line box within a table cell.
...And 24 more matches
HTML documentation index - HTML: Hypertext Markup Language
4 block-level elements beginner, development, guide, html, html5, web html (hypertext markup language) elements historically were categorized as either "block-level" elements or "in
line-level" elements.
... 55 <a>: the anchor element content, element, html, html text-level semantics, html:flow content, html:interactive content, html:palpable content, html:phrasing content, in
line element, reference, web the html <a> element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a url can address.
... 74 <br>: the
line break element element, html, html text-level semantics, reference, web the html <br> element produces a
line break in text (carriage-return).
...And 24 more matches
d - SVG: Scalable Vector Graphics
for <glyph>, d is a string containing a series of path commands that define the out
line shape of the glyph.
... for <missing-glyph>, d is a string containing a series of path commands that define the out
line shape of the glyph.
... svg defines 6 types of path commands, for a total of 20 commands: moveto: m, m
lineto: l, l, h, h, v, v cubic bézier curve: c, c, s, s quadratic bézier curve: q, q, t, t elliptical arc curve: a, a closepath: z, z note: commands are case-sensitive.
...And 24 more matches
MathML Demo: <mfrac> - fractions
in
line, auto, normal
line sin θ π , numerator and denominator should render script size.
... in
line, display style, normal
line ln x y , numerator and denominator should render normal size.
... in
line, text style, normal
line tan θ 67 , numerator and denominator should render script size.
...And 22 more matches
Border-image generator - CSS: Cascading Style Sheets
<div class="property right"> <div class="name">section height</div> <div class="ui-input-slider" data-topic="preview-area-height" data-min="400" data-max="1000"> </div> </div> </div> <div id="preview_section" class="group section"> <div id="subject"> <div class="guide
line" data-axis="y" data-topic="slice-top"></div> <div class="guide
line" data-axis="x" data-topic="slice-right"></div> <div class="guide
line" data-axis="y" data-topic="slice-bottom"></div> <div class="guide
line" data-axis="x" data-topic="slice-left"></div> </div> <div id="preview"> </div> </div> <!-- controls --> ...
...====================================== */ .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: lowercase; } .ui-input-slider-left, .ui-input-slider-right { width: 16px; cur...
...9/arrows.png") center left no-repeat; } .ui-input-slider-right { background: url("https://mdn.mozillademos.org/files/5679/arrows.png") center right no-repeat; } .ui-input-slider-name { width: 90px; padding: 0 10px 0 0; text-align: right; text-transform: lowercase; } .ui-input-slider-btn-set { width: 25px; background-color: #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 dropdown */ /* dropdown */ .ui-dropdown { height: 2em; width: 120px; font-family: "sego...
...And 22 more matches
JIT Optimization Outcomes
noanalysisinfo todo noshapeinfo the base
line compiler recorded no usable shape information for this operation.
... arrayrange could not accurately calculate the range attributes of an in
line array creation.
... hascommoninliningpath in
lined dom monomorphic polymorphic in
line cache outcomes outcomes describing in
line cache stubs that were generated.
...And 21 more matches
nsIDOMWindowUtils
[optional] in boolean aignorerootscrollframe); void sendmousescrollevent(in astring atype, in float ax, in float ay, in long abutton, in long ascrollflags, in long adelta, in long amodifiers); obsolete since gecko 17.0 void sendwheelevent(in float ax, in float ay, in double adeltax, in double adeltay, in double adeltaz, in unsigned long adeltamode, in long amodifiers, in long a
lineorpagedeltax, in long a
lineorpagedeltay, in unsigned long aoptions); void sendnativekeyevent(in long anativekeyboardlayout, in long anativekeycode, in long amodifierflags, in astring acharacters, in astring aunmodifiedcharacters); void sendnativemouseevent(in long ascreenx, in long ascreeny, in long anativemessage, in long amodifierflags, in nsidomelement aelement); n...
...keep in mind that during a restyle operation, an element may be restyled multiple times (for example, when an in
line element contains blocks).
... by sendkeyevent() returns keyboardevent.dom_key_location_mobile if this is specified to the aadditionalflags.obsolete since gecko 38.0 key_flag_location_joystick 0x0200 location attrubute of the sending key event by sendkeyevent() returns keyboardevent.dom_key_location_joystick if this is specified to the aadditionalflags.obsolete since gecko 38.0 wheel_event_caused_by_no_
line_or_page_delta_device 0x0001 used for aoptions of sendwheelevent().
...And 21 more matches
Lexical grammar - JavaScript
the source text of ecmascript scripts gets scanned from left to right and is converted into a sequence of input elements which are tokens, control characters,
line terminators, comments or white space.
... white space characters code point name abbreviation description escape sequence u+0009 character tabulation <ht> horizontal tabulation \t u+000b
line tabulation <vt> vertical tabulation \v u+000c form feed <ff> page breaking control character (wikipedia).
... \f u+0020 space <sp> normal space u+00a0 no-break space <nbsp> normal space, but no point at which a
line may break others other unicode space characters <usp> spaces in unicode on wikipedia
line terminators in addition to white space characters,
line terminator characters are used to improve the readability of the source text.
...And 21 more matches
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
color the color to use when drawing the text and any text decorations (such as the addition of under- or over
lines, strike-through
lines, and so forth.
... text-decoration-color by default, text decorations (such as under
lines, strikethroughs, etc) use the color property as their colors.
... column-rule-color the color to use when drawing the
line separating columns of text.
...And 20 more matches
Mozilla’s UAAG evaluation report
the uaag document contains a very rich set of accessibility guide
lines, that broadly define how accessibility should be implemented by any user agent, i.e.
... rating scale c: complete implementation vg: very good implementation, almost all requirements satisfied g: good implementation, most important requirements satisfied p: poor implementation, some requirements satisfied and/or difficult for user to access feature ni: not implemented nr: not rated na: not applicable document under construction guide
line 1.
...(p1) c status
line and alert boxes used to convey messages and alerts guide
line 2.
...And 19 more matches
Python binding for NSS
for simplicity you can receive a block of formatted text but if you need more control, such as when building gui elments you can access a list of "
lines", each
line is paired with an indentation level value.
... allow custom include root in setup.py as command
line arg.
... change log the primary enhancement in this version is adding support for pbkdf2 the following module functions were added: nss.create_pbev2_algorithm_id the following class methods were added: nss.algorithmid.get_pbe_crypto_mechanism nss.algorithmid.get_pbe_iv nss.pk11slot.pbe_key_gen nss.pk11slot.format_
lines nss.pk11slot.format nss.pk11symkey.format_
lines nss.pk11symkey.format nss.secitem.to_base64 nss.secitem.format_
lines nss.secitem.format the following files were added: doc/examples/pbkdf2_example.py the secitem constructor added 'ascii' parameter to permit initialization from base64 and/or pem textual dat...
...And 19 more matches
Drawing shapes with canvas - Web APIs
by the end of this article, you will have learned how to draw rectangles, triangles,
lines, arcs and curves, providing familiarity with some of the basic shapes.
... drawing rectangles unlike svg, <canvas> only supports two primitive shapes: rectangles and paths (lists of points connected by
lines).
... strokerect(x, y, width, height) draws a rectangular out
line.
...And 19 more matches
How whitespace is handled by HTML, CSS, and in the DOM - Web APIs
whitespace is any string of text composed only of spaces, tabs or
line breaks (to be precise, crlf sequences, carriage returns or
line feeds).
... </h1> this source code contains a couple of
line feeds after the doctype and a bunch of space characters before, after, and inside the <h1> element, but the browser doesn’t seem to care at all and just shows the words "hello world!" as if these characters didn’t exist at all: this is so that whitespace characters don't impact the layout of your page.
...to make it easier, we’ve illustrated all spaces with ◦, all tabs with ⇥ , and all
line breaks with ⏎: this example: <h1>◦◦◦hello◦⏎ ⇥⇥⇥⇥<span>◦world!</span>⇥◦◦</h1> is rendered in the browser like so: hidden example <h1> hello <span> world!</span> </h1> the <h1> element contains only in
line elements.
...And 19 more matches
Basic Concepts of grid layout - CSS: Cascading Style Sheets
a grid is a set of intersecting horizontal and vertical
lines defining columns and rows.
... elements can be placed onto the grid within these column and row
lines.
... item placement you can place items into a precise location on the grid using
line numbers, names or by targeting an area of the grid.
...And 19 more matches
CSS grids, logical values, and writing modes - CSS: Cascading Style Sheets
block and in
line once we begin dealing with logical, rather than physical properties, we stop seeing the world as left to right, and top to bottom.
... we need a new reference point, and this is where understanding the block and in
line axes, that we met previously in the guide to alignment, becomes very useful.
... if you can start to see layout in terms of block and in
line, the way things work in grid start to make a lot more sense.
...And 19 more matches
Paths - SVG: Scalable Vector Graphics
it can be used to create
lines, curves, arcs, and more.
... paths create complex shapes by combining multiple straight
lines or curved
lines.
... complex shapes composed only of straight
lines can be created as <poly
line>s.
...And 19 more matches
Venkman Introduction - Archive of obsolete content
you can also start the browser with the -venkman command
line option, which launches venkman initially instead of an application front end.
...these commands should be self explanatory, with the possible exception of stop, which causes the debugger to stop when the next
line of javascript is executed, and the profile button, which can be used to measure execution times for your scripts.
...if the source text you are debugging is poorly formatted, pretty print can help make it easier to read by inserting
line breaks and whitespace in appropriate places.
...And 18 more matches
Styling links - Learn web development
you'll notice a few things as you explore the default styles: links are under
lined.
... focused links have an out
line around them — you should be able to focus on the links on this page with the keyboard by pressing the tab key (on mac, you'll need to use option + tab, or enable the full keyboard access: all controls option by pressing ctrl + f7.) active links are red (try holding down the mouse button on the link as you click it.) interestingly enough, these default styles are nearly the same as they were back in the early days of browsers in the mid-1990s.
...if you don't want to under
line links, at least highlight them in some other way.
...And 18 more matches
Getting started with HTML - Learn web development
for example, consider the following
line of text: my cat is very grumpy if we wanted the text to stand by itself, we could specify that it is a paragraph by enclosing it in a paragraph (<p>) element: <p>my cat is very grumpy</p> note: tags in html are case-insensitive.
... active learning: creating your first html element edit the
line below in the input area by wrapping it with the tags <em> and </em>.
... to open the element, put the opening tag <em> at the start of the
line.
...And 18 more matches
CanvasRenderingContext2D - Web APIs
this code draws a house: // set
line width ctx.
linewidth = 10; // wall ctx.strokerect(75, 140, 150, 110); // door ctx.fillrect(130, 190, 40, 60); // roof ctx.beginpath(); ctx.moveto(50, 140); ctx.
lineto(150, 60); ctx.
lineto(250, 140); ctx.closepath(); ctx.stroke(); the resulting drawing looks like this: reference drawing rectangles there are three methods that immediately draw rectangles to the canvas.
...
line styles the following methods and properties control how
lines are drawn.
... canvasrenderingcontext2d.
linewidth width of
lines.
...And 18 more matches
HTML elements reference - HTML: Hypertext Markup Language
use the sectioning elements to create a broad out
line for your page content, including header and footer navigation, and heading elements to identify sections of content.
... in
line text semantics use the html in
line text semantic to define the meaning, structure, or style of a word,
line, or any arbitrary piece of text.
... <br> the html <br> element produces a
line break in text (carriage-return).
...And 18 more matches
Index - Archive of obsolete content
this element is often used with a short label or icon to indicate status, for instance whether the user is on
line or whether there are new messages.
...under
lined text may be read by the screen reader.
... 202 multi
line xul attributes, xul reference no summary!
...And 17 more matches
Application cache implementation overview
loading a top level document from off
line cache this happens in nshttpchannel::opencacheentry().
...if no nsiapplicationcache object has been found, there is no off
line cache to load from and the load continues a usual way by loading from normal http cache, further steps are not executed.
...then, nsicacheservice is asked to open nsicachesession with store_off
line policy and the given client id.
...And 17 more matches
Logical properties for margins, borders and padding - CSS: Cascading Style Sheets
the in
line direction therefore runs horizontally — left to right — and margin-in
line-start would be equivalent to margin-left.
... if you were using a horizontal-tb writing mode with a right-to-left text direction then margin-in
line-start would be the same as margin-right, and in a vertical writing mode it would be the same as using margin-top.
...order-bottom border-block-end-color border-bottom-color border-block-end-style border-bottom-style border-block-end-width border-bottom-width border-block-start border-top border-block-start-color border-top-color border-block-start-style border-top-style border-block-start-width border-top-width border-in
line-end border-right border-in
line-end-color border-right-color border-in
line-end-style border-right-style border-in
line-end-width border-right-width border-in
line-start border-left border-in
line-start-color border-left-color border-in
line-start-style border-left-style border-in
line-start-width border-left-width ...
...And 17 more matches
Introduction to the JavaScript shell
the javascript shell (js) is a command-
line program included in the spidermonkey source distribution.
...you can also pass in, on the command
line, a javascript program file to run, in which case the program is run automatically.
... command
line options there are a number of command
line options you can specify to control the shell.
...And 16 more matches
nsIScriptError
method overview void init(in wstring message, in wstring sourcename, in wstring source
line, in pruint32
linenumber, in pruint32 columnnumber, in pruint32 flags, in string category); void initwithwindowid(in wstring message, in wstring sourcename, in wstring source
line, in pruint32
linenumber, in pruint32 columnnumber, in pruint32 flags, in string category, in unsigned long long innerwindowid); autf8string tostring(); attributes attribute type de...
... errormessage astring the error message in a string format without any context/
line number information.
... note: nsiconsolemessage.message will return the error formatted with file/
line information.
...And 16 more matches
Cognitive accessibility - Accessibility
another form it can take is depression, such as when mourning the loss of a loved one, or being momentarily saddened by a tweet or video they just saw on
line.
...includes: delivering content in more than one way, such as by text-to-speech or by video; providing easily-understood content, such as text written using plain-language standards; focusing attention on important content; minimizing distractions, such as unnecessary content or advertisements; providing consistent web page layout and navigation; incorporating familiar elements, such as under
lined links that are blue when not visited and purple when visited; dividing processes into logical, essential steps with progress indicators; making website authentication as easy as possible without compromising security; and making forms easy to complete, such as with clear error messages and simple error recovery.
... wcag guide
lines wcag, web content accessibility guide
lines, includes several guide
lines to improve cognitive accessibility.
...And 16 more matches
vertical-align - CSS: Cascading Style Sheets
the vertical-align css property sets vertical alignment of an in
line, in
line-block or table-cell box.
... the vertical-align property can be used in two contexts: to vertically align an in
line element's box inside its containing
line box.
... for example, it could be used to vertically position an <img> in a
line of text: <p> top:<img style="vertical-align:top" src="https://udn.realityripple.com/samples/16/ed9c61c3b6.png"/> middle:<img style="vertical-align:middle" src="https://udn.realityripple.com/samples/16/ed9c61c3b6.png"/> bottom:<img style="vertical-align:bottom" src="https://udn.realityripple.com/samples/16/ed9c61c3b6.png"/> super:<img style="vertical-align:super" src="https://udn.realityripple.com/samples/16/ed9c61c3b6.png"/> sub:<img style="vertical-align:sub" src="https://udn.realityripple.com/samples/16/ed9c61c3b6.png"/> </p> <p> text-top:<img style="vertical-align:text-top" src="https://udn.realityripple.com/samples/16/ed9c61c3b6.png"/> text-bottom:<img style="vertical-align:text-bottom" src="https://udn.realityrip...
...And 16 more matches
File object - Archive of obsolete content
if you are building a standalone version of spidermonkey (see: spidermonkey build documentation), this variable can be added on the make command
line, like so: cd mozilla/js/src make -f makefile.ref js_has_file_object=1 alternatively, if you are building a larger product (such as a browser) and want to include the file object, you may need to perform minor makefile surgery.
... summary non-standard server-side object this object lets you work files and directories on the local filesystem, and create os pipe
lines.
... creating a pipe
line involves spawning arbitrary processes; this means that giving a script access to the file object is exactly equivalent to giving the script access to the unix shell or dos command interpreter.
...And 15 more matches
Grids - Learn web development
a grid is a collection of horizontal and vertical
lines creating a pattern against which we can
line up our design elements.
...
line-based placement we now move on from creating a grid, to placing things on the grid.
... our grid always has
lines, which
lines start at 1 and relate to the writing mode of the document.
...And 15 more matches
Migrating from Firebug - Firefox Developer Tools
it shows log information associated with a web page and allows you to execute javascript expressions via its command
line.
... command
line api the command
line api in firebug provides some special functions for your convenience.
... the developer tools command
line has some functions in common, but also has some other functions and misses others.
...And 15 more matches
The JavaScript input interpreter - Firefox Developer Tools
it has two modes: single-
line entry and multi-
line entry.
... single-
line mode for single-
line entry, you can type javascript expressions in the field at the bottom of the console log, at the >> prompt.
... to enter expressions in single-
line mode, type at the prompt and press enter.
...And 15 more matches
A first splash into JavaScript - Learn web development
first of all, add the following
lines inside your <script> element: let randomnumber = math.floor(math.random() * 100) + 1; const guesses = document.queryselector('.guesses'); const lastresult = document.queryselector('.lastresult'); const loworhi = document.queryselector('.loworhi'); const guesssubmit = document.queryselector('.guesssubmit'); const guessfield = document.queryselector('.guessfield'); let guesscount = 1; let rese...
...then go into the developer tools javascript console, and enter the following
line: checkguess(); after pressing return/enter, you should see an alert come up that says "i am a placeholder"; we have defined a function in our code that creates an alert whenever we call it.
...try entering the following
lines, one at a time: let name = 'bingo'; name; let hello = ' says hello!'; hello; let greeting = name + hello; greeting; there are also some shortcut operators available, called augmented assignment operators.
...And 14 more matches
Storing the information you need — Variables - Learn web development
tools you need throughout this article, you'll be asked to type in
lines of code to test your understanding of the content.
...let's look at a simple example: <button>press me</button> const button = document.queryselector('button'); button.onclick = function() { let name = prompt('what is your name?'); alert('hello ' + name + ', nice to see you!'); } in this example pressing the button runs a couple of
lines of code.
... the first
line pops a box up on the screen that asks the reader to enter their name, and then stores the value in a variable.
...And 14 more matches
Profiling with the Firefox Profiler
time
line the time
line has several rows of tracing markers (colored segments) which indicate interesting events.
... thread time
line(s) thread/process time
lines: below the tracing markers we have a list of profiled threads.
...each of these time
lines is aligned with wall clock time.
...And 14 more matches
TextMetrics - Web APIs
properties textmetrics.width read only is a double giving the calculated width of a segment of in
line text in css pixels.
...the distance is measured parallel to the base
line.
...the distance is measured parallel to the base
line.
...And 14 more matches
SVG Presentation Attributes - SVG: Scalable Vector Graphics
alignment-base
line base
line-shift clip clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering cursor direction display dominant-base
line enable-background fill fill-opacity fill-rule filter flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-orientation-horizontal glyph-orientation-vertical image-rendering kerning letter-spacing lighting-color marker-end marker-mid marker-start mask opacity overflow pointer-events shape-rendering solid-color solid-opacity stop-color stop-opacity stroke stroke-dasharray stroke-dashoffset stroke-lin...
...ecap stroke-
linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform unicode-bidi vector-effect visibility word-spacing writing-mode attributes alignment-base
line it specifies how an object is aligned along the font base
line with respect to its parent.
... value: auto|base
line|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical|inherit; animatable: yes base
line-shift it allows repositioning of the dominant-base
line relative to the dominant-base
line of the parent text content element.
...And 14 more matches
Fills and Strokes - SVG: Scalable Vector Graphics
« previousnext » there are several ways to color shapes (including specifying attributes on the object) using in
line css, an embedded css section, or an external css file.
... most svg you'll find around the web use in
line css, but there are advantages and disadvantages associated with each type.
...using fill sets the color inside the object and stroke sets the color of the
line drawn around the object.
...And 14 more matches
Positioning - Learn web development
my adjacent block level elements sit on new
lines below me.</p> <p class="positioned">by default we span 100% of the width of our parent element, and we are as tall as our child content.
...because of margin collapsing, we are separated by the width of one of our margins, not both.</p> <p>in
line elements <span>like this one</span> and <span>this one</span> sit on the same
line as one another, and adjacent text nodes, if there is space on the same
line.
... overflowing in
line elements <span>wrap onto a new
line if possible — like this one containing text</span>, or just go on to a new
line if not, much like this image will do: <img src="https://udn.realityripple.com/samples/9e/6ff6af6fd4.jpg"></p> body { width: 500px; margin: 0 auto; } p { background: aqua; border: 3px solid blue; padding: 10px; margin: 10px; } span { background: red; border: 1px solid black; } .positioned { position: relative; background: yellow; top: 30px; left: 30px; } cool, huh?
...And 13 more matches
Chrome registration
the plaintext chrome manifests are in a simple
line-based format.
... each
line is parsed individually; if the
line is parsable the chrome registry takes the action identified by that
line, otherwise the chrome registry ignores that
line (and prints a warning message in the runtime error console).
... manifest instructions comments # this
line is a comment - you can put here whatever you want a
line is a comment if it begins with the character '#'.
...And 13 more matches
NSS tools : signtool
note that with netscape signing tool version 1.1 and later this option can appear multiple times on one command
line, making it possible to specify multiple file types or classes to include.
...this option causes the specified directory to be signed and tags its entries as in
line javascript.
...instead, it is located in the html page containing the in
line scripts.
...And 13 more matches
Box-shadow generator - CSS: Cascading Style Sheets
================================== */ .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; } .ui-slider-pointer { width: 13px; height: 13px; background-color: #eee; ...
...er-btn-set:hover { background-color: #379b4a; cursor: 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-p...
...-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } #stack_container .container { height: 100%; width: 100%; position: absolute; left: 100%; transition-property: left; transition-duration: 0.5s; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } #stack_container .title { text-align: center; font-weight: bold;
line-height: 2em; border-bottom: 1px solid #43a6e1; color: #666; } /* * stack of layers for shadow */ #layer_manager { width: 17%; background-color: #fefefe; margin: 0 1% 0 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; float: left; } #layer_manager .button { width: 30%; height: 25px; margin:0 0 10px; color: #333; background-color: #eee; ...
...And 13 more matches
Visual formatting model - CSS: Cascading Style Sheets
however, you might design something that requires scrolling in the in
line dimension too.
... in
line anonymous boxes are created when a string is split by an in
line element, for example, a sentence that includes a section wrapped with <em></em>.
... this splits the sentence into three in
line boxes — an anonymous in
line box before the emphasized section, the section wrapped in the <em> element, then a final anonymous in
line box.
...And 13 more matches
CSP: script-src - HTTP
this includes not only urls loaded directly into <script> elements, but also things like in
line script event handlers (onclick) and xslt stylesheets which can trigger script execution.
... 'unsafe-hashes' allows enabling specific in
line event handlers.
... if you only need to allow in
line event handlers and not in
line <script> elements or javascript: urls, this is a safer method than using the unsafe-in
line expression.
...And 13 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
listing 2: content for chrome.manifest content helloworld content/ overlay chrome://browser/content/browser.xul chrome://helloworld/content/overlay.xul register the content package (content instruction)
line 1, beginning content, contains the code used to register the chrome’s content package.
... xul cross-package overlay (overlay instruction)
line 2, beginning overlay, contains the code used to invoke the cross-package overlay, overlaying the firefox browser window, at chrome://browser/content/browser.xul with chrome://helloworld/content/overlay.xul.
...in
line 4, we identify the merge point as the menupop element; in
lines 5–7, we have the code that adds the new menu item.
...And 12 more matches
Anatomy of a video game - Game development
/* * starting with the semicolon is in case whatever
line of code above this example * relied on automatic semicolon insertion (asi).
... the browser could accidentally * think this whole example continues from the previous
line.
... the leading semicolon * marks the beginning of our new
line if the previous one was not empty or terminated.
...And 12 more matches
How CSS is structured - Learn web development
applying css to html first, let's examine three methods of applying css to a document: with an external stylesheet, with an internal stylesheet, and with in
line styles.
... in
line styles in
line styles are css declarations that affect a single html element, contained within a style attribute.
... the implementation of an in
line style in an html document might look like this: <!doctype html> <html> <head> <meta charset="utf-8"> <title>my css experiment</title> </head> <body> <h1 style="color: blue;background-color: yellow;border: 1px solid black;">hello world!</h1> <p style="color:red;">this is my first css example</p> </body> </html> avoid using css in this way when possible.
...And 12 more matches
Index - Learn web development
beginner, document, guide, needsactivelearning, web, web development, webmechanics, troubleshooting so you've published your website on
line?
... beginner, ftp, github, uploading, webmechanics, hosting, rsync, sftp if you have built a simple web page (see html basics for an example), you will probably want to put it on
line, on a web server.
...you won't build another facebook right away, but it's not hard to get your own simple website on
line, so we'll start there.
...And 12 more matches
Getting started with React - Learn web development
prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command
line.
... objective: to set up a local react development environment, create a start app, and understand the basics of how it works hello react as its official tag
line states, react is a library for building user interfaces.
...they're a signal to you (and your computer) that the multiple
lines of code inside are part of the same expression.
...And 12 more matches
Handling common JavaScript problems - Learn web development
on
line the jshint homepage provides an on
line linter, which allows you to enter your javascript code on the left and provides an output on the right, including metrics, warnings, and errors.
... after the packages have finished installing, try loading up a javascript file: you'll see any issues highlighted with green (for warnings) and red (for errors) circles next to the
line numbers, and a separate panel at the bottom provides
line numbers, error messages, and sometimes suggested values or other fixes.
... it is worth mentioning command
line uses — you can install these tools as command
line utilities (available via the cli — command
line interface) using npm (node package manager — you'll have to install nodejs first).
...And 12 more matches
nsIMsgHeaderParser
inherits from: nsisupports last changed in gecko 1.9 (firefox 3) to create an instance, use: var msgheaderparser = components.classes["@mozilla.org/messenger/headerparser;1"] .createinstance(components.interfaces.nsimsgheaderparser); method overview string extractheaderaddressmailboxes(in string
line); void extractheaderaddressname(in string
line, out string name); void extractheaderaddressnames(in string
line, out string usernames); astring makefulladdress(in astring aname, in astring aaddress); string makefulladdressstring(in string aname, in string aaddress); wstring makefulladdresswstring(in wstring name, in wstring addr); obsolete since gecko...
... 1.9 void parseheaderaddresses(in string
line, out string names, out string addresses, out pruint32 numaddresses); void parseheaderswitharray(in wstring a
line, [array, size_is(count)] out wstring aemailaddresses, [array, size_is(count)] out wstring anames, [array, size_is(count)] out wstring afullnames, [retval] out unsigned long count); void reformatheaderaddresses(in string
line, out string reformattedaddress); wstring reformatunquotedaddresses(in wstring
line); void removeduplicateaddresses(in string addrs, in string other_addrs, in prbool removealiasestome, out string newaddress); string unquotephraseoraddr(in string
line, in boolean preserveintegrity); wstring unquotephraseoraddrwstring(in wstring
line, in boolean preserveinte...
... autf8string extractheaderaddressmailboxes( in string
line ); parameters
line the header
line to parse.
...And 12 more matches
Color picker tool - CSS: Cascading Style Sheets
.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('https://mdn.mozillademos.org/files/5707/picker_mask_200.png') center center; background: -moz-
linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -moz-
linear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -webkit-
linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -webkit-
linear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -ms-
linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -ms-
linear-gradient(left, #fff 0%, rgba(255, 255...
..., 255, 0) 100%); background: -o-
linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -o-
linear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background-color: #f00; } /* hsl format - hue-saturation-lightness */ .ui-color-picker[data-mode='hsl'] .picking-area { background: -moz-
linear-gradient(top, hsl(0, 0%, 100%) 0%, hsla(0, 0%, 100%, 0) 50%, hsla(0, 0%, 0%, 0) 50%, hsl(0, 0%, 0%) 100%), -moz-
linear-gradient(left, hsl(0, 0%, 50%) 0%, hsla(0, 0%, 50%, 0) 100%); background: -webkit-
linear-gradient(top, hsl(0, 0%, 100%) 0%, hsla(0, 0%, 100%, 0) 50%, hsla(0, 0%, 0%, 0) 50%, hsl(0, 0%, 0%) 100%), -webkit-
linear-gradient(left, hsl(0, 0%, 50%) 0%, hsla(0, 0%, 50%, 0) 100%); background: -ms-
linear-gradient(top, hsl(0, 0%, 100%) 0%, hsla(0, 0%, 100%, 0)...
... 50%, hsla(0, 0%, 0%, 0) 50%, hsl(0, 0%, 0%) 100%), -ms-
linear-gradient(left, hsl(0, 0%, 50%) 0%, hsla(0, 0%, 50%, 0) 100%); background: -o-
linear-gradient(top, hsl(0, 0%, 100%) 0%, hsla(0, 0%, 100%, 0) 50%, hsla(0, 0%, 0%, 0) 50%, hsl(0, 0%, 0%) 100%), -o-
linear-gradient(left, hsl(0, 0%, 50%) 0%, hsla(0, 0%, 50%, 0) 100%); background-color: #f00; } .ui-color-picker .picker { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; position: absolute; top: 45%; left: 45%; } .ui-color-picker .picker:before { width: 8px; height: 8px; content: ""; position: absolute; border: 1px solid #999; border-radius: 50%; } .ui-color-picker .hue, .ui-color-picker .alpha { width: 198px; height: 28px; margin: 5px; border: 1px solid #fff; float: lef...
...And 12 more matches
Aligning Items in a Flex Container - CSS: Cascading Style Sheets
we use justify-content to align the item on the main axis, which in this case the in
line axis running horizontally.
... align-content — described in the spec as for “packing flex
lines”; controls space between flex
lines on the cross axis.
... we can use other values to control how the items align: align-items: flex-start align-items: flex-end align-items: center align-items: stretch align-items: base
line in the live example below, the value of align-items is stretch.
...And 12 more matches
CSS Box Alignment - CSS: Cascading Style Sheets
we were able to align text using text-align, center blocks using auto margins, and in table or in
line-block layouts using the vertical-align property.
... alignment of text is now covered by the in
line layout and css text modules, and for the first time in box alignment we have full horizontal and vertical alignment capabilities.
... css grid layout alignment example in this example using grid layout, there is extra space in the grid container after laying out the fixed width tracks on the in
line (main) axis.
...And 11 more matches
Basic concepts of flexbox - CSS: Cascading Style Sheets
this article gives an out
line of the main features of flexbox, which we will be exploring in more detail in the rest of these guides.
... the main axis the main axis is defined by flex-direction, which has four possible values: row row-reverse column column-reverse should you choose row or row-reverse, your main axis will run along the row in the in
line direction.
... start and end
lines another vital area of understanding is how flexbox makes no assumption about the writing mode of the document.
...And 11 more matches
font - CSS: Cascading Style Sheets
constituent properties this property is a shorthand for the following css properties: font-family font-size font-stretch font-style font-variant font-weight
line-height syntax the font property may be specified as either a single keyword, which will select a system font, or as a shorthand for various font-related properties.
... if font is specified as a shorthand for several font-related properties, then: it must include values for: <font-size> <font-family> it may optionally include values for: <font-style> <font-variant> <font-weight> <font-stretch> <
line-height> font-style, font-variant and font-weight must precede font-size font-variant may only specify the values defined in css 2.1, that is normal and small-caps font-stretch may only be a single keyword value.
...
line-height must immediately follow font-size, preceded by "/", like this: "16px/3" font-family must be the last value specified.
...And 11 more matches
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.
... syntax /* keyword value */ grid-template-columns: none; /* <track-list> values */ grid-template-columns: 100px 1fr; grid-template-columns: [
linename] 100px; grid-template-columns: [
linename1] 100px [
linename2
linename3]; grid-template-columns: minmax(100px, 1fr); grid-template-columns: fit-content(40%); grid-template-columns: repeat(3, 200px); grid-template-columns: subgrid; /* <auto-track-list> values */ grid-template-columns: 200px repeat(auto-fill, 100px) 300px; grid-template-columns: minmax(100px, max-content) repeat(auto-fill, 200px) 20%;...
... grid-template-columns: [
linename1] 100px [
linename2] repeat(auto-fit, [
linename3
linename4] 300px) 100px; grid-template-columns: [
linename1
linename2] 100px repeat(auto-fit, [
linename1] 300px) [
linename3]; /* global values */ grid-template-columns: inherit; grid-template-columns: initial; grid-template-columns: unset; values none indicates that there is no explicit grid.
...And 11 more matches
Gradients in SVG - SVG: Scalable Vector Graphics
there are two types of gradients:
linear and radial.
...
linear gradient
linear gradients change along a straight
line.
... to insert one, you create a <
lineargradient> node inside the definitions section of your svg file.
...And 11 more matches
Understanding WebAssembly text format - WebAssembly
the body is just a
linear list of low-level instructions.
...webassembly contains instructions like i32.load and i32.store for reading and writing from
linear memory.
... so a string is just a sequence of bytes somewhere inside this
linear memory.
...And 11 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
javascript also allows in
line conditional statements, which can help with code readability: var foo = (condition) ?
... internet explorer has a nonstandard quirk, where many of these apis will skip white space text nodes that are generated, for example, by new
line characters.
...therefore, you may execute the
line after the window.open
line before the new window has finished.
...And 10 more matches
Building up a basic demo with Babylon.js - Game development
let's create a scene by adding the following
lines just below our previous code: var scene = new babylon.scene(engine); scene.clearcolor = new babylon.color3(0.8, 0.8, 0.8); thus, the scene is created and the second
line sets the background color to light gray.
...add these
lines at the end of the <script> element, just before the closing </script>.
...let's start with the camera — add this
line to your code below the scene creation and the
line where we defined the clearcolor.
...And 10 more matches
nsIHTMLEditor
nsidomelement getelementorparentbytagname(in astring atagname, in nsidomnode anode); astring getfontcolorstate(out boolean amixed); astring getfontfacestate(out boolean amixed); astring getheadcontentsashtml(); astring gethighlightcolorstate(out boolean amixed); void getindentstate(out boolean acanindent, out boolean acanoutdent); void getin
lineproperty(in nsiatom aproperty, in astring aattribute, in astring avalue, out boolean afirst, out boolean aany, out boolean aall); astring getin
linepropertywithattrvalue(in nsiatom aproperty, in astring aattribute, in astring avalue, out boolean afirst, out boolean aany, out boolean aall); nsisupportsarray getlinkedobjects(); void getlistitemstate(out boolean amixed, out ...
... boolean isanonymouselement(in nsidomelement aelement); void makeorchangelist(in astring alisttype, in boolean entirelist, in astring abullettype); boolean nodeisblock(in nsidomnode node); void pastenoformatting(in long aselectiontype); void rebuilddocumentfromsource(in astring asourcestring); void removealldefaultproperties(); void removeallin
lineproperties(); void removedefaultproperty(in nsiatom aproperty, in astring aattribute, in astring avalue); void removein
lineproperty(in nsiatom aproperty, in astring aattribute); void removeinsertionlistener(in nsicontentfilter infilter); void removelist(in astring alisttype); void replaceheadcontentswithhtml(in astring asourcetoinsert); void se...
...lectelement(in nsidomelement aelement); void setbackgroundcolor(in astring acolor); void setbodyattribute(in astring aattr, in astring avalue); void setcaretafterelement(in nsidomelement aelement); void setcssin
lineproperty(in nsiatom aproperty, in astring aattribute, in astring avalue); void setdocumenttitle(in astring atitle); void setin
lineproperty(in nsiatom aproperty, in astring aattribute, in astring avalue); void setparagraphformat(in astring aparagraphformat); void updatebaseurl(); attributes attribute type description iscssenabled boolean a boolean which is true is the htmleditor has been instantiated with css knowledge and if the css pref is currently checked.
...And 10 more matches
Set a breakpoint - Firefox Developer Tools
the source pane context menu in the source pane, you can handle setting breakpoints by bringing up the context menu over a
line number.
... there are a few options available here: add breakpoint: add a standard unconditional breakpoint at this
line number (see below).
...you can set an unconditional breakpoint using the context menu (see above), or by: clicking on the
line number for the
line you want to break at in the source pane.
...And 10 more matches
Debugger.Script - Firefox Developer Tools
start
line if the instance refers to a jsscript, the number of the
line at which this script’s code starts, within the file or document named by url.
...
linecount if the instance refers to a jsscript, the number of
lines this script’s code occupies, within the file or document named by url.
... getalloffsets() if the instance refers to a jsscript, return an arrayl describing the relationship between bytecode instruction offsets and source code positions in this script.l is sparse, and indexed by source
line number.
...And 10 more matches
Using Service Workers - Web APIs
this article provides information on getting started with service workers, including basic architecture, registering a service worker, the install and activation process for a new service worker, updating your service worker, cache control and custom responses, all in the context of a simple app with off
line functionality.
... note: as of firefox 44, when appcache is used to provide off
line support for a page a warning message is now displayed in the console advising developers to use service workers instead (bug 1204581.) service workers should finally fix these issues.
...using a service worker you can easily set an app up to use cached assets first, thus providing a default experience even when off
line, before then getting more data from the network (commonly known as off
line first).
...And 10 more matches
User Timing API - Web APIs
the user timing interface allows the developer to create application specific timestamps that are part of the browser's performance time
line.
...the mark is a timestamp in the browser's performance time
line.
... retrieving performance marks the performance interface has three methods that can be used to retrieve a mark: performance.getentries() returns all performance entries in the performance time
line.
...And 10 more matches
Synchronous and asynchronous requests - Web APIs
var xhr = new xmlhttprequest(); xhr.open("get", "/bar/foo.txt", true); xhr.onload = function (e) { if (xhr.readystate === 4) { if (xhr.status === 200) { console.log(xhr.responsetext); } else { console.error(xhr.statustext); } } }; xhr.onerror = function (e) { console.error(xhr.statustext); }; xhr.send(null);
line 2 specifies true for its third parameter to indicate that the request should be handled asynchronously.
...
line 3 creates an event handler function object and assigns it to the request's onload attribute.
... this handler looks at the request's readystate to see if the transaction is complete in
line 4; if it is, and the http status is 200, the handler dumps the received content.
...And 10 more matches
Accessibility Information for Web Authors - Accessibility
guide
lines and regulations section 508 guide
lines for web authors these guide
lines must be followed by u.s.
...other organizations such as schools are starting to follow these guide
lines as well.
... web content accessibility guide
lines (wcag) 1.0 another important set of guide
lines from the w3c web accessibility initiative (wai).
...And 10 more matches
Perceivable - Accessibility
this article provides practical advice on how to write your web content so that it conforms to the success criteria out
lined in the perceivable principle of the web content accessibility guide
lines (wcag) 2.0 and 2.1.
... note: to read the w3c definitions for perceivable and its guide
lines and success criteria, see principle 1: perceivable - information and user interface components must be presentable to users in ways they can perceive.
... guide
line 1.1 — providing text alternatives for non-text content the key here is that text can be converted to other forms that people with disabilities can use.
...And 10 more matches
Box alignment in CSS Grid Layout - CSS: Cascading Style Sheets
the two axes of a grid layout when working with grid layout you have two axes available to align things against – the block axis and the in
line axis.
... the in
line axis runs across the block axis, it is the direction in which text in regular in
line flow runs.
...i can use the align-items property on the grid container, to align the items using one of the following values: auto normal start end center stretch base
line first base
line last base
line * {box-sizing: border-box;} .wrapper { border: 2px solid #f76707; border-radius: 5px; background-color: #fff4e6; } .wrapper > div { border: 2px solid #ffa94d; border-radius: 5px; background-color: #ffd8a8; padding: 1em; color: #d9480f; } .wrapper { display: grid; grid-template-columns: repeat(8, 1fr); grid-gap: 10px; ...
...And 10 more matches
Realizing common layouts using CSS Grid Layout - CSS: Cascading Style Sheets
as a simple example, i am creating a 12-column flexible grid that has 12 1fr-unit column tracks, they all have a start
line named col-start.
... this means that we will have twelve grid
lines named col-start.
... <div class="wrapper"> <div class="item1">start column
line 1, span 3 column tracks.</div> <div class="item2">start column
line 6, span 4 column tracks.
...And 10 more matches
<display-legacy> - CSS: Cascading Style Sheets
css 2 used a single-keyword syntax for the display property, requiring separate keywords for block-level and in
line-level variants of the same layout mode.
... syntax valid <display-legacy> values: in
line-block the element generates a block element box that will be flowed with surrounding content as if it were a single in
line box (behaving much like a replaced element would).
... it is equivalent to in
line flow-root.
...And 10 more matches
grid-column - CSS: Cascading Style Sheets
the grid-column css shorthand property specifies a grid item's size and location within a grid column by contributing a
line, a span, or nothing (automatic) to its grid placement, thereby specifying the in
line-start and in
line-end edge of its grid area.
... constituent properties this property is a shorthand for the following css properties: grid-column-end grid-column-start syntax this property is specified as one or two <grid-
line> values.
... if two <grid-
line> values are given they are separated by "/".
...And 10 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.
... syntax /* keyword value */ grid-template-rows: none; /* <track-list> values */ grid-template-rows: 100px 1fr; grid-template-rows: [
linename] 100px; grid-template-rows: [
linename1] 100px [
linename2
linename3]; grid-template-rows: minmax(100px, 1fr); grid-template-rows: fit-content(40%); grid-template-rows: repeat(3, 200px); grid-template-rows: subgrid; /* <auto-track-list> values */ grid-template-rows: 200px repeat(auto-fill, 100px) 300px; grid-template-rows: minmax(100px, max-content) repeat(auto-fill, 200px) 20%; grid-template-rows: [
linename...
...1] 100px [
linename2] repeat(auto-fit, [
linename3
linename4] 300px) 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.
...And 10 more matches
text-decoration - CSS: Cascading Style Sheets
the text-decoration shorthand css property sets the appearance of decorative
lines on text.
... it is a shorthand for text-decoration-
line, text-decoration-color, text-decoration-style, and the newer text-decoration-thickness property.
...for example, in the markup <p>this text has <em>some emphasized words</em> in it.</p>, the style rule p { text-decoration: under
line; } would cause the entire paragraph to be under
lined.
...And 10 more matches
CSP: style-src - HTTP
'unsafe-hashes' allows enabling specific in
line event handlers.
... if you only need to allow in
line event handlers and not in
line <script> elements or javascript: urls, this is a safer method than using the unsafe-in
line expression.
... 'unsafe-in
line' allows the use of in
line resources, such as in
line <script> elements, javascript: urls, in
line event handlers, and in
line <style> elements.
...And 10 more matches
HTTP Messages - HTTP
http messages are composed of textual information encoded in ascii, and span over multiple
lines.
... http requests, and responses, share similar structure and are composed of: a start-
line describing the requests to be implemented, or its status of whether successful or a failure.
... this start-
line is always a single
line.
...And 10 more matches
Grammar and types - JavaScript
a semicolon is not necessary after a statement if it is written on its own
line.
... but if more than one statement on a
line is desired, then they must be separated by semicolons.
... the source text of javascript script gets scanned from left to right, and is converted into a sequence of input elements which are tokens, control characters,
line terminators, comments, or whitespace.
...And 10 more matches
The Essentials of an Extension - Archive of obsolete content
unix-based systems have a command
line tool called uuidgen that generates uuids.
... the first word in a
line tells firefox what it is that is being declared (content, skin, locale, or others mentioned later on).
...the
line that we skipped in the chrome.manifest file states that this xul file is an overlay for the main browser window: overlay chrome://browser/content/browser.xul chrome://xulschoolhello/content/browseroverlay.xul with this
line, firefox knows that it needs to take the contents of browseroverlay.xul and overlay it on the main browser window, browser.xul.
...And 9 more matches
CSS3 - Archive of obsolete content
pseudo-elements are now characterized by two colons rather than one: :after becomes ::after, :before becomes ::before, :first-letter becomes ::first-letter, and :first-
line becomes ::first-
line.
... support for the css out
line-offset property giving more control on the position of the out
line.
... css flexible box layout module candidate recommendation add a flexbox layout to the css display property and several new css properties to control it: flex, flex-align, flex-direction, flex-flow, flex-item-align, flex-
line-pack, flex-order, flex-pack, and flex-wrap.
...And 9 more matches
Introduction to CSS layout - Learn web development
the elements that appear one below the other are described as block elements, in contrast to in
line elements, which appear one beside the other, like the individual words in a paragraph.
...the corresponding in
line direction is the direction in which in
line contents (such as a sentence) would run.
... the methods that can change how elements are laid out in css are as follows: the display property — standard values such as block, in
line or in
line-block can change how elements behave in normal flow, for example making a block-level element behave like an in
line element (see types of css boxes for more information).
...And 9 more matches
Build your own function - Learn web development
the first
line uses a dom api function called document.queryselector() to select the <html> element and store a reference to it in a constant called html, so we can do things to it later on: const html = document.queryselector('html'); the next section uses another dom api function called document.createelement() to create a <div> element and store a reference to it in a constant called panel.
...the
line inside the function uses the node.removechild() dom api function to specify that we want to remove a specific child element of the html element — in this case the panel <div>.
... try including the following
line below your function to call it: displaymessage(); this
line invokes the function, making it run immediately.
...And 9 more matches
TypeScript support in Svelte - Learn web development
prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
...this package allows you to detect errors and warnings normally displayed by a code editor from the command
line, which makes it pretty useful for running it in a continuous integration (ci) pipe
line.
... in this case, if you run npm run validate (either in the vs code console or terminal) you will get the following error: even better, if you run it from the vs code integrated terminal (you can open it with the ctrl + ` keyboard shortcut), cmd/ctrl + clicking on the file name will take you to the
line containing the error.
...And 9 more matches
MathML Demo: <mtable> - tables and matrices
as a visual aid, the examples deliberately draw attention to the math axis and the base
line: ----------------------- this is the math axis .....................
... this is the base
line external vertical align is center ---...
... 1 22 333 4444 x 55555 666666 a b c 7777777 11 ...--- , cols arg is "|r|c|l|", \h
line's above and below.
...And 9 more matches
Shell global objects
these are the global objects that are set up automatically by the spidermonkey js command-
line interpreter when you start the program.
...options is an optional object that may have these properties: isrunonce use the isrunonce compiler option (default: false) noscriptrval use the no-script-rval compiler option (default: false) filename filename for error messages and debug info
linenumber starting
line number for error messages and debug info columnnumber starting column number for error messages and debug info global global in which to execute the code newcontext if true, create and use a new cx (default: false) catchtermination if true, catch termination (failure without an exception value, as for slow scripts or out-of-memory) and return 'terminated' e...
... read
line() read a single
line from stdin.
...And 9 more matches
UI Tour - Firefox Developer Tools
out
line view the out
line view shows a tree for navigating the currently open file.
... breakpoints have a blue arrow overlaid on the
line number.
...if you're stopped at a breakpoint, the entire
line gets a green overlay.
...And 9 more matches
Using server-sent events - Web APIs
each notification is sent as a block of text terminated by a pair of new
lines.
...messages in the event stream are separated by a pair of new
line characters.
... a colon as the first character of a
line is in essence a comment, and is ignored.
...And 9 more matches
Window - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/window" target="_top"><rect x="1" y="1" width="75" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><t...
...ext x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">window</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructors see also the dom interfaces.
...this object enables functionality such as storing assets for off
line use, and generating custom responses to requests.
...And 9 more matches
Cross-browser Flexbox mixins - CSS: Cascading Style Sheets
the in
line-flex value causes an element to generate an in
line-level flex container box.
... values: flex | in
line-flex spec: https://drafts.csswg.org/css-flexbox/#flex-containers @mixin flexbox { display: -webkit-box; display: -moz-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } //using this mixin %flexbox { @include flexbox; } @mixin in
line-flex { display: -webkit-in
line-box; display: -moz-in
line-box; display: -webkit-in
line-flex; display: -ms-in
line-flexbox; display: in
line-flex; } %in
line-flex { @include in
line-flex; } flexbox direction the flex-direction property specifies how flex items are placed in the flex container, by setting the direction of the flex container's main axis.
... -webkit-box-direction: normal; -webkit-box-orient: horizontal; -moz-box-direction: normal; -moz-box-orient: horizontal; } -webkit-flex-direction: $value; -ms-flex-direction: $value; flex-direction: $value; } // shorter version: @mixin flex-dir($args...) { @include flex-direction($args...); } flexbox wrap the flex-wrap property controls whether the flex container 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.
...And 9 more matches
Flow Layout and Writing Modes - CSS: Cascading Style Sheets
it is defined primarily in terms of its in
line base direction and block flow direction.” the specification defines the in
line base direction as the direction in which content is ordered on a
line.
... this defines the start and end of the in
line direction.
... the start is where sentences start and the end is where a
line of text ends before it would begin to wrap onto a new
line.
...And 9 more matches
Basic concepts of Logical Properties and Values - CSS: Cascading Style Sheets
these properties are flow relative — justify-self: start aligns the item to the start on the in
line dimension, align-self: start does the same on the block dimension.
...the in
line dimension is now running vertically and the block dimension horizontally.
... if instead of the width property we use the logical property in
line-size, the component now works the same way no matter which writing mode it is displayed using.
...And 9 more matches
align-items - CSS: Cascading Style Sheets
ms: normal; align-items: stretch; /* positional alignment */ /* align-items does not take left and right values */ align-items: center; /* pack items around the center */ align-items: start; /* pack items from the start */ align-items: end; /* pack items from the end */ align-items: flex-start; /* pack flex items from the start */ align-items: flex-end; /* pack flex items from the end */ /* base
line alignment */ align-items: base
line; align-items: first base
line; align-items: last base
line; /* overflow alignment (for positional alignment only) */ align-items: safe center; align-items: unsafe center; /* global values */ align-items: inherit; align-items: initial; align-items: unset; values normal the effect of this keyword is dependent of the layout mode we are in: in absolutely-po...
... flex-start the cross-start margin edges of the flex items are flushed with the cross-start edge of the
line.
... flex-end the cross-end margin edges of the flex items are flushed with the cross-end edge of the
line.
...And 9 more matches
grid-column-start - CSS: Cascading Style Sheets
the grid-column-start css property specifies a grid item’s start position within the grid column by contributing a
line, a span, or nothing (automatic) to its grid placement.
.../* <integer> + <custom-ident> values */ grid-column-start: 2; grid-column-start: somegridarea 4; /* span + <integer> + <custom-ident> values */ grid-column-start: span 3; grid-column-start: span somegridarea; grid-column-start: span somegridarea 5; /* global values */ grid-column-start: inherit; grid-column-start: initial; grid-column-start: unset; this property is specified as a single <grid-
line> value.
... a <grid-
line> value can be specified as: either the auto keyword or a <custom-ident> value or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
...And 9 more matches
grid-row-start - CSS: Cascading Style Sheets
the grid-row-start css property specifies a grid item’s start position within the grid row by contributing a
line, a span, or nothing (automatic) to its grid placement, thereby specifying the in
line-start edge of its grid area.
...w-start: somegridarea; /* <integer> + <custom-ident> values */ grid-row-start: 2; grid-row-start: somegridarea 4; /* span + <integer> + <custom-ident> values */ grid-row-start: span 3; grid-row-start: span somegridarea; grid-row-start: 5 somegridarea span; /* global values */ grid-row-start: inherit; grid-row-start: initial; grid-row-start: unset; this property is specified as a single <grid-
line> value.
... a <grid-
line> value can be specified as: either the auto keyword or a <custom-ident> value or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
...And 9 more matches
justify-items - CSS: Cascading Style Sheets
the effect of this property is dependent of the layout mode we are in: in block-level layouts, it aligns the items inside their containing block on the in
line axis.
... for absolutely-positioned elements, it aligns the items inside their containing block on the in
line axis, accounting for the offset values of top, left, bottom, and right.
... in table cell layouts, this property is ignored (more about alignment in block, absolute positioned and table layout) in flexbox layouts, this property is ignored (more about alignment in flexbox) in grid layouts, it aligns the items inside their grid areas on the in
line axis (more about alignment in grid layouts) syntax /* basic keywords */ justify-items: auto; justify-items: normal; justify-items: stretch; /* positional alignment */ justify-items: center; /* pack items around the center */ justify-items: start; /* pack items from the start */ justify-items: end; /* pack items from the end */ justify-items: flex-start; /* equivalent to 'start'.
...And 9 more matches
justify-self - CSS: Cascading Style Sheets
the effect of this property is dependent of the layout mode we are in: in block-level layouts, it aligns an item inside its containing block on the in
line axis.
... for absolutely-positioned elements, it aligns an item inside its containing block on the in
line axis, accounting for the offset values of top, left, bottom, and right.
... in table cell layouts, this property is ignored (more about alignment in block, absolute positioned and table layout) in flexbox layouts, this property is ignored (more about alignment in flexbox) in grid layouts, it aligns an item inside its grid area on the in
line axis (more about alignment in grid layouts) syntax /* basic keywords */ justify-self: auto; justify-self: normal; justify-self: stretch; /* positional alignment */ justify-self: center; /* pack item around the center */ justify-self: start; /* pack item from the start */ justify-self: end; /* pack item from the end */ justify-self: flex-start; /* equivalent to 'start'.
...And 9 more matches
text-decoration-style - CSS: Cascading Style Sheets
the text-decoration-style css property sets the style of the
lines specified by text-decoration-
line.
... the style applies to all
lines that are set with text-decoration-
line.
... if the specified decoration has a specific semantic meaning, like a
line-through
line meaning that some text has been deleted, authors are encouraged to denote this meaning using an html tag, like <del> or <s>.
...And 9 more matches
white-space - CSS: Cascading Style Sheets
syntax /* keyword values */ white-space: normal; white-space: nowrap; white-space: pre; white-space: pre-wrap; white-space: pre-
line; white-space: break-spaces; /* global values */ white-space: inherit; white-space: initial; white-space: unset; the white-space property is specified as a single keyword chosen from the list of values below.
...new
line characters in the source are handled the same as other white space.
...
lines are broken as necessary to fill
line boxes.
...And 9 more matches
Reading from Files - Archive of obsolete content
in addition,
lines may be read by reading the file up until a
linefeed character is detected.
...the two most common for text files are the readstring and read
line methods for reading a string and a
line from the file respectively.
...reading
lines the read
line method may be used to read a
line from the file.
...And 8 more matches
SeaMonkey - making custom toolbar (SM ver. 1.x) - Archive of obsolete content
it is one very long
line ending in path—make sure that you get all of it: components.classes["@mozilla.org/file/directory_service;1"].getservice( components.interfaces.nsiproperties).get("achrom", components.interfaces.nsifile).path in the javascript console window, paste the code in the field near the top.
... edit the file: installed-chrome.txt at the end of the file, add the following
line.
... copy and paste the
line from here, to avoid typing errors: content,install,url,resource:/chrome/custombutton/ explanation: this
line registers your custom toolbar button extension, linking it into seamonkey.
...And 8 more matches
Creating a Window - Archive of obsolete content
here is a
line by
line breakdown of the code above: <?xml version="1.0"?> this
line simply declares that this is an xml file.
... you would normally add this
line as is at the top of each xul file.
... <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> this
line is used to specify the style sheets to use for the file.
...And 8 more matches
Manifest Files - Archive of obsolete content
if you just want to try testing privileged xul code in the firefox browser, you can do this easily by just using a manifest with only one
line in it: create a new directory somewhere.
...doesn't work with utf-8 with bom.) add the following
line to it: content tests file:///c:/testfiles/ the file path in that
line should point to the directory created above.
...the basic syntax of the
lines in the manifest file for content packages is: 'content <packagename> <filepath>' the first field 'content' indicates a content package.
...And 8 more matches
textbox - Archive of obsolete content
only one
line of text is displayed by default.
... the multi
line attribute can be specified to display a field with multiple rows.
... attributes cols, decimalplaces, disabled, emptytext, hidespinbuttons, increment, label, max, maxlength, min, multi
line, new
lines, onblur, onchange, onfocus, oninput, placeholder, preference, readonly, rows, searchbutton, size, spellcheck, tabindex, timeout, type, value, wrap, wraparound properties accessibletype, clickselectsall, decimalplaces, decimalsymbol, defaultvalue, disabled, editor, emptytext, increment, inputfield, label, max, maxlength, min, placeholder, readonly, searchbutton, selectionend, selectionstart, size, spinbuttons, tabindex, textlength, timeout, type, value, valuenumber, wraparound methods decrease, increase, reset, select, setselectionrange style classes plain examples <vbox> <label control="your...
...And 8 more matches
Properly Using CSS and JavaScript in XHTML Documents - Archive of obsolete content
problems with in
line style and script in
line style and script tags can cause several different problems in xhtml when it is treated as xml rather than html.
... use of comments inside in
line style and script authors who are familiar with html commonly enclose the contents of in
line style and script tags in comments in order to hide the contents of the tags from browsers which do not understand them.
...in addition, this example shows how the differences between browsers in handling in
line content in text/xml or application/xhtml+xml can be problematic.
...And 8 more matches
Fundamental CSS comprehension - Learn web development
you could paste the html and fill in the css into one of these on
line editors, and use this url to point the <img> element to the image file.
... if the on
line editor you are using doesn't have a separate css panel, feel free to put it in a <style> element in the head of the document.
... project brief you have been provided with some raw html and an image, and need to write the necessary css to style this into a nifty little on
line business card, which can perhaps double as a gamer card or social media profile.
...And 8 more matches
Basic math in JavaScript — numbers and operators - Learn web development
enter the below two
lines as shown: typeof myint; typeof myfloat; you should get "number" returned in both cases — this makes things a lot easier for us than if different numbers had different data types, and we had to deal with them in different ways.
...type the following
lines into your browser's console: let lotsofdecimal = 1.766584958675746364; lotsofdecimal; let twodecimalplaces = lotsofdecimal.tofixed(2); twodecimalplaces; converting to number data types sometimes you might end up with a number that is stored as a string type, which makes it difficult to perform calculations with it.
... for example, try typing these
lines into your console: let mynumber = '74'; mynumber + 3; you end up with the result 743, not 77, because mynumber is actually defined as a string.
...And 8 more matches
Framework main features - Learn web development
unlike html, these languages know how to read data variables, and this data can be used to stream
line the process of writing your ui.
...while it is possible to build framework apps without using these domain-specific languages, embracing them will stream
line your development process and make it easier to find help from the communities around those frameworks.
...the curly braces around subject on
line 4 tell the application to read the value of the subject constant and insert it into our <h1>.
...And 8 more matches
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
... if you click on the input at the top of our app, you'll see a thick, dashed out
line around that input.
... this out
line is your visual indicator that the browser is currently focused on this element.
...And 8 more matches
Handling common HTML and CSS problems - Learn web development
there are many on
line linter applications, the best of which are probably dirty markup (html, css, javascript), and css lint (css only).
... after the packages have finished installing, try loading up an html file and a css file: you'll see any issues highlighted with green (for warnings) and red (for errors) circles next to the
line numbers, and a separate panel at the bottom provides
line numbers, error messages, and sometimes suggested values or other fixes.
... unrecognised html elements are treated by the browser as anonymous in
line elements (effectively in
line elements with no semantic value, similar to <span> elements).
...And 8 more matches
Introducing a complete toolchain - Learn web development
note: it's also worth repeating that not all of these tools need to be run on the command
line.
...git is the revision control tool, whereas github is an on
line store for git repositories (plus a number of useful tools for working with them).
... you can interact with git in a number of different ways, from using the command
line to issue commands, to using a git gui app to issue the same commands by pushing buttons, or even from directly inside your code editor, as seen in the visual studio code example below: anyway, installing git is all we need to do for now.
...And 8 more matches
Links and Resources
guide
lines & standards information and resources on section 508 - legal policy for us government purchases requiring software accessibility.
... wai - web accessibility initiative web content accessibility guide
lines (wcag) 1.0 the first set of official guide
lines from the w3c web accessibility initiative (wai).
... the european union is looking to base their upcoming accessibility regulations on these guide
lines.
...And 8 more matches
Eclipse CDT Manual Setup
the way that eclipse cdt does build option discovery is to scan the console output from a real build looking for
lines where a compiler was invoked.
... for each
line that invoked a compiler, it tries to figure out which source file was being built and what its include paths were.
...the build must be explicitly instructed to output information that allows the directory, where the compiler is being invoked from to be identified (i.e., 'make' must be instructed to output "entering directory..."/"leaving directory..."
lines).
...And 8 more matches
Mozilla DOM Hacking Guide
in this document i will try to out
line the main aspects of the implementation, beginning with the class info mechanism, which lies at the heart of the dom, then with the description of various interfaces and classes.
...the relevant code is at nsdomclassinfo.cpp, around
line 4520.
... static nsiclassinfo* docreate(nsdomclassinfodata* adata): in
line function that returns a nsiclassinfo pointer to a new instance of the nsdomclassinfo class.
...And 8 more matches
Gecko object attributes
for out
line items, the indentation level.
... applied to role_cell hypertext attributes formatting "block" if the object uses block formatting, and thus starts on a new
line and ends with a hard
line break that is not visible in the actual text.
...an example of this is often horizontal navigation bars with list items that are formatted with css display: in
line.
...And 8 more matches
SVGPathElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><...
...poly
line 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-base
line="middle">svgelement</text></a><poly
line 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" widt...
...And 8 more matches
WebGL best practices - Web APIs
(the interpolation of varyings is very cheap, and is done automatically for you through the fixed functionality rasterization phase of the graphics pipe
line) for example, a simple animation of a textured surface can be achieved through a time-dependent transformation of texture coordinates.
... however, for 2d resources that are never "zoomed out", don't pay the 30% memory surcharge for mipmaps: const tex = gl.createtexture(); gl.bindtexture(gl.texture_2d, tex); gl.texparameterf(gl.texture_2d, gl.texture_min_filter, gl.
linear); // defaults to nearest_mipmap_
linear, for mipmapping!
... teximage/texsubimage uploads (particularly with videos) can cause pipe
line flushes most texture uploads from dom elements will incur a processing pass that will temporarily switch gl progams internally, causing a pipe
line flush.
...And 8 more matches
Grid template areas - CSS: Cascading Style Sheets
in the previous guide we looked at grid
lines, and how to position items against those
lines.
... when you use css grid layout you always have
lines, and this can be a straightforward way to place items on your grid.
... however, there is an alternate method to use for positioning items on the grid which you can use alone or in combination with
line-based placement.
...And 8 more matches
filter - CSS: Cascading Style Sheets
gb(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%" height="110%"> <fegaussianblur in="sourcegraphic" stddeviation="5"/> </filter> </svg> brightness() the brightness() function applies a
linear multiplier to the input image, making it appear more or less bright.
...other values are
linear multipliers on the effect.
... filter: brightness(2) <svg style="position: absolute; top: -99999px" xmlns="http://www.w3.org/2000/svg"> <filter id="brightness"> <fecomponenttransfer> <fefuncr type="
linear" slope="[amount]"/> <fefuncg type="
linear" slope="[amount]"/> <fefuncb type="
linear" slope="[amount]"/> </fecomponenttransfer> </filter> </svg> <table class="standard-table"> <thead> <tr> <th style="text-align: left;" scope="col">original image</th> <th style="text-align: left;" scope="col">live example</th> <th style="text-align: left;" scope="col">svg equivalent</th> <th style="text-align: left;" scope="col">static example</th> </tr> </thead...
...And 8 more matches
grid-area - CSS: Cascading Style Sheets
the grid-area css shorthand property specifies a grid item’s size and location within a grid by contributing a
line, a span, or nothing (automatic) to its grid placement, thereby specifying the edges of its grid area.
... if four <grid-
line> values are specified, grid-row-start is set to the first value, grid-column-start is set to the second value, grid-row-end is set to the third value, and grid-column-end is set to the fourth value.
... <custom-ident> if there is a named
line with the name '<custom-ident>-start'/'<custom-ident>-end', it contributes the first such
line to the grid item’s placement.
...And 8 more matches
grid-row - CSS: Cascading Style Sheets
the grid-row css shorthand property specifies a grid item’s size and location within the grid row by contributing a
line, a span, or nothing (automatic) to its grid placement, thereby specifying the in
line-start and in
line-end edge of its grid area.
... if two <grid-
line> values are specified, the grid-row-start longhand is set to the value before the slash, and the grid-row-end longhand is set to the value after the slash.
... <custom-ident> if there is a named
line with the name '<custom-ident>-start'/'<custom-ident>-end', it contributes the first such
line to the grid item’s placement.
...And 8 more matches
shape-outside - CSS: Cascading Style Sheets
the shape-outside css property defines a shape—which may be non-rectangular—around which adjacent in
line content should wrap.
... by default, in
line content wraps around its margin box; shape-outside provides a way to customize this wrapping, making it possible to wrap text around complex objects rather than simple boxes.
...ide: padding-box; /* function values */ shape-outside: circle(); shape-outside: ellipse(); shape-outside: inset(10px 10px 10px 10px); shape-outside: polygon(10px 10px, 20px 20px, 30px 30px); shape-outside: path('m0.5,1 c0.5,1,0,0.7,0,0.3 a0.25,0.25,1,1,1,0.5,0.3 a0.25,0.25,1,1,1,1,0.3 c1,0.7,0.5,1,0.5,1 z'); /* <url> value */ shape-outside: url(image.png); /* <gradient> value */ 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.
...And 8 more matches
CSP: script-src-attr - HTTP
the http content-security-policy (csp) script-src-attr directive specifies valid sources for javascript in
line event handlers.
... this includes only in
line script event handlers like onclick, but not urls loaded directly into <script> elements.
... 'unsafe-hashes' allows enabling specific in
line event handlers.
...And 8 more matches
<mtable> - MathML
if you want to use this element as an in
line-block, you might want to set <mtable displaystyle="true">...</mtable>.
... base
line: the vertical center of the table aligns on the environment's base
line.
... bottom: the bottom of the table aligns on the environments base
line.
...And 8 more matches
begin - SVG: Scalable Vector Graphics
seeking backwards in the time
line doesn't re-insert the discarded elements.
...ype="xml" attributename="width" to="75" begin="2s" dur="6s" fill="freeze" /> </rect> <rect x="60" y="85" height="15" width="0"> <animate attributetype="xml" attributename="width" to="50" begin="4s" dur="4s" fill="freeze" /> </rect> <!-- grid --> <text x="10" y="20" text-anchor="middle">0s</text> <
line x1="10" y1="25" x2="10" y2="105" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <
line x1="35" y1="25" x2="35" y2="105" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <
line x1="60" y1="25" x2="60" y2="105" stroke="grey" stroke-width=".5" /> <text x="85" y="20" text-anchor="middle">6s</text> <
line ...
...x1="85" y1="25" x2="85" y2="105" stroke="grey" stroke-width=".5" /> <text x="110" y="20" text-anchor="middle">8s</text> <
line x1="110" y1="25" x2="110" y2="105" stroke="grey" stroke-width=".5" /> <
line x1="10" y1="30" x2="110" y2="30" stroke="grey" stroke-width=".5" /> <
line x1="10" y1="105" x2="110" y2="105" stroke="grey" stroke-width=".5" /> </svg> begin-1-offset.svg syncbase example <svg width="120" height="120" viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- animated rectangles --> <rect x="10" y="35" height="15" width="0"> <animate attributetype="xml" attributename="width" to="50" id="first" begin="0s;third.end" dur="4s" /> </rect> <rect x="6...
...And 8 more matches
Setting Up a Development Environment - Archive of obsolete content
most xul tools and plugins you'll find on
line are merely templates that generate the folder structure for the project, and that's not much help.
...after setting up make, you should be able to open a command
line window, run "make -ver", and get the installed version of make as output.
... in most cases you'll only need to change the first
lines in makefile.
...And 7 more matches
Space Manager High Level Design - Archive of obsolete content
overview the space manager and associated classes and structures are used by block and
line layout to manage rectangular regions that are occupied and available, for correct handling of floated elements and the elements that flow around them.
...additionally, there is a need to manage impacts to
lines caused by changes to floated elements.
...during the incremental reflow of dirty
lines the block frame may encounter
lines that are not dirty.
...And 7 more matches
Venkman Internals - Archive of obsolete content
questions why can't breakpoints be set on some source
lines some of the time?
... sometimes the source has small ticks in the margin for every executable
line in my javascript.
... sometimes these ticks are missing on some or all
lines of a file.
...And 7 more matches
XULRunner tips - Archive of obsolete content
gister a component through the new component registration because the extension manager uses fuel, namely application.restart(), to restart your xulrunner-based application after any change (installation, removal, enabling, disabling) in the extensions' list: copy files fuelapplication.js and fuelapplication.manifest from browser/fuel/src for instance into your components/ directory tweak the
line #include ../../../toolkit/components/exthelper/extapplication.js in your copy of fuelapplication.js as needed make sure to declare the fuel module and the two files in your components/makefile.in as in browser/fuel/src/makefile.in rebuild...
...when using xulrunner 1.9 or greater, you can create your own alias in your chrome manifest add a "skin"
line: skin communicator classic/1.0 skin/communicator/ add a skin folder named "communicator" and add a single css file named "communicator.css" with this content: @import url("chrome://global/skin"); dom inspector to add dom inspector 2.0.* to your xulrunner 1.9.0.* application follow these steps: download the dom inspector (instead of clicking the "add to..." button, ri...
... save the dom_inspector-*.xpi package to a temporary directory unzip the package copy the following files: chrome/inspector.jar to the chrome directory of your xulrunner application components/inspector-cmd
line.js to your components directory defaults/preferences/inspector.js to your preferences directory open your chrome.manifest file and add these
lines: content inspector jar:inspector.jar!/content/inspector/ xpcnativewrappers=no locale inspector en-us jar:inspector.jar!/locale/inspector/ skin inspector modern/1.0 jar:inspector.jar!/skin/modern/inspector/ skin inspector classic/1.0 jar:inspector.jar!/skin/classic/inspector/ overlay chrome://inspector/content/popupoverla...
...And 7 more matches
CSS and JavaScript accessibility best practices - Learn web development
this article out
lines some css and javascript best practices that should be considered to ensure even complex content is as accessible as possible.
... "standard" text content structure headings, paragraphs, lists — the core text content of your page: <h1>heading</h1> <p>paragraph</p> <ul> <li>my list</li> <li>has two items.</li> </ul> some typical css might look like this: h1 { font-size: 5rem; } p, li {
line-height: 1.5; font-size: 1.6rem; } you should: select sensible font sizes,
line heights, letter spacing, etc.
... emphasised text in
line markup that confers specific emphasis to the text that it wraps: <p>the water is <em>very hot</em>.</p> <p>water droplets collecting on surfaces is called <strong>condensation</strong>.</p> you might want to add some simple coloring to your emphasised text: strong, em { color: #a60000; } you will however rarely need to style emphasis elements in any significant way.
...And 7 more matches
Test your skills: Selectors - Learn web development
note: you can try out solutions in the interactive editors below, however, it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the finished example: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
...And 7 more matches
How can we design for all types of users? - Learn web development
note: alternatively you can find a number of contrast checkers on
line, such as webaim's color contrast checker.
...
line width there is a longstanding debate about
line length on the web, but here's the story.
... back when we had newspapers, printers realized that the reader's eyes would have trouble going from one
line to the next if the
lines were too long.
...And 7 more matches
CSS basics - Learn web development
using a text editor, paste the three
lines of css (above) into a new file.
...paste the following
line in the head (between the <head> and </head> tags): <link href="styles/style.css" rel="stylesheet"> save index.html and load it in your browser.
... add the following
lines (shown below), replacing the font-family assignment with your font-family selection from what will your website look like?.
...And 7 more matches
Document and website structure - Learn web development
basic sections of a document webpages can and will look pretty different from one another, but they all tend to share similar standard components, unless the page is displaying a fullscreen video or game, is part of some kind of art project, or is just badly structured: header: usually a big strip across the top with a big heading, logo, and perhaps a tag
line.
... main content: a big area in the center that contains most of the unique content of a given webpage, for example, the video you want to watch, or the main story you're reading, or the map you want to view, or the news head
lines, etc.
... <!doctype html> <html> <head> <meta charset="utf-8"> <title>my page title</title> <link href="https://fonts.googleapis.com/css?family=open+sans+condensed:300|sonsie+one" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="style.css"> <!-- the below three
lines are a fix to get html5 semantic elements working in old versions of internet explorer--> <!--[if lt ie 9]> <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script> <![endif]--> </head> <body> <!-- here is our main header that is used across all the pages of our website --> <header> <h1>header</h1> </header> <nav> ...
...And 7 more matches
HTML text fundamentals - Learn web development
this document's body currently contains multiple pieces of content—they aren't marked up in any way, but they are separated with
linebreaks (enter/return pressed to go onto the next
line).
...among the various techniques used, they provide an out
line of the document by reading out the headings, allowing their users to find the information they need quickly.
...usercode every time the user updates the text area code textarea.onkeyup = function(){ // we only want to save the state when the user code is being shown, // not the solution, so that solution is not saved over the user code if(solution.value === 'show solution') { userentry = textarea.value; } else { solutionentry = textarea.value; } updatecode(); }; italic, bold, under
line...
...And 7 more matches
Client-Server Overview - Learn web development
the request each
line of the request contains information about it.
...*;q=0.8 referer: https://developer.mozilla.org/ accept-encoding: gzip, deflate, sdch, br accept-charset: iso-8859-1,utf-8;q=0.7,*;q=0.7 accept-language: en-us,en;q=0.8,es;q=0.6 cookie: sessionid=6ynxs23n521lu21b1t136rhbv7ezngie; csrftoken=zipujsazv6pcgcbjscj1zu6pqzbfmuat; dwf_section_edit=false; dwf_sg_task_completion=false; _gat=1; _ga=ga1.2.1688886003.1471911953; ffo=true the first and second
lines contain most of the information we talked about above: the type of request (get).
... the end of the first
line also includes a short string identifying the specific protocol version (http/1.1).
...And 7 more matches
Application Translation with Mercurial
bookmarking untranslated
lines).
...for this reason, updating patches kann be necessary so mercurial is still able to find the
lines in the files which it has to replace or where it has to add them.
...use the same order of subject, verb and objects; dec
line verbs or not like the operating system does.
...And 7 more matches
powermetrics
powermetrics is a mac-only command-
line utility that provides many high-quality power-related measurements.
... the following is example output from such an invocation: *** sampled system activity (fri sep 4 17:15:14 2015 +1000) (5009.63ms elapsed) *** *** running tasks *** name id cpu ms/s user% dead
lines (<2 ms, 2-5 ms) wakeups (intr, pkg idle) gpu ms/s com.apple.terminal 293 447.66 274.83 120.35 221.74 firefox 84627 77.59 55.55 15.37 2.59 91.42 42.12 204.47 plugin-container 84628 377.22 37.18 43.91 18.56 178.65 75.85 ...
... 124.34 63.47 0.00 firefox 84496 76.70 89.18 10.58 5.59 124.55 63.48 0.00 this sample was taken while the following programs were running: firefox beta (single process, invoked from the mac os dock, shown in the org.mozilla.firefox coalition.) firefox nightly (multi-process, invoked from the command
line, shown in the com.apple.terminal coalition.) google chrome.
...And 7 more matches
Rhino Debugger
console window the debugger redirects the system.out, system.in, and system.err streams to an internal javascript console window which provides an editable command
line for you to enter javascript code and view system output.
...if the current
line in the script contains a function call control will return to the debugger upon entry into the function.
... otherwise control will return to the debugger at the next
line in the current function.
...And 7 more matches
SpiderMonkey Internals
common cases are in
lined in the interpreter loop, breaking any abstractions that stand in the way.
...(xul fastload uses this.) just-in-time compiler spidermonkey contains a base
line compiler as first tier.
...
line number to pc and back mapping functions.
...And 7 more matches
Examine and edit CSS - Firefox Developer Tools
filename and
line number: on the right-hand side is a link to the rule.
...click that icon to display the grid overlaid on the page, including grid
lines and tracks.
...(note that this setting is independent of the "browser styles" checkbox in the computed view.) user-agent styles are displayed against a different background, and the link to the filename and
line number contains the prefix (user agent): element {} rule the element {} rule at the top of the rules list isn't actually a css rule.
...And 7 more matches
CanvasRenderingContext2D.arcTo() - Web APIs
the arc is automatically connected to the path's latest point with a straight
line, if necessary for the specified parameters.
... note: be aware that you may get unexpected results when using a relatively large radius: the arc's connecting
line will go in whatever direction it must to meet the specified radius.
... html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); // tangential
lines ctx.beginpath(); ctx.strokestyle = 'gray'; ctx.moveto(200, 20); ctx.
lineto(200, 130); ctx.
lineto(50, 20); ctx.stroke(); // arc ctx.beginpath(); ctx.strokestyle = 'black'; ctx.
linewidth = 5; ctx.moveto(200, 20); ctx.arcto(200,130, 50,20, 40); ctx.stroke(); // start point ctx.beginpath(); ctx.fillstyle = 'blue'; ctx.arc(200, 20, 5, 0, 2 * math.pi); ctx.fill(); // control points ctx.beginpath();...
...And 7 more matches
Using the User Timing API - Web APIs
the user timing interface allows the developer to create application specific timestamps that are part of the browser's performance time
line.
... this document shows how to create mark and measure performance entry types and how to use user timing methods (which are extensions of the performance interface) to retrieve and remove entries from the browser's performance time
line.
...the mark is a timestamp in the browser's performance time
line.
...And 7 more matches
Web Audio API - Web APIs
baseaudiocontext the baseaudiocontext interface acts as a base definition for on
line and off
line audio-processing graphs, as represented by audiocontext and off
lineaudiocontext respectively.
... convolvernode the convolvernode interface is an audionode that performs a
linear convolution on a given audiobuffer, and is often used to achieve a reverb effect.
... delaynode the delaynode interface represents a delay-
line; an audionode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output.
...And 7 more matches
Introduction to formatting contexts - CSS: Cascading Style Sheets
this article introduces the concept of formatting contexts, of which there are several types, including block formatting contexts, in
line formatting contexts, and flex formatting contexts.
...this means that every element inside the <html> element's block is laid out according to normal flow following the rules for block and in
line layout.
... elements participating in a bfc use the rules out
lined by the css box model, which defines how an element's margins, borders, and padding interact with other blocks in the same context.
...And 7 more matches
Logical properties for sizing - CSS: Cascading Style Sheets
when specifying the size of an item, the logical properties and values specification gives you the ability to indicate sizing as it relates to the flow of text (in
line and block) rather than physical sizing which relates to the physical dimensions of horizontal and vertical (e.g.
...these mappings assume that you are in a horizontal-tb writing mode, such as english or arabic, in which case width would be mapped to in
line-size.
... if you were in a vertical writing mode then in
line-size would be mapped to height.
...And 7 more matches
Mozilla CSS extensions - CSS: Cascading Style Sheets
b -moz-binding -moz-border-bottom-colors -moz-border-left-colors -moz-border-right-colors -moz-border-top-colors -moz-box-align -moz-box-direction -moz-box-flex -moz-box-ordinal-group -moz-box-orient -moz-box-pack c–i -moz-context-properties -moz-float-edge -moz-force-broken-image-icon -moz-image-region o -moz-orient -moz-osx-font-smoothing -moz-out
line-radius -moz-out
line-radius-bottomleft -moz-out
line-radius-bottomright -moz-out
line-radius-topleft -moz-out
line-radius-topright overflow-clip-box overflow-clip-box-block overflow-clip-box-in
line s–z -moz-stack-sizing :-moz-system-metric(images-in-menus) :-moz-system-metric(mac-graphite-theme) :-moz-system-metric(scrollbar-end-backward) :-moz-system-metric(scrollbar-end-forw...
...ill accepted] -moz-animation-name [prefixed version still accepted] -moz-animation-play-state [prefixed version still accepted] -moz-animation-timing-function [prefixed version still accepted] -moz-appearance b -moz-backface-visibility [prefixed version still accepted] -moz-background-clipobsolete since gecko 2 -moz-background-originobsolete since gecko 2 -moz-background-in
line-policyobsolete since gecko 32 [superseded by the standard version box-decoration-break] -moz-background-sizeobsolete since gecko 2 -moz-border-end [superseded by the standard version border-in
line-end] -moz-border-end-color [superseded by the standard version border-in
line-end-color] -moz-border-end-style [superseded by the standard version border-in
line-end-style] -moz-border-end-widt...
...h [superseded by the standard version border-in
line-end-width] -moz-border-image -moz-border-start [superseded by the standard version border-in
line-start] -moz-border-start-color [superseded by the standard version border-in
line-start-color] -moz-border-start-style [superseded by the standard version border-in
line-start-style] -moz-border-start-width [superseded by the standard version border-in
line-start-width] -moz-box-sizing [prefixed version still accepted] c clip-path [applying to more than svg] -moz-column-count [prefixed version still accepted] -moz-column-fill [prefixed version still accepted] -moz-column-gap [prefixed version still accepted] -moz-column-width [prefixed version still accepted] -moz-column-rule [prefixed version still accepte...
...And 7 more matches
align-content - CSS: Cascading Style Sheets
this property has no effect on single
line flex containers (i.e.
...t does not take left and right values */ align-content: center; /* pack items around the center */ align-content: start; /* pack items from the start */ align-content: end; /* pack items from the end */ align-content: flex-start; /* pack flex items from the start */ align-content: flex-end; /* pack flex items from the end */ /* normal alignment */ align-content: normal; /* base
line alignment */ align-content: base
line; align-content: first base
line; align-content: last base
line; /* distributed alignment */ align-content: space-between; /* distribute items evenly the first item is flush with the start, the last is flush with the end */ align-content: space-around; /* distribute items evenly ...
... base
line first base
line last base
line specifies participation in first- or last-base
line alignment: aligns the alignment base
line of the box’s first or last base
line set with the corresponding base
line in the shared first or last base
line set of all the boxes in its base
line-sharing group.
...And 7 more matches
<display-outside> - CSS: Cascading Style Sheets
syntax valid <display-outside> values: block the element generates a block element box, generating
line breaks both before and after the element when in the normal flow.
... in
line the element generates one or more in
line element boxes that do not generate
line breaks before or after themselves.
... in normal flow, the next element will be on the same
line if there is space run-in the element generates a run-in box.
...And 7 more matches
grid-column-end - CSS: Cascading Style Sheets
the grid-column-end css property specifies a grid item’s end position within the grid column by contributing a
line, a span, or nothing (automatic) to its grid placement, thereby specifying the block-end edge of its grid area.
... <custom-ident> if there is a named
line with the name '<custom-ident>-end', it contributes the first such
line to the grid item’s placement.
... note: named grid areas automatically generate implicit named
lines of this form, so specifying grid-column-end: foo; will choose the end edge of that named grid area (unless another
line named foo-end was explicitly specified before it).
...And 7 more matches
grid-row-end - CSS: Cascading Style Sheets
the grid-row-end css property specifies a grid item’s end position within the grid row by contributing a
line, a span, or nothing (automatic) to its grid placement, thereby specifying the in
line-end edge of its grid area.
... <custom-ident> if there is a named
line with the name '<custom-ident>-end', it contributes the first such
line to the grid item’s placement.
... note: named grid areas automatically generate implicit named
lines of this form, so specifying grid-row-end: foo; will choose the end edge of that named grid area (unless another
line named foo-end was explicitly specified before it).
...And 7 more matches
The HTML autocomplete attribute - HTML: Hypertext Markup Language
this can be multiple
lines of text, and should fully identify the location of the address within its second administrative level (typically a city or town), but should not include the city name, zip or postal code, or country name.
... "address-
line1", "address-
line2", "address-
line3" each individual
line of the street address.
... "sex" a gender identity (such as "female", "fa'afafine", "male"), as freeform text without new
lines.
...And 7 more matches
Block-level elements - HTML: Hypertext Markup Language
html (hypertext markup language) elements historically were categorized as either "block-level" elements or "in
line-level" elements.
... browsers typically display the block-level element with a new
line both before and after the element.
... a block-level element always starts on a new
line and takes up the full width available (stretches out to the left and right as far as it can).
...And 7 more matches
CSP: base-uri - HTTP
syntax one or more sources can be allowed for the base-uri policy: content-security-policy: base-uri <source>; content-security-policy: base-uri <source> <source>; sources while this directive uses the same arguments as other csp directives, some of them don’t make sense for `<base>`, such as the keywords 'unsafe-in
line' and 'strict-dynamic' <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... 'unsafe-hashes' allows enabling specific in
line event handlers.
... if you only need to allow in
line event handlers and not in
line <script> elements or javascript: urls, this is a safer method than using the unsafe-in
line expression.
...And 7 more matches
CSP: form-action - HTTP
'unsafe-hashes' allows enabling specific in
line event handlers.
... if you only need to allow in
line event handlers and not in
line <script> elements or javascript: urls, this is a safer method than using the unsafe-in
line expression.
... 'unsafe-in
line' allows the use of in
line resources, such as in
line <script> elements, javascript: urls, in
line event handlers, and in
line <style> elements.
...And 7 more matches
CSP: navigate-to - HTTP
'unsafe-hashes' allows enabling specific in
line event handlers.
... if you only need to allow in
line event handlers and not in
line <script> elements or javascript: urls, this is a safer method than using the unsafe-in
line expression.
... 'unsafe-in
line' allows the use of in
line resources, such as in
line <script> elements, javascript: urls, in
line event handlers, and in
line <style> elements.
...And 7 more matches
CSP: script-src-elem - HTTP
the http content-security-policy (csp) script-src-elem directive specifies valid sources for javascript <script> elements, but not in
line script event handlers like onclick.
... 'unsafe-hashes' allows enabling specific in
line event handlers.
... if you only need to allow in
line event handlers and not in
line <script> elements or javascript: urls, this is a safer method than using the unsafe-in
line expression.
...And 7 more matches
HTTP Index - HTTP
6 data urls base64, guide, http, intermediate, url data urls, urls prefixed with the data: scheme, allow content creators to embed small files in
line in documents.
...this header specifies a comma-de
lineated list of the http methods which may be used when using cors to access the url specified in the request; if the request is using any other method, this error occurs.
...the value of access-control-allow-headers should be a comma-de
lineated list of header names, such as "x-custom-information" or any of the standard but non-basic header names (which are always allowed).
...And 7 more matches
MathML attribute reference - MathML
column
lines <mtable> specifies table column borders.
... unimplemented crossout <mscarry> specifies what kind of
line is drawn to cross out carries.
...the values block and in
line are allowed.
...And 7 more matches
Basic shapes - SVG: Scalable Vector Graphics
vg"> <rect x="10" y="10" width="30" height="30" stroke="black" fill="transparent" stroke-width="5"/> <rect x="60" y="10" rx="10" ry="10" width="30" height="30" stroke="black" fill="transparent" stroke-width="5"/> <circle cx="25" cy="75" r="20" stroke="red" fill="transparent" stroke-width="5"/> <ellipse cx="75" cy="75" rx="20" ry="5" stroke="red" fill="transparent" stroke-width="5"/> <
line x1="10" x2="50" y1="110" y2="150" stroke="orange" stroke-width="5"/> <poly
line points="60 110 65 120 70 115 75 130 80 125 85 140 90 135 95 150 100 145" stroke="orange" fill="transparent" stroke-width="5"/> <polygon points="50 160 55 180 70 180 60 190 65 205 50 195 35 205 40 190 30 180 45 180" stroke="green" fill="transparent" stroke-width="5"/> <path d="m20,230 q40,205 50,230 ...
...
line the <
line> element takes the positions of two points as parameters and draws a straight
line between them.
... <
line x1="10" x2="50" y1="110" y2="150"/> x1 the x position of point 1.
...And 7 more matches
Using the WebAssembly JavaScript API - WebAssembly
now, to help us understand what is going on here, let’s look at the text representation of our wasm module (which we also meet in converting webassembly format to wasm): (module (func $i (import "imports" "imported_func") (param i32)) (func (export "exported_func") i32.const 42 call $i)) in the second
line, you will see that the import has a two-level namespace — the internal function $i is imported from imports.imported_func.
... memory in the low-level memory model of webassembly, memory is represented as a contiguous range of untyped bytes called
linear memory that are read and written by load and store instructions inside the module.
... in this memory model, any load or store can access any byte in the entire
linear memory, which is necessary to faithfully represent c/c++ concepts like pointers.
...And 7 more matches
Table Layout Regression Tests - Archive of obsolete content
execute the base
line test shutdown the layoutdebugger execute mozilla -layoutdebug - p foo >selftest.txt execute the verify test make a note which tests have failed grep 'failed' selftest.txt (these are false positives, quite frequently they indicate reflow problems, pages showing differently when loaded from cache) make your changes to the source, recompile.
...the frame trees are dumped to separate files in a base
line or verify directory for all url's in rtest.lst (see: nsregressiontester::dumpframemodel).
...for appendcells1.html a file appendcells1.rgd will be created in the base
line or verify subdirectory.
...And 6 more matches
Actionscript Acceptance Tests - Archive of obsolete content
testname.as.asc_args this file specifies additional arguments to pass to asc when compiling the test: # asc args for file # two modes are available: # override| all command
line arguments (except builtin.py) are ignored and replaced by these # merge| merge these args in with the current args # specifiy an arg that starts with -no will disable the arg...
... this example passes in another .abc file as an argument to the file being run: -- $dir/file.abc another use would be to pass a specific argument to the shell: -dtimeout this file can have multiple
lines with different arguments.
... when there are multiple
lines, the harness will re-run the test for every
line passing along the different arguments.
...And 6 more matches
Learn XPI Installer Scripting by Example - Archive of obsolete content
luding the one discussed here, take the following basic form (in pseudo-code and with links to the sections in which these installation steps are documented): initinstall(); if (verify_space()) { err = add_dirs_and_files; register_files; if (err==success) { performinstall() }; else { cancelinstall() }; } as you can see in the code listing, the verification process at the top is on
lines 1 to 18; the file addition process, here part of the main installation block, is on
lines 24 to 41; the registration part of the main installation block is on
lines 42-58; and the execution at the end of the main block is on
lines 59 to 71.
...in the browser.xpi installation, this function appears at
line 20: var err = initinstall("netscape seamonkey", "browser", "6.0.0.2000110807"); if you call a method on the install object before initinstall(), you will get an error.
... verifying the target the first thing the installation script does when it's executed is to check that there is adequate disk space for the software to be installed, where the verifydiskspace function is called as a condition of the main installation block that starts at
line 24).
...And 6 more matches
Pseudo-classes and pseudo-elements - Learn web development
for example, if you wanted to select the first
line of a paragraph you could wrap it in a <span> element and use an element selector; however, that would fail if the number of words you had wrapped were longer or shorter than the parent element's width.
... as we tend not to know how many words will fit on a
line — as that will change if the screen width or font-size changes — it is impossible to robustly do this by adding html.
... the ::first-
line pseudo-element selector will do this for you reliably — if the number of words increases and decreases it will still only select the first
line.
...And 6 more matches
Normal Flow - Learn web development
in
line elements are as tall as their content, and as wide as their content.
... you can't set width or height on in
line elements — they just sit inside the content of block level elements.
... if you want to control the size of an in
line element in this manner, you need to set it to behave like a block level element with display: block; (or even,display: in
line-block; which mixes characteristics from both.) that explains individual elements, but what about how elements interact with one another?
...And 6 more matches
How do I use GitHub Pages? - Learn web development
to do this: point the command
line to your test-site directory (or whatever you called the directory containing your website).
...here's what you'd type if you've put your website in a directory called test-site on your desktop: cd desktop/test-site when the command
line is pointing inside your website directory, type the following command, which tells the git tool to turn the directory into a git repository: git init an aside on command
line interfaces the best way to upload your code to github is via the command
line — this is a window where you type in commands to do things like create files and run programs, rather than clicking inside a user interface.
... it will look something like this: note: you could also consider using a git graphical user interface to do the same work, if you feel uncomfortable with the command
line.
...And 6 more matches
Test your skills: Advanced styling - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... one thing that is inconsistent across browsers (particularly looking at safari here) is the position of the standard blue focus out
line.
... there is a major problem with just getting rid of the blue focus out
line.
...And 6 more matches
HTML Cheatsheet - Learn web development
in
line elements an "element" is a single part of a webpage.
...by default, "in
line elements" appear next to one another in a webpage.
... they take up only as much width as they need in a page and fit together horizontally like words in a sentence or books shelved side-by-side in a row.all in
line elements can be implemented within the <body></body> tags.
...And 6 more matches
Making asynchronous programming easier with async and await - Learn web development
try typing the following
lines into your browser's js console: function hello() { return "hello" }; hello(); the function returns "hello" — nothing special, right?
...this can be put in front of any async promise-based function to pause your code on that
line until the promise fulfills, then return the resulting value.
...the await keyword causes the javascript runtime to pause your code on this
line, allowing other code to execute in the meantime, until the async function call has returned its result.
...And 6 more matches
Image gallery - Learn web development
you could paste the html, css and javascript into one of these on
line editors.
... if the on
line editor you are using doesn't have separate javascript/css panels, feel free to put them in
line <script>/<style> elements inside the html page.
... project brief you have been provided with some html, css and image assets and a few
lines of javascript code; you need to write the necessary javascript to turn this into a working program.
...And 6 more matches
Silly story generator - Learn web development
you could paste the html, css and javascript into one of these on
line editors.
... if the on
line editor you are using doesn't have a separate javascript panel, feel free to put it in
line in a <script> element inside the html page.
...for the remainder of the assessment, you'll be filling in
lines inside this function to complete it and make it work properly.
...And 6 more matches
Test your skills: variables - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... initialize myname with a suitable value, on a separate
line (you can use your actual name, or something else).
... declare a variable called myage and initialize it with a value, on the same
line.
...And 6 more matches
What is JavaScript? - Learn web development
(okay, not everything, but it is amazing what you can achieve with a few
lines of javascript code.) the three layers build on top of one another nicely.
... then we can add some css into the mix to get it looking nice: p { font-family: 'helvetica neue', helvetica, sans-serif; letter-spacing: 1px; text-transform: uppercase; text-align: center; border: 2px solid rgba(0,0,200,0.6); background: rgba(0,0,200,0.3); color: rgba(0,0,200,0.6); box-shadow: 1px 1px 2px rgba(0,0,200,0.4); border-radius: 10px; padding: 3px 10px; display: in
line-block; cursor: pointer; } and finally, we can add some javascript to implement dynamic behaviour: const para = document.queryselector('p'); para.addeventlistener('click', updatename); function updatename() { let name = prompt('enter a new name'); para.textcontent = 'player 1: ' + name; } try clicking on this last version of the text label to see what happens (note also that you ca...
...for example, let's return to the block of javascript we saw in our first example: const para = document.queryselector('p'); para.addeventlistener('click', updatename); function updatename() { let name = prompt('enter a new name'); para.textcontent = 'player 1: ' + name; } here we are selecting a text paragraph (
line 1), then attaching an event listener to it (
line 3) so that when the paragraph is clicked, the updatename() code block (
lines 5–8) is run.
...And 6 more matches
Inheritance in JavaScript - Learn web development
the last
line inside the constructor simply defines the new subject property that teachers are going to have, which generic people don't have.
...it also takes more
lines of code.
... add the following
line below your previous addition: teacher.prototype = object.create(person.prototype); here our friend create() comes to the rescue again.
...And 6 more matches
Aprender y obtener ayuda - Learn web development
and there is also nothing wrong with creating your own code examples on your computer, or in an on
line code editor like jsbin, codepen, or glitch.
... note: on
line code editors are also really useful for sharing code you've written, for example, if you are collaborating on learning with someone else who isn't in the same location, or are sending it someone to ask for help with it.
... how to get a domain, hosting, and use them to put a web site or application on
line.
...And 6 more matches
Properly configuring server MIME types - Learn web development
gecko 1.9.1.11 (firefox 3.5.11) and gecko 1.9.2.5 (firefox 3.6.5) also implement this security fix, but to improve compatibility, there was a temporary heuristic that allows the load if the first
line in the style sheet appears to be a well-formed css construct; the heuristic has been removed in firefox 4, and you have to properly set the text/css mime types to have your css pages recognized.
... according to the standards, a meta tag that gives the mime type such as <meta http-equiv="content-type" content="text/html"> should be ignored if there's a content-type
line in the header.
... instead of looking for this
line in the html source, use the above techniques to determine the mime type sent by the server.
...And 6 more matches
SourceMap.jsm
sourcemapconsumer.prototype.originalpositionfor(generatedposition) returns the original source,
line, and column information for the generated source's
line and column positions provided.
... the only argument is an object with the following properties:
line: the
line number in the generated source.
...
line: the
line number in the original source, or null if this information is not available.
...And 6 more matches
MathML Torture Test
</mfrac> </mrow> </mfrac> </mrow> </mfrac> </mrow> </math> </td></tr> <tr> <td>8</td> <td><img src="https://udn.realityripple.com/samples/4e/5132919863.png" width="54" height="50" alt="texbook, 17.5-17.6" /></td> <td> <math display="block"> <mrow> <mo>(</mo> <mfrac
linethickness="0px"> <mi>n</mi> <mrow> <mi>k</mi> <mo>/</mo> <mn>2</mn> </mrow> </mfrac> <mo>)</mo> </mrow> </math> </td></tr> <tr> <td>9</td> <td><img src="https://udn.realityripple.com/samples/52/183910d0f1.png" width="237" height="50" alt="texbook, 17.7" /></td> <td> ...
... <math display="block"> <mrow> <mrow> <mo>(</mo> <mfrac
linethickness="0px"> <mi>p</mi> <mn>2</mn> </mfrac> <mo>)</mo> </mrow> <msup> <mi>x</mi> <mn>2</mn> </msup> <msup> <mi>y</mi> <mrow> <mi>p</mi> <mo>-</mo> <mn>2</mn> </mrow> </msup> <mo>-</mo> <mfrac> <mn>1</mn> <mrow> <mn>1</mn> <mo>-</mo> <mi>x</mi> </mrow> </mfrac> <mfrac> <mn>1</mn> <mrow> <mn>1</mn> <mo>-</mo> <...
...> </msup> </mrow> </mfrac> </mrow> </math> </td></tr> <tr> <td>10</td> <td><img src="https://udn.realityripple.com/samples/e4/0fe420309f.png" width="116" height="63" alt="texbook, 17.7-17.8" /></td> <td> <math display="block"> <mrow> <munder> <mo>∑</mo> <mrow> <mfrac
linethickness="0px"> <mrow> <mn>0</mn> <mo>≤</mo> <mi>i</mi> <mo>≤</mo> <mi>m</mi> </mrow> <mrow> <mn>0</mn> <mo><</mo> <mi>j</mi> <mo><</mo> <mi>n</mi> ...
...And 6 more matches
Gecko Profiler FAQ
the gecko profiler currently doesn’t have the ability to show you information about
line numbers, neither for js code nor for native code.
... for js code, the profiler platform doesn’t capture any information about
lines.
... it only knows what function was executed and what
line this function starts at.
...And 6 more matches
TimerFirings logging
timerfirings logging is a feature built into gecko that prints a
line of data for every timer fired.
... nspr_log_modules=timerfirings:4 output once enabled, timerfirings will print one
line of logging output per timer fired.
... ms): layeractivitytracker -991946880[7f46c365ba00]: [6775] fn timer (one_shot 250 ms): presshell::spaintsuppressioncallback -991946880[7f46c365ba00]: [6775] fn timer (one_shot 160 ms): nsbrowserstatusfilter::timeouthandler -991946880[7f46c365ba00]: [6775] iface timer (one_shot 200 ms): 7f46964d7f80 -1340643584[7f46c365ec00]: [6775] obs timer (slack 1000 ms): 7f46a95a0200 each
line has the following information.
...And 6 more matches
AsyncTestUtils extended framework
import everything you need: load("../../mailnews/resources/loghelper.js"); load("../../mailnews/resources/asynctestutils.js"); load("../../mailnews/resources/messagegenerator.js"); load("../../mailnews/resources/messagemodifier.js"); load("../../mailnews/resources/messageinjection.js"); if the directory where you are adding the tests does not have a head_*.js file that has the two following
lines, add them at the top of your test file (before the
lines shown above): load("../../mailnews/resources/maildirservice.js"); load("../../mailnews/resources/mailtestutils.js"); at the bottom of the test file, add the following: var tests =[ // list your tests here ]; function run_test() { configure_message_injection({mode: "local"}); async_run_tests(tests); } asynchronous testing b...
... thanks to javascript enhancements available on the mozilla platform, it is possible for a function to yield control in such a way that the function stops running at the
line where you use a yield statement and resumes execution on the next
line when resumed.
... imap injection, do not bring messages off
line let inboxfolder = configure_message_injection({mode: "imap", off
line: false}); use an imap fake-server to inject messages.
...And 6 more matches
How to embed the JavaScript engine
js::rootedobject global(cx, js_newglobalobject(cx, &global_class, nullptr)); if (!global) return 1; js::rootedvalue rval(cx); { // scope for jsautocompartment jsautocompartment ac(cx, global); js_initstandardclasses(cx, global); const char *script = "'hello'+'world, it is '+new date()"; const char *filename = "noname"; int
lineno = 1; bool ok = js_evaluatescript(cx, global, script, strlen(script), filename,
lineno, rval.address()); if (!ok) return 1; } jsstring *str = rval.tostring(); printf("%s\n", js_encodestring(cx, str)); } js_destroycontext(cx); js_destroyruntime(rt); js_shutdown(); return 0; } spidermonkey 31 // following code might be needed in ...
...al(cx, js_newglobalobject(cx, &global_class, nullptr, js::fireonnewglobalhook)); if (!global) return 1; js::rootedvalue rval(cx); { // scope for jsautocompartment jsautocompartment ac(cx, global); js_initstandardclasses(cx, global); const char *script = "'hello'+'world, it is '+new date()"; const char *filename = "noname"; int
lineno = 1; bool ok = js_evaluatescript(cx, global, script, strlen(script), filename,
lineno, &rval); if (!ok) return 1; } jsstring *str = rval.tostring(); printf("%s\n", js_encodestring(cx, str)); } js_destroycontext(cx); js_destroyruntime(rt); js_shutdown(); return 0; } spidermonkey 38 // following code might be needed in some case...
...al(cx, js_newglobalobject(cx, &global_class, nullptr, js::fireonnewglobalhook)); if (!global) return 1; js::rootedvalue rval(cx); { // scope for jsautocompartment jsautocompartment ac(cx, global); js_initstandardclasses(cx, global); const char *script = "'hello'+'world, it is '+new date()"; const char *filename = "noname"; int
lineno = 1; js::compileoptions opts(cx); opts.setfileand
line(filename,
lineno); bool ok = js::evaluate(cx, global, opts, script, strlen(script), &rval); if (!ok) return 1; } jsstring *str = rval.tostring(); printf("%s\n", js_encodestring(cx, str)); } js_destroycontext(cx); js_destroyruntime(rt); js_shutdown(); return 0; ...
...And 6 more matches
Starting WebLock
even this simple out
line presents some ambiguity, however.
...the xpidl for iweblock appears below: iweblock #include "nsisupports.idl" interface nsisimpleenumerator; [scriptable, uuid(ea54eee4-9548-4b63-b94d-c519ffc91d09)] interface iweblock : nsisupports { void lock(); void unlock(); // assume strings are utf-8 void addsite(in string url); void removesite(in string url); attribute nsisimpleenumerator sites; }; the first
line includes the file nsisupports.idl, which defines the nsisupports interface from which all xpcom interfaces must derive, and makes it possible for the iweblock interface to subclass that base interface.
... #include "nsisupports.idl" the next
line of the xpidl is a forward declaration of the interface nsisimpleenumerator.
...And 6 more matches
nsICachingChannel
cacheforoff
lineuse boolean specifies whether or not the data should be placed in the off
line cache, in addition to normal memory/disk caching.
... this may fail if the off
line cache is not present.
... off
linecacheclientid acstring the session into which to cache off
line data.
...And 6 more matches
nsIDebug
method overview void abort(in string afile, in long a
line); void assertion(in string astr, in string aexpr, in string afile, in long a
line); void break(in string afile, in long a
line); void warning(in string astr, in string afile, in long a
line); methods abort() requests the process to trigger a fatal abort.
... void abort( in string afile, in long a
line ); parameters afile file containing abort request.
... a
line line number of abort request.
...And 6 more matches
Examine and edit HTML - Firefox Developer Tools
clicking the marker opens a tooltip listing the event listeners and allows you for each listener to switch to the
line of javascript code in the debugger where the listener is defined.
... in
line-grid the element is an in
line grid container, i.e.
... it has display: in
line-grid or display: in
line grid applied to it.
...And 6 more matches
Basic animations - Web APIs
function clock() { var now = new date(); var ctx = document.getelementbyid('canvas').getcontext('2d'); ctx.save(); ctx.clearrect(0, 0, 150, 150); ctx.translate(75, 75); ctx.scale(0.4, 0.4); ctx.rotate(-math.pi / 2); ctx.strokestyle = 'black'; ctx.fillstyle = 'white'; ctx.
linewidth = 8; ctx.
linecap = 'round'; // hour marks ctx.save(); for (var i = 0; i < 12; i++) { ctx.beginpath(); ctx.rotate(math.pi / 6); ctx.moveto(100, 0); ctx.
lineto(120, 0); ctx.stroke(); } ctx.restore(); // minute marks ctx.save(); ctx.
linewidth = 5; for (i = 0; i < 60; i++) { if (i % 5!= 0) { ctx.beginpath(); ctx.moveto(117, 0); ctx.
...
lineto(120, 0); ctx.stroke(); } ctx.rotate(math.pi / 30); } ctx.restore(); var sec = now.getseconds(); var min = now.getminutes(); var hr = now.gethours(); hr = hr >= 12 ?
... hr - 12 : hr; ctx.fillstyle = 'black'; // write hours ctx.save(); ctx.rotate(hr * (math.pi / 6) + (math.pi / 360) * min + (math.pi / 21600) *sec); ctx.
linewidth = 14; ctx.beginpath(); ctx.moveto(-20, 0); ctx.
lineto(80, 0); ctx.stroke(); ctx.restore(); // write minutes ctx.save(); ctx.rotate((math.pi / 30) * min + (math.pi / 1800) * sec); ctx.
linewidth = 10; ctx.beginpath(); ctx.moveto(-28, 0); ctx.
lineto(112, 0); ctx.stroke(); ctx.restore(); // write seconds ctx.save(); ctx.rotate(sec * math.pi / 30); ctx.strokestyle = '#d40000'; ctx.fillstyle = '#d40000'; ctx.
linewidth = 6; ctx.beginpath(); ctx.moveto(-30, 0); ctx.
lineto(83, 0); ctx.stroke(); ctx.beginpath(); ctx.arc(0, 0, 10, 0, math.pi * 2, true); ctx.fill(); ctx.beginpa...
...And 6 more matches
Document.execCommand() - Web APIs
most commands affect the document's selection (bold, italics, etc.), while others insert new elements (adding a link), or affect an entire
line (indenting).
... enablein
linetableediting enables or disables the table row/column insertion and deletion controls.
... formatblock adds an html block-level element around the
line containing the current selection, replacing the block element containing the
line if one exists (in firefox, <blockquote> is the exception — it will wrap any containing block element).
...And 6 more matches
HTMLTextAreaElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 11...
...1,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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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/we...
...And 6 more matches
Using Pointer Events - Web APIs
we're using a 4-pixel wide
line, so a 4 pixel radius circle will show up neatly.
...its responsibility in this example is to update the cached touch information and to draw a
line from the previous position to the current position of each touch.
...bytagname("canvas")[0]; var ctx = el.getcontext("2d"); var color = colorfortouch(evt); var idx = ongoingtouchindexbyid(evt.pointerid); log("continuing touch: idx = " + idx); if (idx >= 0) { ctx.beginpath(); log("ctx.moveto(" + ongoingtouches[idx].pagex + ", " + ongoingtouches[idx].pagey + ");"); ctx.moveto(ongoingtouches[idx].pagex, ongoingtouches[idx].pagey); log("ctx.
lineto(" + evt.clientx + ", " + evt.clienty + ");"); ctx.
lineto(evt.clientx, evt.clienty); ctx.
linewidth = 4; ctx.strokestyle = color; ctx.stroke(); ongoingtouches.splice(idx, 1, copytouch(evt)); // swap in the new touch record log("."); } else { log("can't figure out which touch to continue: idx = " + idx); } } this function looks in our cached touch information ar...
...And 6 more matches
Touch events - Web APIs
after that, we iterate over all the touch objects in the list, pushing them onto an array of active touchpoints and drawing the start point for the draw as a small circle; we're using a 4-pixel wide
line, so a 4-pixel radius circle will show up neatly.
...its responsibility in this example is to update the cached touch information and to draw a
line from the previous position to the current position of each touch.
...h; i++) { var color = colorfortouch(touches[i]); var idx = ongoingtouchindexbyid(touches[i].identifier); if (idx >= 0) { console.log("continuing touch "+idx); ctx.beginpath(); console.log("ctx.moveto(" + ongoingtouches[idx].pagex + ", " + ongoingtouches[idx].pagey + ");"); ctx.moveto(ongoingtouches[idx].pagex, ongoingtouches[idx].pagey); console.log("ctx.
lineto(" + touches[i].pagex + ", " + touches[i].pagey + ");"); ctx.
lineto(touches[i].pagex, touches[i].pagey); ctx.
linewidth = 4; ctx.strokestyle = color; ctx.stroke(); ongoingtouches.splice(idx, 1, copytouch(touches[i])); // swap in the new touch record console.log("."); } else { console.log("can't figure out which touch to continue"); } } } thi...
...And 6 more matches
WebGL constants - Web APIs
standard webgl constants are installed on the webglrenderingcontext and webgl2renderingcontext objects, so that you use them as gl.constant_name: var canvas = document.getelementbyid('mycanvas'); var gl = canvas.getcontext('webgl'); gl.getparameter(gl.
line_width); some constants are also provided by webgl extensions.
...
lines 0x0001 passed to drawelements or drawarrays to draw
lines.
...
line_loop 0x0002 passed to drawelements or drawarrays to draw
lines.
...And 6 more matches
Using XMLHttpRequest - Web APIs
some cases where dealing with non-text response types may involve some manipulation and analysis are out
lined in the following sections.
...you might want to remove
line breaks, if you use regexp to scan with regard to
line breaks.
...you might want to remove
line breaks, if you use regexp to scan with regard to
linebreaks.
...And 6 more matches
Accessibility documentation index - Accessibility
a few guide
lines to follow that ensure better accessibility, like using drag and drop for placement of the widgets.
... 94 mobile accessibility checklist accessibility, firefox os, guide
lines, mobile, checklist this document provides a concise checklist of accessibility requirements for mobile app developers.
... 95 understanding the web content accessibility guide
lines wcag, web content accessibility guide
lines this set of articles provides quick explanations to help you understand the steps that need to be taken to conform to the recommendations out
lined in the w3c web content accessibility guide
lines 2.0 or 2.1 (or just wcag, for the purposes of this writing).
...And 6 more matches
Logical properties for floating and positioning - CSS: Cascading Style Sheets
logical property or value physical property or value float: in
line-start float: left float: in
line-end float: right clear: in
line-start clear: left clear: in
line-end clear: right inset-in
line-start left inset-in
line-end right inset-block-start top inset-block-end bottom text-align: start text-align: left text-align: end text-align: right in addit...
...ion to these mapped properties there are some additional shorthand properties made possible by being able to address block and in
line dimensions.
... logical property purpose inset-in
line sets both of the above inset values for the in
line dimension simultaneously.
...And 6 more matches
Using CSS transitions - CSS: Cascading Style Sheets
linearly or quick at the beginning, slow at the end).
... color; transition-duration: 2s; transition-timing-function: ease; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-timing-function:
linear <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position: absolute; -webkit-transition-property: width height background-color font-size left top color; -webkit-transition-duration: 2s; -webkit-transi...
...tion-timing-function:
linear; transition-property: width height background-color font-size left top color; transition-duration: 2s; transition-timing-function:
linear; } .box1{ width: 50px; height: 50px; background-color: blue; color: yellow; font-size: 18px; left: 150px; top:25px; position: absolute; -webkit-transition-property: width height background-color font-size left top color; -webkit-transition-duration: 2s; -webkit-transition-timing-function:
linear; transition-property: width height background-color font-size left top color; transition-duration: 2s; transition-timing-function:
linear; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { ...
...And 6 more matches
align-self - CSS: Cascading Style Sheets
-self: center; /* put the item around the center */ align-self: start; /* put the item at the start */ align-self: end; /* put the item at the end */ align-self: self-start; /* align the item flush at the start */ align-self: self-end; /* align the item flush at the end */ align-self: flex-start; /* put the flex item at the start */ align-self: flex-end; /* put the flex item at the end */ /* base
line alignment */ align-self: base
line; align-self: first base
line; align-self: last base
line; align-self: stretch; /* stretch 'auto'-sized items to fit the container */ /* overflow alignment */ align-self: safe center; align-self: unsafe center; /* global values */ align-self: inherit; align-self: initial; align-self: unset; values auto computes to the parent's align-items value.
... flex-start the cross-start margin edge of the flex item is flushed with the cross-start edge of the
line.
... flex-end the cross-end margin edge of the flex item is flushed with the cross-end edge of the
line.
...And 6 more matches
background-image - CSS: Cascading Style Sheets
to specify multiple background images, supply multiple values, separated by a comma: background-image:
linear-gradient(to bottom, rgba(255,255,0,0.5), rgba(0,0,255,0.5)), url('https://mdn.mozillademos.org/files/7693/catfront.png'); values none is a keyword denoting the absence of images.
... mdn understanding wcag, guide
line 1.1 explanations understanding success criterion 1.1.1 | w3c understanding wcag 2.0 formal definition initial valuenoneapplies toall elements.
... it also applies to ::first-letter and ::first-
line.inheritednocomputed valueas specified, but with <url> values made absoluteanimation typediscrete formal syntax <bg-image>#where <bg-image> = none | <image>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <image()> = image( <image-tags>?
...And 6 more matches
float - CSS: Cascading Style Sheets
the float css property places an element on the left or right side of its container, allowing text and in
line elements to wrap around it.
... 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 in
line block in
line-block block in
line-table table table-row block table-row-group block table-column block table-column-group block table-cell block table-caption block table-header-group block table-footer-group block in
line-flex flex in
line-grid grid ...
... syntax /* keyword values */ float: left; float: right; float: none; float: in
line-start; float: in
line-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.
...And 6 more matches
grid-template - CSS: Cascading Style Sheets
constituent properties this property is a shorthand for the following css properties: grid-template-areas grid-template-columns grid-template-rows syntax /* keyword value */ grid-template: none; /* grid-template-rows / grid-template-columns values */ grid-template: 100px 1fr / 50px 1fr; grid-template: auto 1fr / auto 1fr auto; grid-template: [
linename] 100px / [columnname1] 30% [columnname2] 70%; grid-template: fit-content(100px) / fit-content(40%); /* grid-template-areas grid-template-rows / grid-template-column values */ grid-template: "a a a" "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] ...
... [ <
line-names>?
...<
line-names>?
...And 6 more matches
hyphens - CSS: Cascading Style Sheets
the hyphens css property specifies how words should be hyphenated when text wraps across multiple
lines.
... 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.
...And 6 more matches
justify-content - CSS: Cascading Style Sheets
the css justify-content property defines how the browser distributes space between and around content items along the main-axis of a flex container, and the in
line axis of a grid container.
...around the center */ justify-content: start; /* pack items from the start */ justify-content: end; /* pack items from the end */ justify-content: flex-start; /* pack flex items from the start */ justify-content: flex-end; /* pack flex items from the end */ justify-content: left; /* pack items from the left */ justify-content: right; /* pack items from the right */ /* base
line alignment */ /* justify-content does not take base
line values */ /* normal alignment */ justify-content: normal; /* distributed alignment */ justify-content: space-between; /* distribute items evenly the first item is flush with the start, the last is flush with the end */ justify-content: space-around; /* distribute items e...
...if the property’s axis is not parallel with the in
line axis, this value behaves like start.
...And 6 more matches
text-decoration-color - CSS: Cascading Style Sheets
the text-decoration-color css property sets the color of decorations added to text by text-decoration-
line.
... the color applies to decorations, such as under
lines, over
lines, strikethroughs, and wavy
lines like those used to mark misspellings, in the scope of the property's value.
... css does not provide a direct mechanism for specifying a unique color for each
line type.
...And 6 more matches
Your first form - Learn web development
the controls can be single or multi-
line text fields, dropdown boxes, buttons, checkboxes, or radio buttons, and are mostly created using the <input> element, although there are some other elements to learn about too.
... the <label>, <input>, and <textarea> elements our contact form is not complex: the data entry portion contains three text fields, each with a corresponding <label>: the input field for the name is a single-
line text field.
... the input field for the e-mail is an input of type email: a single-
line text field that accepts only e-mail addresses.
...And 5 more matches
JavaScript basics - Learn web development
in your index.html file, enter this code on a new
line, just before the closing </body> tag: <script src="scripts/main.js"></script> this is doing the same job as the <link> element for css.
... important: in this article, try entering the example code
lines into your javascript console to see what happens.
...you start by declaring a variable with the var (less recommended, dive deeper for the explanation) or the let keyword, followed by the name you give to the variable: let myvariable; note: a semicolon at the end of a
line indicates where a statement ends.
...And 5 more matches
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
but it can also just help keep your code tidy, especially if the timeout callback is more than a few
lines of code.
... html { background-color: white; height: 100%; } body { height: inherit; background-color: red; margin: 0; display: flex; justify-content: center; align-items: center; } div { display: in
line-block; font-size: 10rem; } insert a <script> element just above the closing </body> tag.
... const spinner = document.queryselector('div'); let rotatecount = 0; let starttime = null; let raf; below the previous code, insert a draw() function that will be used to contain our animation code, which includes the timestamp parameter: function draw(timestamp) { } inside draw(), add the following
lines.
...And 5 more matches
Test your skills: Conditionals - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
... download the starting point for this task to work in your own editor or in an on
line editor.
...And 5 more matches
Video and Audio APIs - Learn web development
last but not least, let's look at the css for the timer: .timer {
line-height: 38px; font-size: 10px; font-family: monospace; text-shadow: 1px 1px 0px black; color: white; flex: 5; position: relative; } .timer div { position: absolute; background-color: rgba(255,255,255,0.2); left: 0; top: 0; width: 0; height: 38px; z-index: 2; } .timer span { position: absolute; z-index: 3; left: 19px; } we set the outer .timer <div> to have fle...
... next, insert the following at the bottom of your code: media.removeattribute('controls'); controls.style.visibility = 'visible'; these two
lines remove the default browser controls from the video, and make the custom controls visible.
...add the following addeventlistener()
lines below the previous one you added: stop.addeventlistener('click', stopmedia); media.addeventlistener('ended', stopmedia); the click event is obvious — we want to stop the video by running our stopmedia() function when the stop button is clicked.
...And 5 more matches
Arrays - Learn web development
on the same
line as the // number 2 comment is the beginning of a for loop.
... in this
line we currently have i <= 0, which is a conditional test that causes the for loop to only run once, because it is saying "stop when i is no longer less than or equal to 0", and i starts at 0.
... just below the // number 3 comment we want you to write a
line of code that splits the current array item (name:price) into two separate items, one containing just the name and one containing just the price.
...And 5 more matches
Handling text — strings in JavaScript - Learn web development
let's start by entering some basic
lines into the browser developer console to familiarize ourselves.
... creating a string to start with, enter the following
lines: let string = 'the revolution will not be televised.'; string; just like we did with numbers, we are declaring a variable, initializing it with a string value, and then returning the value.
...try entering the following
lines: let badstring = this is a test; let badstring = 'this is a test; let badstring = this is a test'; these
lines don't work because any text without quotes around it is assumed to be a variable name, property name, a reserved word, or similar.
...And 5 more matches
Test your skills: Math - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... download the starting point for this task to work in your own editor or in an on
line editor.
... write a
line of code that takes result and formats it to 2 decimal places, storing the result of this in a variable called finalresult.
...And 5 more matches
Ember interactivity: Events, classes and state - Learn web development
prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
... add the new
line shown below to your header.hbs file: <input class='new-todo' aria-label='what needs to be done?' placeholder='what needs to be done?' autofocus {{on 'keydown' this.onkeydown}} > this new attribute is inside double curly braces, which tells you it is part of ember's dynamic templating syntax.
... add the following import statement below the existing one: import { tracked } from '@glimmer/tracking'; now add the following class below the previous
line you added: class todo { @tracked text = ''; @tracked iscompleted = false; constructor(text) { this.text = text; } } this class represents a todo — it contains a @tracked text property containing the text of the todo, and a @tracked iscompleted property that specifies whether the todo has been completed or not.
...And 5 more matches
Starting our Svelte Todo list app - Learn web development
prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
...the console should currently give you a message along the
lines of "<app> was created with unknown prop 'name'".
...replace the contents of the file public/global.css with the following: /* resets */ *, *::before, *::after { box-sizing: border-box; } *:focus { out
line: 3px dashed #228bec; out
line-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: inheri...
...And 5 more matches
Deployment and next steps - Learn web development
in this final article we will look at how to deploy your application and get it on
line, and also share some of the resources that you should go on to, to continue your svelte learning journey.
... prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
... automatic deployment to gitlab pages for hosting static files there are several on
line services that allow you to automatically deploy your site whenever you push changes to a git repository.
...And 5 more matches
Getting started with Svelte - Learn web development
prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
... moreover, with the help of sapper (a framework based on svelte), you can also develop applications with advanced features like server-side rendering, code splitting, file-based routing and off
line support.
...see command
line crash course for more information on these, and on terminal commands in general.
...And 5 more matches
Styling Vue components with CSS - Learn web development
prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command
line.
... add the following contents to the reset.css file: /*reset.css*/ /* resets */ *, *::before, *::after { box-sizing: border-box; } *:focus { out
line: 3px 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-appearan...
...ce: 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; background-color: #f5f5f5; color: #4d4d4d; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } @media screen and (min-width: 620px) { body { font-size: 1.9rem;
line-height: 1.31579; } } /*end resets*/ next, in your src/main.js file, import the reset.css file like so: import './assets/reset.css'; this will cause the file to get picked up during the build step ...
...And 5 more matches
Setting up your own test automation environment - Learn web development
if(title === 'webdriver - google search') { console.log('test passed'); } else { console.log('test failed'); } driver.quit(); }); }); } in terminal, make sure you are inside your project folder, then enter the following command: node google_test_multiple if you are using a mac and do decide to test safari, you might get an error message along the
lines of "could not create a session: you must enable the 'allow remote automation' option in safari's develop menu to control safari via webdriver." if you get this, follow the given instruction and try again.
... add this
line to the bottom of quick_test.js now: driver.get('http://mdn.github.io/learning-area/tools-testing/cross-browser-testing/accessibility/native-keyboard-accessibility.html'); interacting with the document now we've got a document to test, we need to interact with it in some way, which usually involves first selecting a specific element to test something about.
...delete the previous code entry, then add this
line at the bottom instead: button.click(); try running your test again; the button will be clicked, and the alert() popup should appear.
...And 5 more matches
Client-side tooling overview - Learn web development
equally, a single configuration file for a tool like webpack can be hundreds of
lines long, most of which are magical incantations that seem to do the job but which only a master engineer will fully understand!
... from time to time, even the most experienced of web developers get stuck on a tooling problem; it is possible to waste hours attempting to get a tooling pipe
line working before even touching a single
line of application code.
... linters linters are tools that check through your code and tell you about any errors that are present, what error types they are, and what code
lines they are present on.
...And 5 more matches
Package management basics - Learn web development
a project dependency can be an entire javascript library or framework — such as react or vue — or a very small utility like our human-readable date library, or it can be a command
line tool such as prettier or eslint, which we talked about in previous articles.
... using the package ecosystem let’s run through an example to get you started with using a package manager and registry to install a command
line utility.
...these are the files you would upload to your web server when releasing the site on
line for public consumption.
...And 5 more matches
HTTP logging
don't let the scary-looking command
line stuff frighten you off; it's not hard at all!
... copy and paste the following
lines one at a time into the command prompt window.
...make sure to hit enter after each
line.
...And 5 more matches
mach
mach (german for to make) is a program via the "command-
line interface" to help developers perform installation tasks such as installing firefox from its c++ source code.
... mach will print timings with each
line of output from the build.
...if you do implement something in python, hooking it up to mach is often trivial (just a few
lines of proxy code).
...And 5 more matches
Performance best practices for Firefox front-end engineers
get familiar with the pipe
line that gets pixels to the screen learn how pixels you draw make their way to the screen.
... for a very down-to-earth explanation of the style, layout, paint and composite steps of the pipe
line, this hacks blog post does a great job of explaining it.
...this allows you to put all of your dom writes (most importantly, anything that could change the size or position of things in the dom) just before the style and layout steps of the pipe
line, combining all the style and layout calculations into a single batch so it all happens once, in a single frame tick, instead of across multiple frames.
...And 5 more matches
How to get a stacktrace with WinDbg
before debugging can start, several commands must be entered into the one-
line input box at the bottom of the command window.
... tip: all commands must be entered exactly as written, one
line at a time, into the bottom of the command box.
... copying and pasting each
line is the easiest method to avoid mistakes some commands start with a period (.) or a pipe character (|), which is required.
...And 5 more matches
Localizing with Mercurial
mercurial on linux you can easily install mercurial from the command
line by issuing one of the following commands.
... mercurial on windows with windows, you have a couple of install options: for a command
line interface, download and install mozillabuild package.
...it also installs the command
line utility.
...And 5 more matches
SVN for Localizers
mac os x users can find svn inside the command
line tools (available on the apple developer website), or use tools like homebrew or fink.
...a possible alternative is to install tortoisesvn (graphical interface and command
line client).
...here's the layout you will find within the projects/mozilla.com directory: navigating from the command-
line with your svn client, you'll find three directories within projects/mozilla.com.
...And 5 more matches
Midas
according to standards, the iframe element has the contentdocument property that refers to the document in the in
line frame.
... it also has a property called contentwindow that refers to the window object inside the in
line frame.
... inserthorizontalrule null/string (when string is the
line's id) this command will insert a horizontal rule (
line) at the insertion point.
...And 5 more matches
JS::CompileOptions
bool setfileand
line(jscontext *cx, const char *f, unsigned l) duplicate null-terminated string f for filename() and set
lineno property.
... owningcompileoptions &set
line(unsigned l) sets each property and returns the instance itself.
... owningcompileoptions &setnoscriptrval(bool nsr) owningcompileoptions &setselfhostingmode(bool shm) owningcompileoptions &setcanlazilyparse(bool clp) owningcompileoptions &setsourceislazy(bool l) owningcompileoptions &setintroductiontype(const char *t) bool setintroductioninfo(jscontext *cx, const char *introducerfn, const char *intro, unsigned
line, jsscript *script, uint32_t offset) duplicate null-terminated string introducerfn for introducerfilename and set introductiontype, introduction
lineno, introductionscriptroot, introductionoffset, and hasintroductioninfo properties.
...And 5 more matches
XPCShell Reference
the command
line the command-
line syntax for xpcshell is: xpcshell [-s] [-w] [-w] [-v version] [-f scriptfile] [scriptfile] [scriptarg...] -c this option turns on the "compile-only" mode.
... for instance, assume that you have a file called test.js with the following contents: for (prop in arguments) { print(prop + "=" + arguments[prop]); } entering the following at the command
line should produce the following output: $ xpcshell test.js this is a test 0=this 1=is 2=a 3=test xpcshell extensions once you execute xpcshell without a script you'll be at the js> command
line.
... the following are some useful functions that can be invoked from the command
line: clear(object) clear() removes all properties from an object.
...And 5 more matches
nsIMsgDatabase
oid deletemessage(in nsmsgkey key, in nsidbchangelistener instigator, in boolean commit); void deleteheader(in nsimsgdbhdr msghdr, in nsidbchangelistener instigator,in boolean commit, in boolean notify); void removeheadermdbrow(in nsimsgdbhdr msghdr); void undodelete(in nsimsgdbhdr msghdr); void markmarked(in nsmsgkey key, in boolean mark, in nsidbchangelistener instigator); void markoff
line(in nsmsgkey key, in boolean off
line, in nsidbchangelistener instigator); void setlabel(in nsmsgkey key, in nsmsglabelvalue label); void setstringproperty(in nsmsgkey akey, in string aproperty, in string avalue); void markimapdeleted(in nsmsgkey key, in boolean deleted, in nsidbchangelistener instigator); void applyretentionsettings(in nsimsgretentionsettings amsgretentionsettings, in bool...
...ean adeleteviafolder); boolean hasnew(); void clearnewlist(in boolean notify); void addtonewlist(in nsmsgkey key); void startbatch(); void endbatch(); nsimsgoff
lineimapoperation getoff
lineopforkey(in nsmsgkey messagekey, in boolean create); void removeoff
lineop(in nsimsgoff
lineimapoperation op); nsisimpleenumerator enumerateoff
lineops(); void listalloff
lineopids(in nsmsgkeyarrayptr off
lineopids); native code only!
... void listalloff
linedeletes(in nsmsgkeyarrayptr off
linedeletes); native code only!
...And 5 more matches
MailNews fakeserver
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.
... onmulti
line sent
line server's response or nothing called when in multi-
line mode.
...And 5 more matches
Browser Console - Firefox Developer Tools
nb: the browser console command
line (to execute javascript expressions) is disabled by default.
... you can also start the browser console by launching firefox from the command
line and passing the -jsconsole argument: /applications/firefoxaurora.app/contents/macos/firefox-bin -jsconsole the browser console looks like this: you can see that the browser console looks and behaves very much like the web console: most of the window is occupied by a pane that display messages.
... at the bottom, a command
line interpreter enables you to evaluate javascript expressions.
...And 5 more matches
Debugger - Firefox Developer Tools
(if this property is present, the
line property will be too, and vice versa.)
line if present, the source
line number at which the error occurred.
...
linetext if present, this is the source code of the offending
line.
... offset the index of the character within
linetext at which the error occurred.
...And 5 more matches
All keyboard shortcuts - Firefox Developer Tools
instead, it focuses on the web console's command
line.
... command windows macos linux go to
line ctrl + j, ctrl + g cmd + j, cmd + g ctrl + j, ctrl + g find in file ctrl + f cmd + f ctrl + f select all ctrl + a cmd + a ctrl + a cut ctrl + x cmd + x ctrl + x copy ctrl + c cmd + c ctrl + c paste ctrl + v cmd + v ctrl + v undo ctrl + z cmd + z ctrl + z redo ctrl + shi...
...ft + z / ctrl + y cmd + shift + z / cmd + y ctrl + shift + z / ctrl + y indent tab tab tab unindent shift + tab shift + tab shift + tab move
line(s) up alt + up alt + up alt + up move
line(s) down alt + down alt + down alt + down comment/uncomment
line(s) ctrl + / cmd + / ctrl + / page inspector command windows macos linux inspect element ctrl + shift + c cmd + shift + c ctrl + shift + c node picker these shortcuts work while the node picker is active.
...And 5 more matches
CSS Grid Inspector: Examine grid layouts - Firefox Developer Tools
clicking the icon toggles the display of a grid overlay on the page, which appears over the element, laid out like a grid to show the position of its grid
lines and tracks: the overlay is still shown when you select other elements, so you can edit related css properties and see how the grid is affected.
... grid display settings: display
line numbers: turn the
line numbers shown for each grid overlay on and off (on by default).
... extend
lines infinitely: by default, grid
lines/tracks are only shown inside the element with display: grid set on it; when toggling this option on, the grid
lines extend to the edge of the viewport along each axis.
...And 5 more matches
Using the CSS Painting API - Web APIs
if the text is small, the yellow box looks like a huge under
line.
...by positioning some decorative generated content with ::before, or including background:
linear-gradient(yellow, yellow) 0 15px / 200px 20px no-repeat; what makes the css painting api so interesting and powerful is that you can create complex images, passing variables, that automatically resize.
... } static get contextoptions() { return {alpha: true}; } paint(ctx, size, props) { /* set where to start the highlight & dimensions */ const x = 0; const y = size.height * 0.3; const blockwidth = size.width * 0.33; const highlightheight = size.height * 0.85; const color = props.get('--highcolour'); ctx.fillstyle = color; ctx.beginpath(); ctx.moveto( x, y ); ctx.
lineto( blockwidth, y ); ctx.
lineto( blockwidth + highlightheight, highlightheight ); ctx.
lineto( x, highlightheight ); ctx.
lineto( x, y ); ctx.closepath(); ctx.fill(); /* create the dashes */ for (let i = 0; i < 4; i++) { let start = i * 2; ctx.beginpath(); ctx.moveto( (blockwidth) + (start * 10) + 10, y ); ctx.
lineto( (blockwidth) + (start * 10) + 20, y ); ctx.
lineto( (...
...And 5 more matches
console - Web APIs
console.count() log the number of times this
line has been called with the given label.
... console.group() creates a new in
line group, indenting all following output by another level.
... console.groupcollapsed() creates a new in
line group, indenting all following output by another level.
...And 5 more matches
HTMLBodyElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,2...
...0 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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:h...
...And 5 more matches
SVGPathSeg - Web APIs
none properties unsigned short pathsegtype domstring pathsegtypeasletter constants pathseg_unknown = 0 pathseg_closepath = 1 pathseg_moveto_abs = 2 pathseg_moveto_rel = 3 pathseg_
lineto_abs = 4 pathseg_
lineto_rel = 5 pathseg_curveto_cubic_abs = 6 pathseg_curveto_cubic_rel = 7 pathseg_curveto_quadratic_abs = 8 pathseg_curveto_quadratic_rel = 9 pathseg_arc_abs = 10 pathseg_arc_rel = 11 pathseg_
lineto_horizontal_abs = 12 pathseg_
lineto_horizontal_rel = 13 pathse...
...g_
lineto_vertical_abs = 14 pathseg_
lineto_vertical_rel = 15 pathseg_curveto_cubic_smooth_abs = 16 pathseg_curveto_cubic_smooth_rel = 17 pathseg_curveto_quadratic_smooth_abs = 18 pathseg_curveto_quadratic_smooth_rel = 19 normative document svg 1.1 (2nd edition) constants name value description pathseg_unknown 0 the unit type is not one of predefined types.
... pathseg_
lineto_abs 4 corresponds to an "absolute
lineto" (l) path data command.
...And 5 more matches
Writing a WebSocket server in C# - Web APIs
here's a barebones server implementation: using system.net.sockets; using system.net; using system; class server { public static void main() { tcplistener server = new tcplistener(ipaddress.parse("127.0.0.1"), 80); server.start(); console.write
line("server has started on 127.0.0.1:80.{0}waiting for a connection...", environment.new
line); tcpclient client = server.accepttcpclient(); console.write
line("a client connected."); } } tcpclient methods: system.net.sockets.networkstream getstream() gets the stream which is the communication channel.
... tcpclient client = server.accepttcpclient(); console.write
line("a client connected."); networkstream stream = client.getstream(); //enter to an infinite cycle to be able to handle every change in stream while (true) { while (!stream.dataavailable); byte[] bytes = new byte[client.available]; stream.read(bytes, 0, bytes.length); } handshaking when a client connects to a server, it sends a get request to upgrade the connection to a websocket f...
... concatenate it with "258eafa5-e914-47da-95ca-c5ab0dc85b11" (a special guid specified by rfc 6455) compute sha-1 and base64 hash of the new value write the hash back as the value of "sec-websocket-accept" response header in an http response if (new system.text.regularexpressions.regex("^get").ismatch(data)) { const string eol = "\r\n"; // http/1.1 defines the sequence cr lf as the end-of-
line marker byte[] response = encoding.utf8.getbytes("http/1.1 101 switching protocols" + eol + "connection: upgrade" + eol + "upgrade: websocket" + eol + "sec-websocket-accept: " + convert.tobase64string( system.security.cryptography.sha1.create().computehash( encoding.utf8.getbytes( new system.text.regularexpressions.regex(...
...And 5 more matches
Web APIs
ming apifullscreen apiggamepad api geolocation apihhtml drag and drop apihigh resolution timehistory apiiimage capture apiindexeddbintersection observer apillong tasks api mmedia capabilities api media capture and streamsmedia session apimedia source extensions mediastream recordingnnavigation timingnetwork information api ppage visibility apipayment request apiperformance apiperformance time
line apipermissions apipointer eventspointer lock apiproximity events push api rresize observer apiresource timing apisserver sent eventsservice workers apistoragestorage access apistreams ttouch eventsuurl apivvibration apivisual viewport wweb animationsweb audio apiweb authentication apiweb crypto apiweb notificationsweb storage apiweb workers apiwebglwebrtcwebvttwebxr device apiwebsockets api ...
... a angle_instanced_arrays abortcontroller abortsignal absoluteorientationsensor abstractrange abstractworker accelerometer addresserrors aescbcparams aesctrparams aesgcmparams aeskeygenparams ambientlightsensor analysernode animation animationeffect animationevent animationplaybackevent animationtime
line arraybufferview attr audiobuffer audiobuffersourcenode audioconfiguration audiocontext audiocontextlatencycategory audiocontextoptions audiodestinationnode audiolistener audionode audionodeoptions audioparam audioparamdescriptor audioparammap audioprocessingevent audioscheduledsourcenode audiotrack audiotracklist audioworklet audioworkletglobalscope audioworkletnode audioworkletnodeoption...
...userdata datatransfer datatransferitem datatransferitemlist dedicatedworkerglobalscope delaynode deprecationreportbody devicelightevent devicemotionevent devicemotioneventacceleration devicemotioneventrotationrate deviceorientationevent deviceproximityevent directoryentrysync directoryreadersync displaymediastreamconstraints document documentfragment documentorshadowroot documenttime
line documenttouch documenttype doublerange dragevent dynamicscompressornode e ext_blend_minmax ext_color_buffer_float ext_color_buffer_half_float ext_disjoint_timer_query ext_float_blend ext_frag_depth ext_srgb ext_shader_texture_lod ext_texture_compression_bptc ext_texture_compression_rgtc ext_texture_filter_anisotropic eckeygenparams eckeyimportparams ecdhkeyderiveparams ecdsaparams effecttiming...
...And 5 more matches
Understandable - Accessibility
this article provides practical advice on how to write your web content so that it conforms to the success criteria out
lined in the understandable principle of the web content accessibility guide
lines (wcag) 2.0 and 2.1.
... note: to read the w3c definitions for understandable and its guide
lines and success criteria, see principle 3: understandable — information and the operation of user interface must be understandable.
... guide
line 3.1 — readable: make text content readable and understandable this guide
line focuses on making text content as understandable as possible.
...And 5 more matches
Relationship of grid layout to other layout methods - CSS: Cascading Style Sheets
x solid #ffa94d; border-radius: 5px; background-color: #ffd8a8; padding: 1em; color: #d9480f; } <div class="wrapper"> <div>one</div> <div>two</div> <div>three</div> <div>four</div> <div>five</div> </div> .wrapper { width: 500px; display: flex; flex-wrap: wrap; } .wrapper > div { flex: 1 1 150px; } in the image, you can see that two items have wrapped onto a new
line.
... a common question then is how to make those items
line up.
...if the items wrap onto a new
line, they will work out their spacing based on their size and the available space on that
line.
...And 5 more matches
CSS reference - CSS: Cascading Style Sheets
--webkit-
line-clampa:activeadditive-symbols (@counter-style)::after (:after)align-contentalign-itemsalign-selfall<an-plus-b><angle><angle-percentage>animationanimation-delayanimation-directionanimation-durationanimation-fill-modeanimation-iteration-countanimation-nameanimation-play-stateanimation-timing-function@annotationannotation()attr()b::backdropbackdrop-filterbackface-visibilitybackgroundbackground-attac...
...tart-colorborder-block-start-styleborder-block-start-widthborder-block-styleborder-block-widthborder-bottomborder-bottom-colorborder-bottom-left-radiusborder-bottom-right-radiusborder-bottom-styleborder-bottom-widthborder-collapseborder-colorborder-end-end-radiusborder-end-start-radiusborder-imageborder-image-outsetborder-image-repeatborder-image-sliceborder-image-sourceborder-image-widthborder-in
lineborder-in
line-colorborder-in
line-endborder-in
line-end-colorborder-in
line-end-styleborder-in
line-end-widthborder-in
line-startborder-in
line-start-colorborder-in
line-start-styleborder-in
line-start-widthborder-in
line-styleborder-in
line-widthborder-leftborder-left-colorborder-left-styleborder-left-widthborder-radiusborder-rightborder-right-colorborder-right-styleborder-right-widthborder-spacingborder-s...
...ers()cross-fade()cubic-bezier()::cue::cue-regioncursor<custom-ident>d:defaultdeg<dimension>:dirdirection:disableddisplay<display-box><display-inside><display-internal><display-legacy><display-listitem><display-outside>dpcmdpidppxdrop-shadow()eelement()ellipse()em:emptyempty-cells:enabledenv()exffallback (@counter-style)filter<filter-function>:first:first-child::first-letter (:first-letter)::first-
line (:first-
line):first-of-typefit-content()<flex>flexflex-basisflex-directionflex-flowflex-growflex-shrinkflex-wrapfloat:focusfont@font-facefont-familyfont-family (@font-face)font-feature-settingsfont-feature-settings (@font-face)@font-feature-valuesfont-kerningfont-language-overridefont-optical-sizingfont-sizefont-size-adjustfont-stretchfont-stretch (@font-face)font-stylefont-style (@font-face)font...
...And 5 more matches
background - CSS: Cascading Style Sheets
mdn understanding wcag, guide
line 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 area minus size of background image; size refers to the width for horizontal offsets and to the height for vertical offsetsbackground-size: relative to the background positioning areacomputed valueas each of the properties of the shorthand:background-image: as specified, but with <url> values made absolutebackground-position: a list, each item consisting of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percentagebackground-size: as specified, but with relative lengths converted into absolute lengthsbackground-repeat:...
...)<gradient> = <
linear-gradient()> | <repeating-
linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-im...
...And 5 more matches
border - CSS: Cascading Style Sheets
values <
line-width> sets the thickness of the border.
... <
line-style> sets the style of the border.
...out
lines borders and out
lines are very similar.
...And 5 more matches
box-decoration-break - CSS: Cascading Style Sheets
the box-decoration-break css property specifies how an element's fragments should be rendered when broken across multiple
lines, columns, or pages.
... values slice the element is initially rendered as if its box were not fragmented, after which the rendering for this hypothetical box is sliced into pieces for each
line/column/page.
... note that the hypothetical box can be different for each fragment since it uses its own height if the break occurs in the in
line direction, and its own width if the break occurs in the block direction.
...And 5 more matches
content - CSS: Cascading Style Sheets
/* keywords that cannot be combined with other values */ content: normal; content: none; /* <image> values */ content: url("http://www.example.com/test.png"); content:
linear-gradient(#e66465, #9198e5); /* alt text for generated content, added in the level 3 specification */ content: url("http://www.example.com/test.png") / "this is the alt text"; /* values below can only be applied to generated content using ::before and ::after */ /* <string> value */ content: "prefix"; /* <counter> values */ content: counter(chapter_counter); content: counters(section_counter, "."); /* attr() value linked to the html attribute value */ content: attr(value ...
... accessibility support for css generated content – tink explanation of wcag, guide
line 1.3 – mdn understanding success criterion 1.3.1 | w3c understanding wcag 2.0 formal definition initial valuenormalapplies to::before and ::after pseudo-elementsinheritednocomputed valueon elements, always computes to normal.
...)<gradient> = <
linear-gradient()> | <repeating-
linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()><target-counter()> = target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>?
...And 5 more matches
cross-fade() - CSS: Cascading Style Sheets
the two following are
lines (almost) identical: cross-fade( url(red.png), url(yellow.png), url(blue.png)); /* all three will be 33.3333% opaque */ cross-fade( url(red.png) 33.33%, url(yellow.png) 33.33%, url(blue.png) 33.33%); older, implemented syntax cross-fade( <image, <image>, <percentage> ) the specification for the cross-fade() function allows for multiple images and for each image to have transparency values ind...
... mdn understanding wcag, guide
line 1.1 explanations understanding success criterion 1.1.1 | w3c understanding wcag 2.0 formal syntax cross-fade( <cf-mixing-image> , <cf-final-image>?
...)<gradient> = <
linear-gradient()> | <repeating-
linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()><rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
...And 5 more matches
CSP: style-src-elem - HTTP
'unsafe-hashes' allows enabling specific in
line event handlers.
... if you only need to allow in
line event handlers and not in
line <script> elements or javascript: urls, this is a safer method than using the unsafe-in
line expression.
... 'unsafe-in
line' allows the use of in
line resources, such as in
line <script> elements, javascript: urls, in
line event handlers, and in
line <style> elements.
...And 5 more matches
CSP: worker-src - HTTP
'unsafe-hashes' allows to enable specific in
line event handlers.
... if you only need to allow in
line event handlers and not in
line <script> elements or javascript: urls, this is a safer method compared to using the unsafe-in
line expression.
... 'unsafe-in
line' allows the use of in
line resources, such as in
line <script> elements, javascript: urls, in
line event handlers, and in
line <style> elements.
...And 5 more matches
A typical HTTP session - HTTP
a client request consists of text directives, separated by crlf (carriage return, followed by
line feed), divided into three blocks: the first
line contains a request method followed by its parameters: the path of the document, i.e.
... an absolute url without the protocol or domain name the http protocol version subsequent
lines represent an http header, giving the server information about what type of data is appropriate (e.g., what language, what mime types), or other data altering its behavior (e.g., not sending an answer if it is already cached).
... these http headers form a block which ends with an empty
line.
...And 5 more matches
Introduction - JavaScript
in contrast, javascript descends in spirit from a
line of smaller, dynamically typed languages such as hypertalk and dbase.
...javascript supports all functionality out
lined in the ecmascript specification.
... the web console tool built into firefox is useful for experimenting with javascript; you can use it into two modes: single-
line input mode, and multi-
line input mode.
...And 5 more matches
Assertions - JavaScript
assertions include boundaries, which indicate the beginnings and endings of
lines and words, and other patterns indicating in some way that a match is possible (including look-ahead, look-behind, and conditional expressions).
...if the multi
line flag is set to true, also matches immediately after a
line break character.
...if the multi
line flag is set to true, also matches immediately before a
line break character.
...And 5 more matches
Regular expression syntax cheatsheet - JavaScript
has one of the following meanings: matches any single character except
line terminators: \n, \r, \u2028 or \u2029.
... note that the m multi
line flag doesn't change the dot behavior.
... so to match a pattern across multiple
lines, the character set [^] can be used — it will match any character including new
lines.
...And 5 more matches
x1 - SVG: Scalable Vector Graphics
two elements are using this attribute: <
line>, and <
lineargradient> html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <
line x1="1" x2="5" y1="1" y2="9" stroke="red" /> <
line x1="5" x2="5" y1="1" y2="9" stroke="green" /> <
line x1="9" x2="5" y1="1" y2="9" stroke="blue" /> </svg>
line for <
line>, x1 defines the x coordinate of the starting point of the
line.
... value <length> | <percentage> default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <
line x1="1" x2="5" y1="1" y2="9" stroke="red" /> <
line x1="5" x2="5" y1="1" y2="9" stroke="green" /> <
line x1="9" x2="5" y1="1" y2="9" stroke="blue" /> </svg>
lineargradient for <
lineargradient>, x1 defines the x coordinate of the starting point of the gradient vector used to map the gradient stop values.
...xact behavior of this attribute is influenced by the gradientunits attributs value <length> | <percentage> default value 0% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by default the gradient vector start at the left bounding limit of the shape it is applied to --> <
lineargradient x1="0%" id="g0"> <stop offset="0" stop-color="black" /> <stop offset="100%" stop-color="red" /> </
lineargradient> <rect x="1" y="1" width="8" height="8" fill="url(#g0)" /> <!-- here the gradient vector start at 80% of the left bounding limit of the shape it is applied to --> <
lineargradient x1="80%" id="g1"> <stop offset="0" stop-color="black" /> ...
...And 5 more matches
x2 - SVG: Scalable Vector Graphics
two elements are using this attribute: <
line>, and <
lineargradient> html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <
line x1="5" x2="1" y1="1" y2="9" stroke="red" /> <
line x1="5" x2="5" y1="1" y2="9" stroke="green" /> <
line x1="5" x2="9" y1="1" y2="9" stroke="blue" /> </svg>
line for <
line>, x2 defines the x coordinate of the ending point of the
line.
... value <length> | <percentage> default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <
line x1="5" x2="1" y1="1" y2="9" stroke="red" /> <
line x1="5" x2="5" y1="1" y2="9" stroke="green" /> <
line x1="5" x2="9" y1="1" y2="9" stroke="blue" /> </svg>
lineargradient for <
lineargradient>, x2 defines the x coordinate of the ending point of the gradient vector used to map the gradient stop values.
...act behavior of this attribute is influenced by the gradientunits attributs value <length> | <percentage> default value 100% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by default the gradient vector end at the right bounding limit of the shape it is applied to --> <
lineargradient x2="100%" id="g0"> <stop offset="0" stop-color="black" /> <stop offset="100%" stop-color="red" /> </
lineargradient> <rect x="1" y="1" width="8" height="8" fill="url(#g0)" /> <!-- here the gradient vector start at 20% of the left bounding limit of the shape it is applied to --> <
lineargradient x2="20%" id="g1"> <stop offset="0" stop-color="black" /> ...
...And 5 more matches
y1 - SVG: Scalable Vector Graphics
two elements are using this attribute: <
line>, and <
lineargradient> html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <
line x1="1" x2="9" y1="1" y2="5" stroke="red" /> <
line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <
line x1="1" x2="9" y1="9" y2="5" stroke="blue" /> </svg>
line for <
line>, y1 defines the y coordinate of the starting point of the
line.
... value <length> | <percentage> default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <
line x1="1" x2="9" y1="1" y2="5" stroke="red" /> <
line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <
line x1="1" x2="9" y1="9" y2="5" stroke="blue" /> </svg>
lineargradient for <
lineargradient>, y1 defines the y coordinate of the starting point of the gradient vector used to map the gradient stop values.
... --> <
lineargradient y1="0%" id="g0"> <stop offset="5%" stop-color="black" /> <stop offset="50%" stop-color="red" /> <stop offset="95%" stop-color="black" /> </
lineargradient> <rect x="1" y="1" width="8" height="8" fill="url(#g0)" /> <!-- here the gradient vector start at the bottom left corner of the bounding box of the shape it is applied to.
...And 5 more matches
y2 - SVG: Scalable Vector Graphics
two elements are using this attribute: <
line>, and <
lineargradient> html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <
line x1="1" x2="9" y1="5" y2="1" stroke="red" /> <
line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <
line x1="1" x2="9" y1="5" y2="9" stroke="blue" /> </svg>
line for <
line>, y2 defines the y coordinate of the ending point of the
line.
... value <length> | <percentage> default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <
line x1="1" x2="9" y1="5" y2="1" stroke="red" /> <
line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <
line x1="1" x2="9" y1="5" y2="9" stroke="blue" /> </svg>
lineargradient for <
lineargradient>, y2 defines the y coordinate of the ending point of the gradient vector used to map the gradient stop values.
... --> <
lineargradient y2="0%" id="g0"> <stop offset="5%" stop-color="black" /> <stop offset="50%" stop-color="red" /> <stop offset="95%" stop-color="black" /> </
lineargradient> <rect x="1" y="1" width="8" height="8" fill="url(#g0)" /> <!-- here the gradient vector end at the bottom right corner of the bounding box of the shape it is applied to.
...And 5 more matches
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
the first one looks like a traditional dhtml ticker application and uses hidden iframes and javascript to provide updates inside the webpage's ticker head
lines section.
...the second example shows a tabbed menu that dynamically loads news head
lines into the current web page.
...example using javascript's xmlhttprequest and dom interfaces: tabbed menu for head
lines this example demonstrates an implementation using xmlhttprequest interfaces.
...And 4 more matches
Using XML Data Islands in Mozilla - Archive of obsolete content
internet explorer had an "xml data islands" feature that allows web authors include xml data in
line in html documents using the <xml> tag.
...for example, a simple xml purchase order can be embedded like this: <script id="purchase-order" type="application/xml"> <purchaseorder xmlns="http://example.mozilla.org/purchaseorderml"> <
lineitem> <name>
line item 1</name> <price>1.25</price> </
lineitem> <
lineitem> <name>
line item 2</name> <price>2.48</price> </
lineitem> </purchaseorder> </script> the xml source text can then be retrieved like this: var ordersource = document.getelementbyid("purchase-order").textcontent; the xml source text can be parsed into a dom tree using the domparser api: var parser = new ...
...here is a complete demo (also available as an attachment): <!doctype html> <html> <head> <title>xml data block demo</title> <script id="purchase-order" type="application/xml"> <purchaseorder xmlns="http://example.mozilla.org/purchaseorderml"> <
lineitem> <name>
line item 1</name> <price>1.25</price> </
lineitem> <
lineitem> <name>
line item 2</name> <price>2.48</price> </
lineitem> </purchaseorder> </script> <script> function rundemo() { var ordersource = document.getelementbyid("purchase-order").textcontent; var parser = new domparser(); var doc = parser.parsefromstring(ordersource, "application/xml"); var
lineitems...
...And 4 more matches
Using Breakpoints in Venkman - Archive of obsolete content
when a script is loaded that matches the url of a future breakpoint, and has executable code at the specified
line, venkman will automatically set a future breakpoint.
...the dots you see in the left margin of the source code view indicate which
lines contain executable code, places where a hard breakpoint can be set.
... setting breakpoints clicking on one of these dots in the source code view will set a breapoint at that
line.
...And 4 more matches
Using XPInstall to Install Plugins - Archive of obsolete content
this article presents a guide
line for improving the plugin installation experience for netscape gecko browsers using xpinstall.
...the benefit of using xpinstall is to provide a stream
lined installation mechanism.
...not all the work needs to be done in javascript -- if you have a native installer (exe) that recognizes netscape gecko browsers, and you merely wish to wrap the exe installer in an xpi package for a stream
lined delivery to the client, you can easily do so.
...And 4 more matches
Broadcasters and Observers - Archive of obsolete content
a broadcaster would be used to hold, for instance, a flag to indicate whether the user was on
line or not.
...in the latter case, various user interface elements might need to update when the user switches from off
line mode to on
line mode.
... <broadcasterset> <broadcaster id="isoff
line" label="off
line"/> </broadcasterset> any elements that are watching the broadcaster will be modified automatically whenever the broadcaster has its label attribute changed.
...And 4 more matches
CSS property compatibility table for form controls - Learn web development
line-height this property is supported inconsistently across browsers and you should avoid it.
... font yes yes see the note about
line-height letter-spacing yes yes text-align yes yes text-decoration partial partial see the note about opera text-indent partial[1] partial[1] ie9 supports this property only on <textarea>s, whereas opera only supports it on single
line text fields.
... text and font color yes yes font yes yes see the note about
line-height.
...And 4 more matches
Test your skills: HTML text basics - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
...try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
...And 4 more matches
Test your skills: Links - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... you'll get a bonus point if you also set it so that the subject
line of the email is automatically filled in as "question about whales".
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
...And 4 more matches
Fetching data from the server - Learn web development
add the following
lines inside your updatedisplay() function: verse = verse.replace(" ", ""); verse = verse.tolowercase(); let url = verse + '.txt'; to begin creating an xhr request, you need to create a new request object using the xmlhttprequest() constructor.
...add the following below your previous
lines inside your updatedisplay() function: let request = new xmlhttprequest(); next, you need to use the open() method to specify what http request method to use to request the resource from the network, and what its url is.
...add this below your previous
line: request.open('get', url); next, we'll set the type of response we are expecting — which is defined by the request's responsetype property — as text.
...And 4 more matches
Third-party APIs - Learn web development
you'll find a
line similar to the following in the mapquest api example: l.mapquest.key = 'your-api-key-here'; this
line specifies an api or developer key to use in your application — the developer of the application must apply to get a key, and then include it in their code to be allowed access to the api's functionality.
...to do this, find the following
line: layers: l.mapquest.tilelayer('map') try changing 'map' to 'hybrid' to show a hybrid-style map.
... find the following
line: let key = ' ...
...And 4 more matches
Test your skills: Strings - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
...And 4 more matches
Adding features to our bouncing balls demo - Learn web development
you could paste the html, css and javascript into one of these on
line editors.
... if the on
line editor you are using doesn't have separate javascript/css panels, feel free to put them in
line <script>/<style> elements inside the html page.
...you should then make the following changes: we want the evil circle to not be filled in, but rather just have an outer
line (stroke).
...And 4 more matches
Beginning our React todo list - Learn web development
prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command
line.
... implementing our styles paste the following css code into src/index.css so that it replaces what's currently there: /* resets */ *, *::before, *::after { box-sizing: border-box; } *:focus { out
line: 3px dashed #228bec; out
line-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: inheri...
...t; -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; } @media screen and (min-width: 620px) { body { font-size: 1.9rem;
line-height: 1.31579; } } /*end resets*/ /* global styles */ .form-group > input[type="text"] { display: in
line-block; margin-top: 0.4rem; } .btn { padding: 0.8rem 1rem 0.7rem; border: 0.2rem solid #4d4d4d; cursor: pointer; text-transform: capitalize; } .btn.toggle-btn { border-width:...
...And 4 more matches
Handling common accessibility problems - Learn web development
read accessibility guide
lines and the law for more information.
...examples include: wave: a rather nice on
line accessibility testing tool that accepts a web address and returns a useful annotated view of that page with accessibility problems highlighted.
... tenon: another nice on
line tool that goes through the code at a provided url and returns results on accessibility errors including metrics, specific errors along with the wcag criteria they affect, and suggested fixes.
...And 4 more matches
Introduction to automated testing - Learn web development
create a new directory somewhere sensible using your file manager ui, or, on a command
line, by navigating to the location you want and running the following command: mkdir node-test to make this directory an npm project, you just need to go inside your test directory and initialize it, with the following: cd node-test npm init this second command will ask you many questions to find out the information required to set up the project; you can just select the defaults for now.
... html-tidy install using the following
line: npm install --save-dev gulp-htmltidy note: --save-dev adds the package as a dependency to your project.
... autoprefixer and css-lint install using the following
lines: npm install --save-dev gulp-autoprefixer npm install --save-dev gulp-csslint add the following dependencies to gulpfile.js: const autoprefixer = require('gulp-autoprefixer'); const csslint = require('gulp-csslint'); add the following test to the bottom of gulpfile.js: function css(cb) { return gulp.src('src/style.css') .pipe(csslint()) .pipe(csslint.formatter('co...
...And 4 more matches
Deploying our app - Learn web development
netlify gives us hosting or more specifically, a url to view your project on
line and to share it with your friends, family, and colleagues.
...add the following
line to your project now: "scripts": { ...
... committing changes to github this section will get you over the
line to storing your code in a git repository, but it is a far cry from a git tutorial.
...And 4 more matches
Gecko info for Windows accessibility vendors
event_scrollingend is used to indicate when a document has scrolled, even if only 1
line.
... positional descriptions are supported the accdescription field is overriden for the following roles: role_listitem, role_menuitem, role_radiobutton, role_pagetab and role_out
lineitem for everything other than out
line item, the positional description is in the form "n of m" where n is an integer indicating the position within other similar objects in a group, and m represents the number of objects in that group.
... for out
line item, more information is provided, in a format that reads "l#, n of m with c" where # represents the level that the out
line item is at, and c represents the number of children.
...And 4 more matches
Debugging Frame Reflow
enter this
line in the text file * 1 this should look like: point the gecko_display_reflow_rules_file environment variable to the path of the reflow_rules.txt file.
...d8 r=0 a=0,0 c=1500,uc cnt=884 col 02d7c0d8 d=0,0 colg 02d7bfb0 d=0,0 tbl 02d7b7ec d=1500,390 tblo 02d7b5f0 d=1500,390 text 02d7c130 r=0 a=8940,uc c=uc,uc cnt=885 text 02d7c130 d=0,0 block 02d7b210 d=8940,390 area 02d7afe4 d=9180,630 canvas 00b97c6c d=9180,4470 scroll 00b97ee0 d=9180,4470 scroll 00b97ee0 d=9180,4470 vp 00b97c30 d=9180,4470 the first
line shows the reflow of the viewport (vp).
...the
line count is 856 (cnt=856).
...And 4 more matches
Debugging on Mac OS X
at this point you can run the application from xcode, and when you pause or hit breakpoints it should show open the correct source file at the correct
line.
...if you don't include the mozilla's .lldbinit, you must at least put settings set target.in
line-breakpoint-strategy always in your $home/.lldbinit as recommended on debugging mozilla with lldb.
... if you are using lldb on the command
line (independently of xcode) and you will always run it from either the top source directory, the object directory or else the dist/bin subdirectory of the object directory, then adding the following setting to your $home/.lldbinit is sufficient: settings set target.load-cwd-lldbinit true however, if you will run lldb from a different directory, or if you will be running it indirectly by debugging in xcode (xcode always runs lldb from "/"), then this setting will not help you.
...And 4 more matches
Eclipse CDT
set an initial heap space of 1 gb and max heap space of 5 gb, say, by modifying the values of the following two
lines in eclipse.ini: -xms1g -xmx5g if you fail to increase these limits, then you will likely find that eclipse either hangs when it tries to index the mozilla source or else that the code intelligence is very broken after the indexing "completes".
... the benefit of building from inside eclipse is that build errors will appear in the problems tab at the bottom of the window, and from there you can double click on the build error and it will take you straight to the source file and
line where the problem occurred.
... for this to work reliably though, you still need to build using slow -j1 -w builds, so that make outputs non-interleaved "entering"/"leaving"
lines.
...And 4 more matches
Commenting IDL for better documentation
but by following the guide
lines here, you can help make sure that our tools can generate a "good start" version of the documentation for your interfaces, and that the writers will be able to easily figure out what the tools are not able to do automatically.
... comment format doxygen supports several comment formats; for style and consistency reasons, we use the following: /** * */ note the two asterisks ("**") on the first
line of the comment.
...used at the beginning of a comment
line to indicate an unordered list item.
...And 4 more matches
IME handling guide
for example, if a user types "watasinonamaehanakanodesu", it's converted to hiragana characters, "わたしのなまえはなかのです", automatically (in the following screenshots, the composition string has a wavy under
line and the only one clause is called "raw input clause").
...then, converts each clause with chinese characters: "私の", "名前は" and "中野です" (in the following screenshot each clause is under
lined and not connected adjacently.
... if one or more clauses were not converted as expected, the user can choose one of the clauses with arrow keys and look for the expected result form the list in the drop down menu (in the following screenshot, the clause with the thicker under
line is called "selected clause").
...And 4 more matches
Creating localizable web applications
if you are using pure html instead of gettext to localize your webapp, consider using an additional gettext-like format such as .lang to stream
line localizers' work with repeating content.
...put comments in the same
line as the gettext function call (in
line comments, in php these are /* ...
... */), or one
line directly above the gettext function call (block comments, in php they start with # ...
...And 4 more matches
MathML Accessibility in Mozilla
x plus y enclosed by: a circle x + y circle enclosed x+y __________
line left of x plus y end
line __________ not supported.
... x plus y enclosed by: a
line on the left x + y left enclosed x+y __________
line right of x plus y end
line __________ not supported.
... x plus y enclosed by: a
line on the right x + y right enclosed x+y __________
line above x plus y end
line __________ not supported.
...And 4 more matches
NSPR Contributor Guide
nspr wishes to document some guide
lines for those who would contribute to nspr.
... these guide
lines should help the contributor in crafting his contribution, increasing its likelihood for acceptance.
... general guide
lines downward compatibility because many different applications, besides the mozilla client, use the nspr api, the api must remain downward compatible across even major releases.
...And 4 more matches
Utilities for nss samples
rn prbool checkpassword(char *cp); /* * getpassword */ extern char * getpassword(file *input, file *output, char *prompt, prbool (*ok)(char *)); /* * filepasswd extracts the password from a text file * * storing passwords is often used with server environments * where prompting the user for a password or requiring it * to be entered in the commnd
line is not a feasible option.
...in the single password * case a
line would just have the passord whereas in the multi- * password variant they could be of the form * * token_1_name:its_password * token_2_name:its_password * */ extern char * filepasswd(pk11slotinfo * slot, prbool retry, void *arg); /* * getmodulepassword */ extern char * getmodulepassword(pk11slotinfo *slot, int retry, void *pwdata); /* * generaterandom */ extern secstatus generaterandom(unsigned char *rbuf, int rsize); /* * filetoitem */ extern secstatus filetoitem(secitem *dst, prfiledesc *src); /* * seedfromnoisefile */ extern sec...
... */ /* * new
line */ static void new
line(prfiledesc* out) { pr_fprintf(out, "\n"); } /* * printasascii */ void printasascii(prfiledesc* out, const unsigned char *data, unsigned int len) { char *b64data = null; b64data = btoa_datatoascii(data, len); pr_fprintf(out, "%s", b64data); pr_fprintf(out, "\n"); if (b64data) { port_free(b64data); } } /* * printashex */ void printa...
...And 4 more matches
JSAPI Cookbook
// javascript throw exc; /* jsapi */ js_setpendingexception(cx, exc); return false; when js_reporterror creates a new error object, it sets the filename and
linenumber properties to the
line of javascript code currently at the top of the stack.
... this is usually the
line of code that called your native function, so it's usually what you want.
... jsapi code can override this by creating the error object directly and passing additional arguments to the constructor: // javascript throw new error(message, filename,
lineno); /* jsapi */ bool throwerror(jscontext *cx, jsobject *global, const char *message, const char *filename, int32
lineno) { jsstring *messagestr; jsstring *filenamestr; js::value args[3]; js::value exc; messagestr = js_newstringcopyz(cx, message); if (!messagestr) return false; filenamestr = js_newstringcopyz(cx, filename); if (!filenamestr) return false; args[0] = string_to_jsval(messagestr); args[1] = string_to_jsval(filenamestr); args[2] = int_to_jsval(
lineno); if (js_callfunctionname(cx, global, "error", 3, args, &exc)) js_set...
...And 4 more matches
Observer Notifications
profile-change-net-teardown the network connection is going off
line at this point.
... topic description off
line-requested called to query whether the application can go off
line.
... the attempt to go off
line can be canceled.
...And 4 more matches
nsIMsgFolder
lder(in astring foldername, in nsimsgwindow msgwindow); nsimsgfolder addsubfolder(in astring foldername); void createstorageifmissing(in nsiurllistener urllistener); void compact(in nsiurllistener alistener, in nsimsgwindow amsgwindow); void compactall(in nsiurllistener alistener, innsimsgwindow amsgwindow,in nsisupportsarray afolderarray, in boolean acompactoff
linealso,in nsisupportsarray aoff
linefolderarray); void compactalloff
linestores(in nsimsgwindow amsgwindow,in nsisupportsarray aoff
linefolderarray); void emptytrash(in nsimsgwindow amsgwindow, in nsiurllistener alistener); void rename(in astring name, in nsimsgwindow msgwindow); void renamesubfolders( in nsimsgwindow msgwindow, in nsimsgfolder oldfolder); a...
... thread); void setlabelformessages(in nsisupportsarray messages, in nsmsglabelvalue label); nsimsgdatabase getmsgdatabase(in nsimsgwindow msgwindow); void setmsgdatabase(in nsimsgdatabase msgdatabase); nsimsgdatabase getdbfolderinfoanddb(out nsidbfolderinfo folderinfo); nsimsgdbhdr getmessageheader(in nsmsgkey msgkey); boolean shouldstoremsgoff
line(in nsmsgkey msgkey); boolean hasmsgoff
line(in nsmsgkey msgkey); nsiinputstream getoff
linefilestream(in nsmsgkey msgkey, out pruint32 offset, out pruint32 size); void downloadmessagesforoff
line(in nsisupportsarray messages, in nsimsgwindow window); nsimsgfolder getchildwithuri(in acstring uri, in boolean deep, in boolean caseinsensitive); void downloada...
...llforoff
line(in nsiurllistener listener, in nsimsgwindow window); void enablenotifications(in long notificationtype, in boolean enable, in boolean dbbatching); boolean iscommandenabled(in acstring command); boolean matchorchangefilterdestination(in nsimsgfolder folder,in boolean caseinsensitive); boolean confirmfolderdeletionforfilter(in nsimsgwindow msgwindow); void alertfilterchanged(in nsimsgwindow msgwindow); void throwalertmsg(in string msgname, in nsimsgwindow msgwindow); astring getstringwithfoldernamefrombundle(in string msgname); void notifycompactcompleted(); long comparesortkeys(in nsimsgfolder msgfolder); [noscript] void getsortkey(out octet_ptr key, out unsigned long length); boolean...
...And 4 more matches
nsISelectionController
boolean checkvisibility(in nsidomnode node, in short startoffset, in short endoffset); void completemove(in boolean forward, in boolean extend); void completescroll(in boolean forward); boolean getcaretenabled(); short getdisplayselection(); nsiselection getselection(in short type); void intra
linemove(in boolean forward, in boolean extend); void
linemove(in boolean forward, in boolean extend); void pagemove(in boolean forward, in boolean extend); void repaintselection(in short type); void scrollhorizontal(in boolean left); void scroll
line(in boolean forward); void scrollpage(in boolean forward);...
...intra
linemove() will move the selection to the front of the
line or end of the
line in the document.
...void intra
linemove( in boolean forward, in boolean extend ); parameters forward forward or backward if pr_false.
...And 4 more matches
nsISupportsArray
inherits from: nsicollection last changed in gecko 1.7 method overview boolean appendelements(in nsisupportsarray aelements); violates the xpcom interface guide
lines nsisupportsarray clone(); void compact(); void deleteelementat(in unsigned long aindex); void deletelastelement(in nsisupports aelement); nsisupports elementat(in unsigned long aindex); violates the xpcom interface guide
lines boolean enumeratebackwards(in nsisupportsarrayenumfunc afunc, in voidptr adata); violates the xpcom interface guide
lines boolean enumerateforwards(in nsisupportsarrayenumfunc afunc, in voidptr adata); violates the xpcom interface guide
lines boolean equals([const] in nsisupportsarray other); violate...
...s the xpcom interface guide
lines long getindexof(in nsisupports apossibleelement); long getindexofstartingat(in nsisupports apossibleelement, in unsigned long astartindex); long getlastindexof(in nsisupports apossibleelement); long indexof([const] in nsisupports apossibleelement); violates the xpcom interface guide
lines long indexofstartingat([const] in nsisupports apossibleelement, in unsigned long astartindex); violates the xpcom interface guide
lines boolean insertelementat(in nsisupports aelement, in unsigned long aindex); violates the xpcom interface guide
lines boolean insertelementsat(in nsisupportsarray aother, in unsigned long aindex); violates the xpcom interface guide
lines long lastindexof([const] in nsisupports apossibleelement); violates the xpcom interface guide
line...
...s boolean moveelement(in long afrom, in long ato); violates the xpcom interface guide
lines boolean removeelementat(in unsigned long aindex); violates the xpcom interface guide
lines boolean removeelementsat(in unsigned long aindex, in unsigned long acount); violates the xpcom interface guide
lines boolean removelastelement([const] in nsisupports aelement); violates the xpcom interface guide
lines boolean replaceelementat(in nsisupports aelement, in unsigned long aindex); violates the xpcom interface guide
lines boolean sizeto(in long asize); violates the xpcom interface guide
lines methods violates the xpcom interface guide
lines appendelements() boolean appendelements( in nsisupportsarray aelements ); parameters aelements return value clone() nsisupportsarray clone(); p...
...And 4 more matches
XPIDL Syntax
lexically, tokens are delimited by whitespace (defined here as spaces, tabs, vertical tabs, form feeds,
line feeds, and carriage returns, or [ \t\v\f\r\n] in regular expression form).
... libidl only considers a single
line feed as a new
line, and not carriage returns (although xpidl begs to differ).
...end-of-
line) comments are permitted between any two tokens.
...And 4 more matches
Version, UI, and Status Information - Plugins
« previousnext » this chapter describes the functions that allow a plug-in to display a message on the status
line, get agent information, and check on the current version of the plug-in api and the browser.
... displaying a status
line message users are accustomed to checking the ui status
line at the bottom of the browser window for updates on the progress of an operation or the url of a link on the page.
... you can also use the status
line to notify the user of plug-in-related information.
...And 4 more matches
Index - Firefox Developer Tools
118 access debugging in add-ons the following items are accessible in the context of chrome://browser/content/debugger.xul (or, in version 23 beta, chrome://browser/content/devtools/debugger.xul): 119 breaking on exceptions when an exception occurs, the
line where it occurs is highlighted in the source pane, with a squiggly red
line under the problematic code.
... 129 set a conditional breakpoint conditional, debugger, debugging, devtools, developer tools, firefox, guide, javascript debugging, tools, wm, breakpoint a normal breakpoint is just associated with a
line: when the program reaches that
line, the debugger pauses.
...when the program reaches the
line, the debugger pauses only if the breakpoint's specified expression evaluates to true.
...And 4 more matches
Work with animations - Firefox Developer Tools
this article covers three tools you can use to visualize and edit animations: the animation inspector editing @keyframes editing timing functions animation inspector the page inspector's animations view displays animations in the page synchronized along a time
line, with a draggable widget you can use to move to any point in the time
line and see the page at that point.
... right-click in the box and select "inspect element" make sure the selected element is the <div class="channel"> switch over to the "animations" tab play the animation let's take a closer look at the contents of the animation inspector here: it shows a synchronized time
line for every animation applied to the selected element or its children.
... the time
line starts at the start of the first animation, ends at the end of the last animation, and is labeled with markers every 250 milliseconds (this depends on the time scale of the animations currently displayed).
...And 4 more matches
Content Index API - Web APIs
the content index api allows developers to register their off
line enabled content with the browser.
... concepts and usage as it stands, off
line web content is not easily discoverable by users.
... content indexing allows developers to tell the browser about their specific off
line content.
...And 4 more matches
HTMLIFrameElement - Web APIs
the htmliframeelement interface provides special properties and methods (beyond those of the htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of in
line frame elements.
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line points="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none"/><...
...And 4 more matches
HTMLVideoElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" ...
.../><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line points="491,25 501,20 501,30 491,25" strok...
...And 4 more matches
Using IndexedDB - Web APIs
because it lets you create web applications with rich query abilities regardless of network availability, your applications can work both on
line and off
line.
... creating and structuring the store using an experimental version of indexeddb in case you want to test your code in browsers that still use a prefix, you can use the following code: // in the following
line, you should include the prefixes of implementations you want to test.
...// moreover, you may need references to some window.idb* objects: window.idbtransaction = window.idbtransaction || window.webkitidbtransaction || window.msidbtransaction || {read_write: "readwrite"}; // this
line should only be needed if it is needed to support the object's constants for older browsers window.idbkeyrange = window.idbkeyrange || window.webkitidbkeyrange || window.msidbkeyrange; // (mozilla has never prefixed these objects, so we don't need window.mozidb*) beware that implementations that use a prefix may be buggy, or incomplete, or following an old version of the specification.
...And 4 more matches
SVGSVGElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-f...
...amily="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line points="481,25 491,20 491,30 481,25" stroke="#d4dde4" fill="none"/><
line x1="491" y1="25" ...
...And 4 more matches
Using the Web Speech API - Web APIs
your audio is sent to a web service for recognition processing, so it won't work off
line.
... chrome support as mentioned earlier, chrome currently supports speech recognition with prefixed properties, therefore at the start of our code we include these
lines to feed the right objects to chrome, and any future implementations that might support the features without a prefix: var speechrecognition = speechrecognition || webkitspeechrecognition var speechgrammarlist = speechgrammarlist || webkitspeechgrammarlist var speechrecognitionevent = speechrecognitionevent || webkitspeechrecognitionevent the grammar the next part of our code defines the gramm...
...however, for now let's just run through it quickly: the
lines are separated by semi-colons, just like in javascript.
...And 4 more matches
WorkerGlobalScope - Web APIs
this object enables functionality such as storing assets for off
line use, and generating custom responses to requests.
... off
line fired when the browser has lost access to the network and the value of navigator.on
line switched to false.
... also available via the workerglobalscope.onoff
line property.
...And 4 more matches
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
screen magnifiers will zoom to the focus, keeping it on the screen at all times, or even allow the user to enter a special low vision document reading mode, with a variety of features such as ticker mode where text is streamed on a single
line.
...for example, screen readers look for screen draws of a vertical blinking
line, to determine the location of the caret.
... get_acckeyboardshortcut: what is the keyboard shortcut for this iaccessible (under
lined alt+combo mnemonic) get_accfocus: which child is focused?
...And 4 more matches
-webkit-box-reflect - CSS: Cascading Style Sheets
/* direction values */ -webkit-box-reflect: above; -webkit-box-reflect: below; -webkit-box-reflect: left; -webkit-box-reflect: right; /* offset value */ -webkit-box-reflect: below 10px; /* mask value */ -webkit-box-reflect: below 0
linear-gradient(transparent, white); /* global values */ -webkit-box-reflect: inherit; -webkit-box-reflect: initial; -webkit-box-reflect: unset; note: this feature is not intended to be used by web sites.
...)<gradient> = <
linear-gradient()> | <repeating-
linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-im...
...&& <image><cf-final-image> = <image> | <color><
linear-gradient()> =
linear-gradient( [ <angle> | to <side-or-corner> ]?
...And 4 more matches
OpenType font features guide - CSS: Cascading Style Sheets
in addition to broad feature sets like ligatures or lining figures (numerals that
line up evenly as opposed to 'oldstyle', which look more like lower-case letters), there are also very specific ones such as stylistic sets (which might include several specific variants of glyphs meant to be used together), alternates (which might be one or more variants of the letter 'a'), or even language-specific alterations for east asian languages.
... 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.
... try changing the
line font-variant-alternates: styleset(alt-a); to font-variant-alternates: styleset(alt-g); and notice that the lower case 'a' reverts to its regular form and the lower case 'g' changes instead.
...And 4 more matches
Column layouts - CSS: Cascading Style Sheets
multiple rows of columns
lined up by row and column.
...these new flex
lines will distribute space along that
line only — the items in the new
line will not
line up with items in the
line above, as you'll see in the example below.
... when you are happy for wrapped items to share out space along their
line only and not
line up with items in other
lines.
...And 4 more matches
Cubic Bezier Generator - CSS: Cascading Style Sheets
in(canvas.height - rulers - margin, canvas.width - rulers - margin); canvas.onmousedown = mousedown; canvas.onmouseup = mouseup; } else { alert('you need safari or firefox 1.5+ to see this demo.'); } } function cx(x) { return x * scaling + rulers; } function reversex(x) { return (x - rulers) / scaling; } function lx(x) { //used when drawing vertical
lines to prevent subpixel blur var result = cx(x); return math.round(result) == result ?
... result + 0.5 : result; } function cy(y) { return (1 - y) * scaling + margin; } function reversey(y) { return (margin - y) / scaling + 1; } function ly(y) { // used when drawing horizontal
lines to prevent subpixel blur var result = cy(y); return math.round(result) == result ?
... canvas isn't supported if (canvas.getcontext) { // use getcontext to use the canvas for drawing var ctx = canvas.getcontext('2d'); // clear canvas ctx.clearrect(0, 0, canvas.width, canvas.height); // draw the rulers ctx.beginpath(); ctx.strokestyle = "black"; // draw the y axis ctx.moveto(cx(0), cy(0)); ctx.
lineto(cx(1), cy(0)); ctx.textalign = "right"; for (var i = 0.1; i <= 1; i = i + 0.1) { ctx.moveto(-basic_scale_size + cx(0), ly(i)); if ((i == 0.5) || (i > 0.9)) { ctx.moveto(-2 * basic_scale_size + cx(0), ly(i)); ctx.filltext(math.round(i * 10) / 10, -3 * basic_scale_size + cx(0), cy(i) + 4); // limitation the c...
...And 4 more matches
border-image-source - CSS: Cascading Style Sheets
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.
...)<gradient> = <
linear-gradient()> | <repeating-
linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-im...
...&& <image><cf-final-image> = <image> | <color><
linear-gradient()> =
linear-gradient( [ <angle> | to <side-or-corner> ]?
...And 4 more matches
<gradient> - CSS: Cascading Style Sheets
linear gradient
linear gradients transition colors progressively along an imaginary
line.
... they are generated with the
linear-gradient() function.
...they are generated with the repeating-
linear-gradient() and repeating-radial-gradient() functions.
...And 4 more matches
mask-border-source - CSS: Cascading Style Sheets
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.
...)<gradient> = <
linear-gradient()> | <repeating-
linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-im...
...&& <image><cf-final-image> = <image> | <color><
linear-gradient()> =
linear-gradient( [ <angle> | to <side-or-corner> ]?
...And 4 more matches
mask-image - CSS: Cascading Style Sheets
/* 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.
...)<gradient> = <
linear-gradient()> | <repeating-
linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()>where <image-tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-im...
...&& <image><cf-final-image> = <image> | <color><
linear-gradient()> =
linear-gradient( [ <angle> | to <side-or-corner> ]?
...And 4 more matches
overflow-wrap - CSS: Cascading Style Sheets
the overflow-wrap css property applies to in
line elements, setting whether the browser should insert
line breaks within an otherwise unbreakable string to prevent text from overflowing its
line box.
... note: in contrast to word-break, overflow-wrap will only create a break if an entire word cannot be placed on its own
line without overflowing.
... values normal
lines may only break at normal word break points (such as a space between two words).
...And 4 more matches
place-items - CSS: Cascading Style Sheets
the css place-items shorthand property allows you to align items along both the block and in
line directions at once (i.e.
... align-items justify-items syntax /* keyword values */ place-items: auto center; place-items: normal start; /* positional alignment */ place-items: center normal; place-items: start auto; place-items: end normal; place-items: self-start auto; place-items: self-end normal; place-items: flex-start auto; place-items: flex-end normal; place-items: left auto; place-items: right normal; /* base
line alignment */ place-items: base
line normal; place-items: first base
line auto; place-items: last base
line normal; place-items: stretch auto; /* global values */ place-items: inherit; place-items: initial; place-items: unset; values auto the value used is the value of the justify-items property of the parents box, unless the box has no parent, or is absolutely positioned, in these cases, auto...
...if the property’s axis is not parallel with the in
line axis, this value behaves like start.
...And 4 more matches
text-align-last - CSS: Cascading Style Sheets
the text-align-last css property sets how the last
line of a block or a
line, right before a forced
line break, is aligned.
... syntax /* keyword values */ text-align-last: auto; text-align-last: start; text-align-last: end; text-align-last: left; text-align-last: right; text-align-last: center; text-align-last: justify; /* global values */ text-align-last: inherit; text-align-last: initial; text-align-last: unset; values auto the affected
line is aligned per the value of text-align, unless text-align is justify, in which case the effect is the same as setting text-align-last to start.
... left the in
line contents are aligned to the left edge of the
line box.
...And 4 more matches
text-overflow - CSS: Cascading Style Sheets
for example: overflow: hidden; white-space: nowrap; the text-overflow property only affects content that is overflowing a block container element in its in
line progression direction (not text overflowing at the bottom of a box, for example).
...if one value is given, it specifies overflow behavior for the end of the
line (the right end for left-to-right text, the left end for right-to-left text).
... if two values are given, the first specifies overflow behavior for the left end of the
line, and the second specifies it for the right end of the
line.
...And 4 more matches
writing-mode - CSS: Cascading Style Sheets
the writing-mode css property sets whether
lines of text are laid out horizontally or vertically, as well as the direction in which blocks progress.
... this property specifies the block flow direction, which is the direction in which block-level containers are stacked, and the direction in which in
line-level content flows within a block container.
...the next horizontal
line is positioned below the previous
line.
...And 4 more matches
Getting Started - Developer guides
if you do not set header content-type: application/xml, ie will throw a javascript "object expected" error after the
line where you tried to access an xml element.
...</root> in the script we only need to change the request
line to: ...
... then in alertcontents(), we need to replace the
line alert(httprequest.responsetext); with: var xmldoc = httprequest.responsexml; var root_node = xmldoc.getelementsbytagname('root').item(0); alert(root_node.firstchild.data); this code takes the xmldocument object given by responsexml and uses dom methods to access some of the data contained in the xml document.
...And 4 more matches
HTML5 - Developer guides
off
line and storage: allowing webpages to store data on the client-side locally and operate off
line more efficiently.
... semantics sections and out
lines in html5 a look at the new outlining and sectioning elements in html5: <section>, <article>, <nav>, <header>, <footer> and <aside>.
... off
line & storage off
line resources: the application cache firefox fully supports the html5 off
line resource specification.
...And 4 more matches
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
other audio may have a media time
line that doesn't start at 0 seconds, so setting currenttime to a time before that would fail.
... for example, if the audio's media time
line starts at 12 hours, setting currenttime to 3600 would be an attempt to set the current playback position well before the beginning of the media, and would fail.
... the getstartdate() method can be used to determine the beginning point of the media time
line's reference frame.
...And 4 more matches
<video>: The Video Embed element - HTML: Hypertext Markup Language
other media may have a media time
line that doesn't start at 0 seconds, so setting currenttime to a time before that would fail.
... the getstartdate() method can be used to determine the beginning point of the media time
line's reference frame.
... duration read only a double-precision floating-point value which indicates the duration (total length) of the media in seconds, on the media's time
line.
...And 4 more matches
Cross-Origin Resource Sharing (CORS) - HTTP
5 origin: https://foo.example pragma: no-cache cache-control: no-cache <person><name>arun</name></person> http/1.1 200 ok date: mon, 01 dec 2008 01:15:40 gmt server: apache/2 access-control-allow-origin: https://foo.example vary: accept-encoding, origin content-encoding: gzip content-length: 235 keep-alive: timeout=2, max=99 connection: keep-alive content-type: text/plain [some xml payload]
lines 1 - 10 above represent the preflight request with the options method.
...note that along with the options request, two other request headers are sent (
lines 9 and 10 respectively): access-control-request-method: post access-control-request-headers: x-pingother, content-type the access-control-request-method header notifies the server as part of a preflight request that when the actual request is sent, it will be sent with a post request method.
...
lines 13 - 22 above are the response that the server sends back indicating that the request method (post) and request headers (x-pingother) are acceptable.
...And 4 more matches
JavaScript modules - JavaScript
if you don't, you'll get a strict mime type checking error along the
lines of "the server responded with a non-javascript mime type" and the browser won't run your javascript.
... so for example: /js-examples/modules/basic-modules/modules/square.js becomes ./modules/square.js you can see such
lines in action in main.js.
...the following is found in main.js, below the import
lines: let mycanvas = create('mycanvas', document.body, 480, 320); let reportlist = createreportlist(mycanvas.id); let square1 = draw(mycanvas.ctx, 50, 50, 100, 'blue'); reportarea(square1.length, reportlist); reportperimeter(square1.length, reportlist); note: although imported features are available in the file, they are read only views of the feature that was exported.
...And 4 more matches
The "codecs" parameter in common media types - Web media technologies
specifying an avc profiles using the profile id and constraints components of the codecs parameter profile number (hex) constraints byte constrained base
line profile (cbp) cbp is primarily a solution for scenarios in which resources are constrained, or resource use needs to be controlled to minimize the odds of the media performing poorly.
... 42 40 base
line profile (bp) similar to cbp but with more data loss protections and recovery capabilities.
... 44 00 scalable base
line profile intended for use with video conferencing as well as surveillance and mobile uses, the svc base
line profile is based on avc's constrained base
line profile.
...And 4 more matches
Performance fundamentals - Web Performance
the graphics pipe
line in gecko that underpins html, css, and canvas is optimized in several ways.
...in turn, gecko's graphics pipe
line is highly optimized to render common animations efficiently.
...local caching/off
line apps can be achieved via service workers.
...And 4 more matches
Progressive web apps (PWAs)
with service workers, web developers can create reliably fast web pages and off
line experiences.
...r to allow your users to take advantage of it.how to make pwas installablein this article, we learned about how we can make pwas installable with a properly-configured web manifest, and how the user can then install the pwa with the "add to home screen" feature of their browser.how to make pwas re-engageable using notifications and pushhaving the ability to cache the contents of an app to work off
line is a great feature.
...but instead of relying only on user actions, we can do more, using push messages and notifications to automatically re-engage and deliver new content whenever it is available.introduction to progressive web appsthis article provides an introduction to progressive web apps (pwas), discussing what they are and the advantages they offer over regular web apps.making pwas work off
line with service workersin this article we took a simple look at how you can make your pwa work off
line with service workers.
...And 4 more matches
calcMode - SVG: Scalable Vector Graphics
the default mode is
linear, however if the attribute does not support
linear interpolation (e.g.
... four elements are using this attribute: <animate>, <animatecolor>, <animatemotion>, and <animatetransform> usage notes value discrete |
linear | paced | sp
line default value
linear animatable no discrete this specifies that the animation function will jump from one value to the next without any interpolation.
...
linear simple
linear interpolation between values is used to calculate the animation function.
...And 4 more matches
spreadMethod - SVG: Scalable Vector Graphics
two elements are using this attribute: <
lineargradient> and <radialgradient> context notes value pad | reflect | repeat initial value pad animatable yes pad this value indicates that the final color of the gradient fills the shape beyond the gradient's edges.
... in the case of a
linear gradient, the edges may be defined as a rectangle by the x1, x2, y1 and y2 attributes.
... examples of spreadmethod with
linear gradients svg <svg width="220" height="150" xmlns="http://www.w3.org/2000/svg"> <defs> <
lineargradient id="padgradient" x1="33%" x2="67%"> <stop offset="0%" stop-color="fuchsia"/> <stop offset="100%" stop-color="orange"/> </
lineargradient> <
lineargradient id="reflectgradient" spreadmethod="reflect" x1="33%" x2="67%"> <stop offset="0%" stop-color="fuchsia"/> <stop offset="100%" stop-color="orange"/> </
lineargradient> <
lineargradient id="repeatgradient" spreadmethod="repeat" x1="33%" x2="67%"> ...
...And 4 more matches
x - SVG: Scalable Vector Graphics
the content text position is usualy a point on the base
line of the first
line of text.
... value list of (<length> | <percentage>) default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <!-- horizontal
line to materialized the text base
line --> <
line x1="0" y1="40%" x2="100%" y2="40%" /> <
line x1="0" y1="90%" x2="100%" y2="90%" /> <!-- vertical
line to materialized the x positioning --> <
line x1="25%" y1="0" x2="25%" y2="100%" /> <
line x1="50%" y1="0" x2="50%" y2="100%" /> <
line x1="75%" y1="0" x2="75%" y2="100%" /> <!-- x with a single value --> <text y="40%" x="50%">svg</text> ...
... <!-- x with multiple values --> <text y="90%" x="25%, 50%, 75%">svg</text> </svg> text { font: 40px sans-serif; }
line { fill: none; stroke: red; stroke-width: .5px; stroke-dasharray: 2px; } tref warning: as of svg2 <tref> is deprecated and shouldn't be used.
...And 4 more matches
y - SVG: Scalable Vector Graphics
the content text position is usualy a point on the base
line of the first
line of text.
... value list of (<length> | <percentage>) default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <!-- horizontal
line to materialized the text base
line --> <
line x1="0" y1="40%" x2="100%" y2="40%" /> <
line x1="0" y1="60%" x2="100%" y2="60%" /> <
line x1="0" y1="80%" x2="100%" y2="80%" /> <!-- vertical
line to materialized the x positioning --> <
line x1="5%" y1="0" x2="5%" y2="100%" /> <
line x1="55%" y1="0" x2="55%" y2="100%" /> <!-- y with a single value --> <text y="40%" x="5%">svg</text> ...
... <!-- y with multiple values --> <text y="40%,60%,80%" x="55%">svg</text> </svg> text { font: 40px sans-serif; }
line { fill: none; stroke: red; stroke-width: .5px; stroke-dasharray: 2px; } tref warning: as of svg2 <tref> is deprecated and shouldn't be used.
...And 4 more matches
SVG Attribute reference - SVG: Scalable Vector Graphics
svg attributes a to z a accent-height accumulate additive alignment-base
line allowreorder alphabetic amplitude arabic-form ascent attributename attributetype autoreverse azimuth b basefrequency base
line-shift baseprofile bbox begin bias by c calcmode cap-height class clip clippathunits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering contentscripttype contentstyletype cursor cx cy d d decelerat...
...e descent diffuseconstant direction display divisor dominant-base
line dur dx dy e edgemode elevation enable-background end exponent externalresourcesrequired f fill fill-opacity fill-rule filter filterres filterunits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format from fr fx fy g g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphref gradienttransform gradientunits h hanging height href hreflang horiz-adv-x horiz-origin-x i id ideographic image-rendering in in2 intercept k k k1 k2 k3 k4 kernelmatrix kernelunitlength kerning keypoints keysp
lines keytimes l lang lengthadjust letter-spacing lighting-co...
...lor limitingconeangle local m marker-end marker-mid marker-start markerheight markerunits markerwidth mask maskcontentunits maskunits mathematical max media method min mode n name numoctaves o offset opacity operator order orient orientation origin overflow over
line-position over
line-thickness p panose-1 paint-order path pathlength patterncontentunits patterntransform patternunits ping pointer-events points pointsatx pointsaty pointsatz preservealpha preserveaspectratio primitiveunits r r radius referrerpolicy refx refy rel rendering-intent repeatcount repeatdur requiredextensions requiredfeatures restart result rotate rx ry s scale seed shape-rendering slope spacing specularconstant specularexponent s...
...And 4 more matches
Install Manifests - Archive of obsolete content
this description should fit on one short
line of text.
... <em:iconurl>chrome://myext/skin/icon.png</em:iconurl> note: for the above example to work you will also have to add a skin package
line to your chrome.manifest file.
...alternatively you can place your icon in the directory specified in your content package
line.
...And 3 more matches
The Box Model - Archive of obsolete content
labels should generally be short, and they should always be displayed in a single
line.
... descriptions may be longer, and in general you should plan it so that they can wrap into multiple
lines.
... in order to have wrapping descriptions, you need to set the text as a child node instead of using the value attribute: <description>&xulschoolhello.description.label;</description> even then, the text will extend as much as it can in a single
line, so you need to add some css limits in order to make it wrap inside a xul dialog or window.
...And 3 more matches
Reading textual data - Archive of obsolete content
reading
lines the nsiunichar
lineinputstream interface provides an easy way to read entire
lines from a unichar stream.
... it can be used like nsi
lineinputstream, except that it supports non-ascii characters, and has no problems with charsets with embedded nulls (like utf-16 and utf-32).
...using utf-8 for this example: */ "utf-8"; var is = components.classes["@mozilla.org/intl/converter-input-stream;1"] .createinstance(components.interfaces.nsiconverterinputstream); // this assumes that fis is the nsiinputstream you want to read from is.init(fis, charset, 1024, 0xfffd); is.queryinterface(components.interfaces.nsiunichar
lineinputstream); if (is instanceof components.interfaces.nsiunichar
lineinputstream) { var
line = {}; var cont; do { cont = is.read
line(
line); // now you can do something with
line.value } while (cont); } the above example reads an entire stream until eof.
...And 3 more matches
Custom toolbar button - Archive of obsolete content
change the text between double-quote characters on these three
lines.
...change the text between double-quote characters on these two
lines.
... remove the
line: alert("just testing") and replace it with javascript code that does whatever you want to do.
...And 3 more matches
Input Controls - Archive of obsolete content
the following example shows some textboxes: example 1 : source view <label control="some-text" value="enter some text"/> <textbox id="some-text"/> <label control="some-password" value="enter a password"/> <textbox id="some-password" type="password" maxlength="8"/> multi
line textbox the textbox examples above will create text inputs that can only be used for entering one
line of text.
...if you set the multi
line attribute to true, the text entry field will display multiple rows.
... example 2 : source view <textbox multi
line="true" value="this is some text that could wrap onto multiple
lines."/> like the html textarea, you can use the rows and cols attributes to set the size.
...And 3 more matches
XUL Accesskey FAQ and Policies - Archive of obsolete content
an accesskey is an under
lined letter in a web page, menu or dialog that indicates to a user a quick, keyboard method of simulating a click on that element.
... for example, an apply button may have the letter a under
lined.
...for example, "do it &now" makes "n" the under
lined accesskey.
...And 3 more matches
MacFAQ - Archive of obsolete content
for command-
line work, you would call on: /applications/(vendor)/(name).app/contents/macos/xulrunner ui notes menus to enable your application quit command to work with the application menu (the one to the right of the blue apple), you need to give your quit menu item an id of "menu_filequititem".
... command
line support command
line handlers work great on the mac if it's a cold start.
... here's how to implement command-
line trapping when the app is already running, without getting into appleevents or c++ code.
...And 3 more matches
Examples - Archive of obsolete content
examples for "problems with in
line style and script" problem 1 <!-- this file should have a .xhtml extension and will generate an error when parsed.
... </p> <p> this document contains in
line css rules contained in a <code>style</code> element and surrounded by a comment and javascript contained in a <code>script</code> element and surrounded by a comment.
... </p> </body> </html> back to the article examples for "using css rules in in
line style within comments" example 1 <!-- this file should have a .html extension --> <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-us" xml:lang="en-us"> <head> <title>example 1 - xhtml 1.0 strict as text/html</title> <meta http-equiv="content-type" content="text/html; charse...
...And 3 more matches
Building up a basic demo with PlayCanvas editor - Game development
instead of coding everything from scratch you can also use the on
line playcanvas editor.
...by clicking the editor button we'll launch the on
line playcanvas editor where we'll create our scene with the shapes.
... give the material a new name, along the
lines of cylindermaterial.
...And 3 more matches
Test your skills: WAI-ARIA - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
...And 3 more matches
Advanced styling effects - Learn web development
first, some html: <article class="simple"> <p><strong>warning</strong>: the thermostat on the cosmic transcender has reached a critical level.</p> </article> now the css: p { margin: 0; } article { max-width: 500px; padding: 10px; background-color: red; background-image:
linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.25)); } .simple { box-shadow: 5px 5px 5px rgba(0,0,0,0.7); } this gives us the following result: you'll see that we've got four items in the box-shadow property value: the first length value is the horizontal offset — the distance to the right the shadow is offset from the original box (or left, if the value is negative).
... multiple box shadows you can also specify multiple box shadows in a single box-shadow declaration, by separating them with commas: <article class="multiple"> <p><strong>warning</strong>: the thermostat on the cosmic transcender has reached a critical level.</p> </article> p { margin: 0; } article { max-width: 500px; padding: 10px; background-color: red; background-image:
linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.25)); } .multiple { box-shadow: 1px 1px 1px black, 2px 2px 1px black, 3px 3px 1px red, 4px 4px 1px red, 5px 5px 1px black, 6px 6px 1px black; } now we get this result: we've done something fun here by creating a raised box with multiple coloured layers, but you could use ...
... first, we'll go with some different html for this example: <button>press me!</button> button { width: 150px; font-size: 1.1rem;
line-height: 2; border-radius: 10px; border: none; background-image:
linear-gradient(to bottom right, #777, #ddd); box-shadow: 1px 1px 1px black, inset 2px 3px 5px rgba(0,0,0,0.3), inset -2px -3px 5px rgba(255,255,255,0.5); } button:focus, button:hover { background-image:
linear-gradient(to bottom right, #888, #eee); } button:active { box-shadow: inset 2px 2px...
...And 3 more matches
Styling tables - Learn web development
link the css to the html by placing the following
line of html inside your <head>: <link href="style.css" rel="stylesheet" type="text/css"> spacing and layout the first thing we need to do is sort out the spacing/layout — default table styling is so cramped!
... we've center-aligned the text in the table cells inside the <tbody> so that they
line up with the headings.
... start by adding the following css to your style.css file, again at the bottom: /* graphics and colors */ thead, tfoot { background: url(leopardskin.jpg); color: white; text-shadow: 1px 1px 1px black; } thead th, tfoot th, tfoot td { background:
linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5)); border: 3px solid purple; } again, there's nothing specific to tables here, but it is worthwhile to note a few things.
...And 3 more matches
Test your skills: values and units - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the example as displayed in the image: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
...And 3 more matches
Test your skills: Multicol - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the finished example: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
...And 3 more matches
Responsive design - Learn web development
if the user had a larger or smaller screen than the designer expected, results ranged from unwanted scrollbars to overly long
line lengths, and poor use of space.
...the liquid site resulted in a squashed design on smaller screens (as seen below) and unreadably long
line lengths on larger ones.
...for example, if the
line lengths become unreadably long as the screen size increases, or a box becomes squashed with two words on each
line as it narrows.
...And 3 more matches
Example 1 - Learn web development
<div class="select"> <span class="value">cherry</span> <ul class="optlist hidden"> <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 : in
line-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; out
line: 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-b...
...ox-sizing : border-box; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1px 25px 2px 5px */ width : 10em; /* 100px */ border : 0.2em solid #000; /* 2px */ border-radius : 0.4em; /* 4px */ box-shadow : 0 0.1em 0.2em rgba(0,0,0,.45); /* 0 1px 2px */ background : #f0f0f0; background :
linear-gradient(0deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); } .select .value { display : in
line-block; width : 100%; overflow : hidden; white-space : nowrap; text-overflow : ellipsis; vertical-align: top; } .select:after { 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; ...
...class="select active"> <span class="value">cherry</span> <ul class="optlist hidden"> <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 : in
line-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; out
line: 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-si...
...And 3 more matches
Styling web forms - Learn web development
these include the following elements: <form> <fieldset> and <legend> single-
line text <input>s (e.g.
... multi-
line <textarea>s buttons (both <input> and <button>s) <label> <output> the bad some elements are more difficult to style, requiring more complex css or some more specific tricks: checkboxes and radio buttons <input type="search"> we describe how to handle these more specific features in the article advanced form styling.
...%; background : none; } when one of these fields gains focus, we highlight them with a light grey, transparent, background (it is always important to have focus style, for usability and keyboard accessibility): input:focus, textarea:focus { background : rgba(0,0,0,.1); border-radius: 5px; } now that our text fields are complete, we need to adjust the display of the single and multiple
line text fields to match, since they won't typically look the same using the defaults.
...And 3 more matches
Test your skills: Basic controls - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
...And 3 more matches
Test your skills: Form validation - Learn web development
note: you can try out solutions locally, however it may be helpful to put your code in an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... download the starting point for this task to work in your own editor or in an on
line editor.
... download the starting point for this task to work in your own editor or in an on
line editor.
...And 3 more matches
Getting started with the Web - Learn web development
you won't build another facebook right away, but it's not hard to get your own simple website on
line, so we'll start there.
... by working through the articles listed below in order, you will go from nothing to getting your first webpage on
line.
...we out
line a simple method you can follow to plan out your site's content and design.
...And 3 more matches
Debugging HTML - Learn web development
in a small example like the one seen above, it is easy to search through the
lines and find the errors, but what about a huge, complex html document?
...you'll see that each message comes with a
line and column number to help you to locate the error easily.
...the
line/column information points to the first
line after the
line where the closing tag should really be, but this is a good enough clue to see what is wrong.
...And 3 more matches
Marking up a letter - Learn web development
create a new .html file using your text editor or use an on
line tool such as codepen, jsfiddle, or glitch to complete the tasks.
...there is one top level heading (the "re:"
line) and three second level headings.
...each
line of the address should sit on a new
line, but not be in a new paragraph.
...And 3 more matches
Test your skills: HTML images - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
...And 3 more matches
Internationalized Domain Names (IDN) Support in Mozilla Browsers
as an example, an output string to be sent to a dns server for a japanese domain name, "http://ジェーピーニック.jp", will look like the following in ace form: http://xn--hckqz9bzb1cyrb.jp domain name registration after the technical standards were established by ietf, the last remaining issue was for domain name registrars to agree on an international guide
line on the use of idn characters.
... this was accomplished by the publication of the icann guide
line for idn in june of 2003.
...icann = internet corporation for assigned names and numbers.) the guide
line allows domain name registrars in each country to limit the use of characters for domain names.
...And 3 more matches
Translation phase
koala a l10n add-on for the off
line, stand-alone komodo edit text editor.
... mozilla translator am off
line, stand-alone, java-based l10n tool that helps you translate and integrates with your repositories.
... virtaal an off
line, stand-alone version of pootle that is also built on the translate toolkit api.
...And 3 more matches
Mozilla Quirks Mode Behavior
map acts like an in
line, not a block.
... the css parser interprets unitless numbers as px (except for
line-height and any other properties where they have distinct meaning, and except in shorthands).
... block and in
line layout [this quirk is present in almost standards mode.]
line height (not
line-height) calculations are different to fix bug 5821 and bug 24186 (some other issues are described in bug 22274).
...And 3 more matches
An overview of NSS Internals
data described as pem is a base64 encoded presentation of der, usually wrapped between human readable begin/end
lines.
...examples are retrieving ocsp (on
line certificate status protocol) information or downloading a crl (certificate revocation list).
... this
line is a placeholder for future sections that should explain how libpkix works and is designed.
...And 3 more matches
NSS Certificate Download Specification
the text form begins with the following
line: -----begin certificate----- following this
line should be the certificate data, which can be in any of the binary formats described above.
...following the data should be the following
line: -----end certificate----- in a text format download, nss ignores any text before the first begin certificate
line, and ignores any text after the first end certificate
line.
... between those two
lines, there must be exactly one item of any of the supported binary formats described above, and that one item must be base64 encoded.
...And 3 more matches
gtstd.html
if you are inc
lined to help with this migration, your help would be very much appreciated.
... you can use the security module database tool, a command-
line utility that comes with nss, to manage pkcs #11 module information within secmod.db files.
...the following sections decribe how to the certificate database tool to perform these tasks: setting up the ca db and certificate setting up the server db and certificate setting up the client db and certificate verifying the server and client certificates warning: the instructions below illustrate the use of nss command
line tools to operate a simple root certificate authority for test purposes only.
...And 3 more matches
Getting SpiderMonkey source code
downloading gzipped spidermonkey source code you can download gzipped spidermonkey source code from the following urls: http://ftp.mozilla.org/pub/spidermonkey/releases/ http://ftp.mozilla.org/pub/spidermonkey/prereleases/ here is a command-
line example of downloading and unzipping spidermonkey source code version 59.0: mkdir mozilla cd mozilla wget http://ftp.mozilla.org/pub/spidermonkey/prereleases/59/pre1/mozjs-59.0a1.0.tar.bz2 tar xvf mozjs-59.0a1.0.tar.bz2 these commands should work on most platforms including windows, as long as on windows you are using the mozillabuild bash shell.
... the following command
line downloads the entire mozilla repository, including the full change history and a lot of gecko and firefox source code that isn't part of spidermonkey.
... getting the latest spidermonkey source code from git the following command
line downloads the entire mozilla repository, including the full change history and a lot of gecko and firefox source code that isn't part of spidermonkey.
...And 3 more matches
Index
193 js_bufferiscompilableunit jsapi reference, spidermonkey given a buffer, return false if the buffer might become a valid javascript statement with the addition of more
lines.
...the intent is to support interactive compilation - accumulate
lines in a buffer until js_bufferiscompilableunit is true, then pass it to the compiler.
...the flags from the built-in regexp constructor properties ignorecase, global, multi
line, and sticky are or'd in with the provided flags parameter.
...And 3 more matches
Bytecode Descriptions
the instruction immediately following any jsop::*eval instruction must be jsop::
lineno.
...it's treated as jump target op so that the base
line interpreter can efficiently restore the frame's interpretericentry when resuming a generator.
...the base
line interpreter uses these instructions to sync the frame's interpretericentry after a jump.
...And 3 more matches
Web Replay
step back when paused, the reverse step button in the debugger developer tool will step to the previous
line executed and allow inspecting program state there.
... time
line the time
line is shown above the developer tools and provides several features to help with navigating the recording: the time
line changes color depending on whether the tab is currently recording (red) or replaying (blue).
... the current position within the recording is shown on the time
line with a progress indicator.
...And 3 more matches
nsIAppStartup
se the service: var appstartup = components.classes["@mozilla.org/toolkit/app-startup;1"] .getservice(components.interfaces.nsiappstartup); method overview void createhiddenwindow(); boolean createstartupstate(in long awindowwidth, in long awindowheight); obsolete since gecko 1.9.1 void destroyhiddenwindow(); void doprofilestartup(in nsicmd
lineservice acmd
lineservice, in boolean caninteract); obsolete since gecko 1.9.1 void ensure1window(in nsicmd
lineservice acmd
lineservice); obsolete since gecko 1.9.1 void enterlastwindowclosingsurvivalarea(); void exitlastwindowclosingsurvivalarea(); void getstartupinfo(); void hidesplashscreen(); obsolete since gecko 1.9.1 void initialize(in nsis...
...the application will be restarted with the same profile and an empty command
line.
...the application will be restarted with an empty command
line and the normal profile selection process will take place on startup.
...And 3 more matches
nsIConsoleService
in this example nsiscripterror, which implements nsiconsolemessage, is used to include information about the source file and
line number of the error.
... function mylogtoconsole(amessage, asourcename, asource
line, a
linenumber, acolumnnumber, aflags, acategory) { var consoleservice = components.classes["@mozilla.org/consoleservice;1"] .getservice(components.interfaces.nsiconsoleservice); var scripterror = components.classes["@mozilla.org/scripterror;1"] .createinstance(components.interfaces.nsiscripterror); scripterror.init(amessage, asourcename, asource
line, a
linenumber, acolumnnumber, aflags, acategory); consoleservice.logmessage(scripterror); } amessage — the string to be logged.
... asource
line — the
line #a
linenumber from asourcename file.
...And 3 more matches
nsIDOMEvent
method overview boolean deserialize(in constipcmessageptr amsg, out voidptr aiter); violates the xpcom interface guide
lines void duplicateprivatedata(); native code only!
... nseventptr getinternalnsevent(); violates the xpcom interface guide
lines boolean getpreventdefault(); deprecated since gecko 16.0 void initevent(in domstring eventtypearg, in boolean canbubblearg, in boolean cancelablearg); boolean isdispatchstopped(); violates the xpcom interface guide
lines void preventbubble(); obsolete since gecko 24 void preventcapture(); obsolete since gecko 24 void preventdefault(); void serialize(in ipcmessageptr amsg, in boolean aserializeinterfacetype); violates the xpcom interface guide
lines void settarget(in nsidomeventtarget atarget); native code only!
... move 0x02000000 resize 0x04000000 forward 0x08000000 help 0x10000000 back 0x20000000 text 0x40000000 alt_mask 0x00000001 control_mask 0x00000002 shift_mask 0x00000004 meta_mask 0x00000008 methods violates the xpcom interface guide
lines deserialize() boolean deserialize( in constipcmessageptr amsg, out voidptr aiter ); parameters amsg aiter return value native code only!duplicateprivatedata void duplicateprivatedata(); parameters none.
...And 3 more matches
nsIScriptError2
method overview void initwithwindowid(in wstring message, in wstring sourcename, in wstring source
line, in pruint32
linenumber, in pruint32 columnnumber, in pruint32 flags, in string category, in unsigned long long innerwindowid); attributes attribute type description innerwindowid unsigned long long the inner window id with which the error is associated.
... methods initwithwindowid() void init( in wstring message, in wstring sourcename, in wstring source
line, in pruint32
linenumber, in pruint32 columnnumber, in pruint32 flags, in string category, in unsigned long long innerwindowid ); parameters message the text of the message to add to the log.
... source
line the
line number in the source file on which the error occurred.
...And 3 more matches
nsIWebBrowserPersist
persist_flags_fail_on_broken_links 4096 fail on broken in-
line links.
...this differs just slightly but in an important way from normal formatted, and that is that
lines are space stuffed.
... encode_flags_cr_
linebreaks 512 output with carriage return
line breaks.
...And 3 more matches
Using js-ctypes
this is as simple as including the following
line of code in the desired javascript scope: components.utils.import("resource://gre/modules/ctypes.jsm") loading a native library once you've imported the code module, you can call the ctypes.open() method to load each native library you wish to use.
... going to call */ var msgbox = lib.declare("messageboxw", ctypes.winapi_abi, ctypes.int32_t, ctypes.int32_t, ctypes.jschar.ptr, ctypes.jschar.ptr, ctypes.int32_t); var mb_ok = 0; var ret = msgbox(0, "hello world", "title", mb_ok); lib.close(); in
line 3, the user32.dll system library is loaded.
...
line 6 declares msgbox() to be a method that calls the windows function messageboxw.
...And 3 more matches
View Source - Firefox Developer Tools
view source features view source has three additional features, which can be accessed from the context menu in the view source tab: go to
line scrolls to the specified
line.
... if the number is higher than the
lines in a file, you receive an error message.
... wrap long
lines (toggle) wraps long
lines to the width of the page.
...And 3 more matches
Console messages - Firefox Developer Tools
number of occurrences if a
line that generates a warning or error is executed more than once, it is only logged once and this counter appears to indicate how many times it was encountered.
... filename and
line number for javascript, css and console api messages, the message can be traced to a specific
line of code.
... the console then provides a link to the filename and
line number that generated the message.
...And 3 more matches
AudioListener - Web APIs
the forward and up values are
linearly independent of each other.
...the forward and up values are
linearly independent of each other.
...the forward and up values are
linearly independent of each other.
...And 3 more matches
DOMImplementation.createHTMLDocument() - Web APIs
t("p"); p.innerhtml = "this is a new paragraph."; try { doc.body.appendchild(p); } catch(e) { console.log(e); } // copy the new html document into the frame let destdocument = frame.contentdocument; let srcnode = doc.documentelement; let newnode = destdocument.importnode(srcnode, true); destdocument.replacechild(newnode, destdocument.documentelement); } the code in
lines 4–12 handle creating the new html document and inserting some content into it.
...
line 4 uses createhtmldocument() to construct a new html document whose <title> is "new document".
...
lines 5 and 6 create a new paragraph element with some simple content, and then
lines 8–12 handle inserting the new paragraph into the new document.
...And 3 more matches
Element: mousedown event - Web APIs
its functionality is simple: the thickness of the
line is set to 1, and the color is always black.
...if isdrawing is true, the event handler calls the draw
line function to draw a
line from the stored x and y values to the current location.
... when the draw
line() function returns, we adjust the coordinates and then save them in x and y.
...And 3 more matches
Element: mousemove event - Web APIs
its functionality is simple: the thickness of the
line is set to 1, and the color is always black.
...if isdrawing is true, the event handler calls the draw
line function to draw a
line from the stored x and y values to the current location.
... when the draw
line() function returns, we adjust the coordinates and then save them in x and y.
...And 3 more matches
Element: mouseup event - Web APIs
its functionality is simple: the thickness of the
line is set to 1, and the color is always black.
...if isdrawing is true, the event handler calls the draw
line function to draw a
line from the stored x and y values to the current location.
... when the draw
line() function returns, we adjust the coordinates and then save them in x and y.
...And 3 more matches
Using Fetch - Web APIs
the fetch api provides a javascript interface for accessing and manipulating parts of the http pipe
line, such as requests and responses.
...le]'); formdata.append('title', 'my vegas vacation'); for (let i = 0; i < photos.files.length; i++) { formdata.append('photos', photos.files[i]); } fetch('https://example.com/posts', { method: 'post', body: formdata, }) .then(response => response.json()) .then(result => { console.log('success:', result); }) .catch(error => { console.error('error:', error); }); processing a text file
line by
line the chunks that are read from a response are not broken neatly at
line boundaries and are uint8arrays, not strings.
... if you want to fetch a text file and process it
line by
line, it is up to you to handle these complications.
...And 3 more matches
HTMLTableCellElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,m...
...onospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="#d4...
...dde4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line points="491,25 501,20 501,30 491,25" stroke="#d4dde4" fill="none"/><
line x1="501" y1="25" x2="509" y2="25" stroke="#d4dde4"/...
...And 3 more matches
Drag Operations - Web APIs
this technique is useful when drawing custom drag images using the canvas element, as in the following example: function dragwithcustomimage(event) { const canvas = document.createelement("canvas"); canvas.width = canvas.height = 50; const ctx = canvas.getcontext("2d"); ctx.
linewidth = 4; ctx.moveto(0, 0); ctx.
lineto(50, 50); ctx.moveto(0, 50); ctx.
lineto(50, 0); ctx.stroke(); const dt = event.datatransfer; dt.setdata('text/plain', 'data to drag'); dt.setdragimage(canvas, 25, 25); } in this example, we make one canvas the drag image.
... .droparea:-moz-drag-over { out
line: 1px solid black; } in this example, the element with the class droparea will receive a 1 pixel black out
line while it is a valid drop target, that is, if the preventdefault() method was called during the dragenter event.
... function dodrop(event) { const
lines = event.datatransfer.getdata("text/uri-list").split("\n");
lines.filter(
line => !
line.startswith("#")) .foreach(
line => { const link = document.createelement("a"); link.href =
line; link.textcontent =
line; event.target.appendchild(link); }) event.preventdefault(); } this example inserts a link from the dragged data.
...And 3 more matches
Performance API - Web APIs
performanceentry provides methods and properties the encapsulate a single performance metric that is part of the performance time
line.
...entries of this type are created by calling performance.mark() to add a named domhighrestimestamp (the mark) to the browser's performance time
line.
...entries of this type are created by calling performance.measure() to add a nameddomhighrestimestamp (the measure) between two marks to the browser's performance time
line.
...And 3 more matches
SVGAnimationElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignm...
...ent-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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" f...
...ont-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="#d4dd...
...And 3 more matches
SVGTSpanElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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" ...
...And 3 more matches
SVGTextElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a>...
...<poly
line 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-base
line="middle">svgelement</text></a><poly
line 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" wid...
...And 3 more matches
CSS Flow Layout - CSS: Cascading Style Sheets
normal flow, or flow layout, is the way that block and in
line elements are displayed on a page before any changes are made to their layout.
... in normal flow, in
line elements display in the in
line direction, that is in the direction words are displayed in a sentence according to the writing mode of the document.
...in english therefore, in
line elements display one after the other, starting on the left, and block elements start at the top and move down the page.
...And 3 more matches
CSS Grid Layout and Progressive Enhancement - CSS: Cascading Style Sheets
using display: in
line-block is an alternate method.
... once again i can use feature queries to overwrite a layout that uses display: in
line-block, and again i don’t need to overwrite everything.
... an item that is set to in
line-block becomes a grid item, and so the behaviour of in
line-block no longer applies.
...And 3 more matches
CSS Logical Properties and Values - CSS: Cascading Style Sheets
in
line logical properties and values use the abstract terms block and in
line to describe the direction in which they flow.
... block dimension the dimension perpendicular to the flow of text within a
line, i.e., the vertical dimension in horizontal writing modes, and the horizontal dimension in vertical writing modes.
... in
line dimension the dimension parallel to the flow of text within a
line, i.e., the horizontal dimension in horizontal writing modes, and the vertical dimension in vertical writing modes.
...And 3 more matches
Animatable CSS properties - CSS: Cascading Style Sheets
the animatable properties are: -moz-out
line-radius -moz-out
line-radius-bottomleft -moz-out
line-radius-bottomright -moz-out
line-radius-topleft -moz-out
line-radius-topright -webkit-
line-clamp -webkit-text-fill-color -webkit-text-stroke -webkit-text-stroke-color all backdrop-filter background background-color background-position background-size block-size border border-block-end border-block-end-color border-block-end-width border-block-start border-block-start-color border-block-start-width border-b...
...ottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-width border-color border-end-end-radius border-end-start-radius border-image-outset border-image-slice border-image-width border-in
line-end border-in
line-end-color border-in
line-end-width border-in
line-start border-in
line-start-color border-in
line-start-width border-left border-left-color border-left-width border-radius border-right border-right-color border-right-width border-start-end-radius border-start-start-radius border-top border-top-color border-top-left-radius border-top-right-radius border-top-width border-width bottom box-shadow...
...lumn-rule column-rule-color column-rule-width column-width columns filter flex flex-basis flex-grow flex-shrink font font-size font-size-adjust font-stretch font-variation-settings font-weight gap grid-column-gap grid-gap grid-row-gap grid-template-columns grid-template-rows height in
line-size inset inset-block inset-block-end inset-block-start inset-in
line inset-in
line-end inset-in
line-start left letter-spacing
line-clamp
line-height margin margin-block-end margin-block-start margin-bottom margin-in
line-end margin-in
line-start margin-left margin-right margin-top mask mask...
...And 3 more matches
Specificity - CSS: Cascading Style Sheets
(the selectors declared inside :not() do, however.) for more information, visit: "specificity" in "cascade and inheritance", you can also visit: https://specifishity.com in
line styles added to an element (e.g., style="font-weight: bold;") always overwrite any styles in external stylesheets, and thus can be thought of as having the highest specificity.
... #myid#myid span { color: yellow; } .myclass.myclass span { color: orange; } how !important can be used: a) overriding in
line styles your global css file that sets visual aspects of your site globally may be overwritten by in
line styles defined directly on individual elements.
... both in
line styles and !important are considered very bad practice, but sometimes you need the latter to override the former.
...And 3 more matches
animation-timing-function - CSS: Cascading Style Sheets
syntax /* keyword values */ animation-timing-function: ease; animation-timing-function: ease-in; animation-timing-function: ease-out; animation-timing-function: ease-in-out; animation-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-...
... the non-step keyword values (ease,
linear, ease-in-out, etc.) each represent cubic bézier curve with fixed four point values, with the cubic-bezier() function value allowing for a non-predefined value.
...
linear equal to cubic-bezier(0.0, 0.0, 1.0, 1.0), animates at an even speed.
...And 3 more matches
animation - CSS: Cascading Style Sheets
/* @keyframes duration | timing-function | delay | iteration-count | direction | fill-mode | play-state | name */ animation: 3s ease-in 1s 2 reverse both paused slidein; /* @keyframes name | duration | timing-function | delay */ animation: 3s
linear 1s slidein; /* @keyframes name | duration */ animation: slidein 3s; <div class="grid"> <div class="col"> <div class="note"> given the following animation: <pre>@keyframes slidein { from { transform: scalex(0); } to { transform: scalex(1); } }</pre> </div> <div class="row"> <div class="cell"> <button class="play" title="play"></button> </di...
...v> <div class="cell flx"> <div class="overlay">animation: 3s ease-in 1s 2 reverse both paused slidein;</div> <div class="animation a1"></div> </div> </div> <div class="row"> <div class="cell"> <button class="pause" title="pause"></button> </div> <div class="cell flx"> <div class="overlay">animation: 3s
linear 1s slidein;</div> <div class="animation a2"></div> </div> </div> <div class="row"> <div class="cell"> <button class="pause" title="pause"></button> </div> <div class="cell flx"> <div class="overlay">animation: 3s slidein;</div> <div class="animation a3"></div> </div> </div> </div> </div> html,body { height: 100%; box-sizing: border-box; } ...
...: #fff; overflow: hidden; text-align: left; } .flx { flex: 1 0; } .note { background: #fff3d4; padding: 1em; margin: .5em; font: .8em sans-serif; text-align: left; flex: none; } .overlay { padding: .5em; } @keyframes slidein { from { transform: scalex(0); } to { transform: scalex(1); } } .a1 { animation: 3s ease-in 1s 2 reverse both paused slidein; } .a2 { animation: 3s
linear 1s slidein; } .a3 { animation: 3s slidein; } .animation { background: #3f87a6; width: 100%; height: calc(100% - 1.5em); transform-origin: left center; } window.addeventlistener('load', function () { var animation = array.from(document.queryselectorall('.animation')); var button = array.from(document.queryselectorall('button')); function togglebutton (btn, type) { btn.cla...
...And 3 more matches
border-style - CSS: Cascading Style Sheets
the border-style shorthand css property sets the
line style for all four sides of an element's border.
... values <
line-style> describes the style of the border.
... dashed displays a series of short square-ended dashes or
line segments.
...And 3 more matches
box-orient - CSS: Cascading Style Sheets
/* keyword values */ box-orient: horizontal; box-orient: vertical; box-orient: in
line-axis; box-orient: block-axis; /* global values */ box-orient: inherit; box-orient: initial; box-orient: unset; syntax the box-orient property is specified as one of the keyword values listed below.
... in
line-axis (html) the box displays its children along the in
line axis.
... the in
line and block axes are the writing-mode dependent keywords which, in english, map to horizontal and vertical respectively.
...And 3 more matches
clear - CSS: Cascading Style Sheets
#container::after { content: ""; display: block; clear: both; } syntax /* keyword values */ clear: none; clear: left; clear: right; clear: both; clear: in
line-start; clear: in
line-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.
... in
line-start is a keyword indicating 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.
... in
line-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.
...And 3 more matches
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.
... first an opening bracket or quote at the start of the first formatted
line of an element hangs.
...And 3 more matches
initial-letter-align - CSS: Cascading Style Sheets
alphabetic as described above, the cap height of the initial letter aligns with the cap height of the first
line of text.
... the base
line of the initial letter aligns with the base
line of the nth text base
line.
... hanging the hanging base
line of the initial letter aligns with the hanging base
line of the first
line of text.
...And 3 more matches
margin-left - CSS: Cascading Style Sheets
this table summarizes the different cases: value of display value of float value of position computed value of auto comment in
line, in
line-block, in
line-table any static or relative 0 in
line layout mode block, in
line, in
line-block, block, table, in
line-table, list-item, table-caption any static or relative 0, except if both margin-left and margin-right are set to auto.
... block layout mode block, in
line, in
line-block, block, table, in
line-table, list-item, table-caption left or right static or relative 0 block layout mode (floating element) any table-*, except table-caption any any 0 internal table-* elements don't have margins, use border-spacing instead any, except flex, in
line-flex, or table-* any fixed or absolute 0, except if both margin-left and margin-right are set to auto.
... absolutely positioned layout mode flex, in
line-flex any any 0, except if there is any positive horizontal free space.
...And 3 more matches
margin-right - CSS: Cascading Style Sheets
this table summarizes the different cases: value of display value of float value of position computed value of auto comment in
line, in
line-block, in
line-table any static or relative 0 in
line layout mode block, in
line, in
line-block, block, table, in
line-table, list-item, table-caption any static or relative 0, except if both margin-left and margin-right are set to auto.
... block layout mode block, in
line, in
line-block, block, table, in
line-table, list-item, table-caption left or right static or relative 0 block layout mode (floating element) any table-*, except table-caption any any 0 internal table-* elements don't have margins, use border-spacing instead any, except flex, in
line-flex, or table-* any fixed or absolute 0, except if both margin-left and margin-right are set to auto.
... absolutely positioned layout mode flex, in
line-flex any any 0, except if there is any positive horizontal free space.
...And 3 more matches
mask - CSS: Cascading Style Sheets
)<gradient> = <
linear-gradient()> | <repeating-
linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()><box> = border-box | padding-box | content-boxwhere <image-tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolu...
...&& <image><cf-final-image> = <image> | <color><
linear-gradient()> =
linear-gradient( [ <angle> | to <side-or-corner> ]?
... , <color-stop-list> )<repeating-
linear-gradient()> = repeating-
linear-gradient( [ <angle> | to <side-or-corner> ]?
...And 3 more matches
text-decoration-skip - CSS: Cascading Style Sheets
it controls all text decoration
lines drawn by the element and also any text decoration
lines drawn by its ancestors.
...thus, text decoration is drawn for all text content and across atomic in
line-level boxes.
... objects the entire margin box of the element is skipped if it is an atomic in
line such as an image or in
line-block.
...And 3 more matches
text-decoration-thickness - CSS: Cascading Style Sheets
the text-decoration-thickness css property sets the stroke thickness of the decoration
line that is used on text in an element, such as a
line-through, under
line, or over
line.
...tion-thickness: auto; text-decoration-thickness: from-font; /* length */ text-decoration-thickness: 0.1em; text-decoration-thickness: 3px; /* percentage */ text-decoration-thickness: 10%; /* global values */ text-decoration-thickness: inherit; text-decoration-thickness: initial; text-decoration-thickness: unset; values auto the browser chooses an appropriate width for the text decoration
line.
... <length> specifies the thickness of the text decoration
line as a <length>, overriding the font file suggestion or the browser default.
...And 3 more matches
transition-delay - CSS: Cascading Style Sheets
/div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top color; -webkit-transition-duration:2s; -webkit-transition-delay:0.5s; -webkit-transition-timing-function:
linear; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:0.5s; transition-timing-function:
linear; } .box1{ width: 50px; height: 50px; background-color: blue; color: yellow; font-size: 18px; left: 150px; top:25px; position:absolute; -webkit-transition-property: width height backgro...
...und-color font-size left top color; -webkit-transition-duration:2s; -webkit-transition-delay:0.5s; -webkit-transition-timing-function:
linear; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:0.5s; transition-timing-function:
linear; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-delay: 1s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; backgrou...
...nd-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top color; -webkit-transition-duration:2s; -webkit-transition-delay:1s; -webkit-transition-timing-function:
linear; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:1s; transition-timing-function:
linear; } .box1{ width: 50px; height: 50px; background-color: blue; color: yellow; font-size: 18px; left: 150px; top:25px; position:absolute; -webkit-transition-property: width height background-color font-size left top color; -webkit-transition-duration:2s; -webkit-transition-delay:1s; -webkit...
...And 3 more matches
transition-timing-function - CSS: Cascading Style Sheets
syntax /* keyword values */ transition-timing-function: ease; transition-timing-function: ease-in; transition-timing-function: ease-out; transition-timing-function: ease-in-out; transition-timing-function:
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); trans...
... the non-step keyword values (ease,
linear, ease-in-out, etc.) each represent cubic bézier curve with fixed four point values, with the cubic-bezier() function value allowing for a non-predefined value.
...
linear equal to cubic-bezier(0.0, 0.0, 1.0, 1.0), transitions at an even speed.
...And 3 more matches
Block formatting context - Developer guides
in
line-blocks (elements with display: in
line-block).
... anonymous table cells implicitly created by the elements with display: table, table-row, table-row-group, table-header-group, table-footer-group (which is the default for html tables, table rows, table bodies, table headers, and table footers, respectively), or in
line-table.
... flex items (direct children of the element with display: flex or in
line-flex) if they are neither flex nor grid nor table containers themselves.
...And 3 more matches
Challenge solutions - Developer guides
cascading and inheritance inherited styles challenge change your stylesheet so that only the red letters are under
lined.
...the resulting file looks like this: p {color: blue; } strong {color: orange; text-decoration: under
line;} later sections of this tutorial describe style rules and declarations in greater detail.
...ues are reasonable approximations of the named colors: strong { color: #f00; /* red */ background-color: #ddf; /* pale blue */ font: 200% serif; } .carrot { color: #fa0; /* orange */ } .spinach { color: #080; /* dark green */ } p { color: #00f; /* blue */ } content add an image challenge add a one rule to your stylesheet so that it displays the image at the start of each
line.
...And 3 more matches
Making content editable - Developer guides
these are object resizing on <img>, <table>, and absolutely-positioned elements; in
line table editing to add or remove rows and columns; and the grabber that allows moving of absolutely-positioned elements.
...most commands affect the document's selection by, for example, applying a style to the text (bold, italics, etc), while others insert new elements (like adding a link) or affect an entire
line (indenting).
...for example, even something as simple as what happens when you press enter/return to create a new
line of text inside an editable element was handled differently across the major browsers (firefox inserted <br> elements, ie/opera used <p>, chrome/safari used <div>).
...And 3 more matches
Content Security Policy (CSP) - HTTP
a csp compatible browser will then only execute scripts loaded in source files received from those allowlisted domains, ignoring all other script (including in
line scripts and event-handling html attributes).
...a policy needs to include a default-src or script-src directive to prevent in
line scripts from running, as well as blocking the use of eval().
... a policy needs to include a default-src or style-src directive to restrict in
line styles from being applied from a <style> element or a style attribute.
...And 3 more matches
Character classes - JavaScript
has one of the following meanings: matches any single character except
line terminators: \n, \r, \u2028 or \u2029.
... note that the m multi
line flag doesn't change the dot behavior.
... so to match a pattern across multiple
lines, the character set [^] can be used — it will match any character including new
lines.
...And 3 more matches
Error.prototype.stack - JavaScript
the non-standard stack property of error objects offer a trace of which functions were called, in what order, from which
line and file, and with what arguments.
... description each step will be separated by a new
line, with the first part of the
line being the function name (if not a call from the global scope), then by an at (@) sign, the file location (except when the function is the error constructor as the error is being thrown), a colon, and, if there is a file location, the
line number.
... (note that the error object also possesses the filename,
linenumber and columnnumber properties for retrieving these from the error thrown (but only the error, and not its trace).) note that this is the format used by firefox.
...And 3 more matches
RegExp - JavaScript
matches new
lines or not.
... regexp.prototype.multi
line whether or not to search in strings across multiple
lines.
... using regular expression to split
lines with different
line endings/ends of
line/
line breaks the default
line ending varies depending on the platform (unix, windows, etc.).
...And 3 more matches
Authoring MathML - MathML
to use it, just insert one
line in your document header: <script src="https://fred-wang.github.io/mathml.css/mspace.js"></script> if you need more complex constructions, you might instead consider using the heavier mathjax library as a mathml polyfill: <script src="https://fred-wang.github.io/mathjax.js/mpadded-min.js"></script> note that these two scripts perform feature detection of the mspace or mpadded elements (see the...
... command-
line programs an alternative way is to parse the simple syntax before publishing your web pages.
... that is, you use command-
line programs to generate them and publish these static pages on your server.
...And 3 more matches
Web video codec guide - Web media technologies
the simplest guide
line is this: anything that makes the encoded video look more like the original, uncompressed, video will generally make the resulting data larger as well.
...the same effect can occur with any repeating pattern that moves, such as the ties on a railway
line, posts along the side of a road, and so forth.
... avc is highly flexible, with a number of profiles with varying capabilities; for example, the constrained base
line profile is designed for use in videoconferencing and mobile scenarios, using less bandwidth than the main profile (which is used for standard definition digital tv in some regions) or the high profile (used for blu-ray disc video).
...And 3 more matches
Progressive web app structure - Progressive web apps (PWAs)
the most popular approach is the "app shell" concept, which mixes ssr and csr in exactly the way described above, and in addition follows the "off
line first" methodology which we will explain in detail in upcoming articles and use in our example application.
... app shell the app shell concept is concerned with loading a minimal user interface as soon as possible and then caching it so it is available off
line for subsequent visits before then loading all the contents of the app.
...it also allows the website to be accessible off
line if the network connection is not available.
...And 3 more matches
Introduction to progressive web apps - Progressive web apps (PWAs)
you can install a native app so that it works off
line, and users love tapping their icons to easily access their favorite apps, rather than navigating to it using a browser.
...an app could be considered a pwa when it meets certain requirements, or implements a set of given features: works off
line, is installable, is easy to synchronize, can send push notifications, etc.
... network independent, so it works off
line or with a poor network connection.
...And 3 more matches
end - SVG: Scalable Vector Graphics
ype="xml" attributename="width" to="75" begin="0s" end="6s" fill="freeze" /> </rect> <rect x="10" y="85" height="15" width="0"> <animate attributetype="xml" attributename="width" to="50" begin="0s" end="4s" fill="freeze" /> </rect> <!-- grid --> <text x="10" y="20" text-anchor="middle">0s</text> <
line x1="10" y1="25" x2="10" y2="105" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <
line x1="35" y1="25" x2="35" y2="105" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <
line x1="60" y1="25" x2="60" y2="105" stroke="grey" stroke-width=".5" /> <text x="85" y="20" text-anchor="middle">6s</text> <
line ...
...x1="85" y1="25" x2="85" y2="105" stroke="grey" stroke-width=".5" /> <text x="110" y="20" text-anchor="middle">8s</text> <
line x1="110" y1="25" x2="110" y2="105" stroke="grey" stroke-width=".5" /> <
line x1="10" y1="30" x2="110" y2="30" stroke="grey" stroke-width=".5" /> <
line x1="10" y1="105" x2="110" y2="105" stroke="grey" stroke-width=".5" /> </svg> event example <svg width="120" height="120" viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- animated rectangle --> <rect x="10" y="35" height="15" width="0"> <animate attributetype="xml" attributename="width" from="0" to="100" begin="0s" end="endbutton.click" dur="8s" repeatcount="indefinite" f...
...ill="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" stroke="grey" stroke-width=".5" /> <text x="85" y="20" text-anchor="middle">6s</text> <
line x1="8...
...And 3 more matches
points - SVG: Scalable Vector Graphics
two elements are using this attribute: <poly
line>, and <polygon> html,body,svg { height:100% } <svg viewbox="-10 -10 220 120" xmlns="http://www.w3.org/2000/svg"> <!-- poly
line is an open shape --> <poly
line 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...
... --> </svg> poly
line for <poly
line>, points defines a list of points, each representing a vertex of the
line to be drawn.
... note: a poly
line is an open shape, meaning the last point is not connected to the first point.
...And 3 more matches
xlink:href - SVG: Scalable Vector Graphics
22 elements are using this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <
lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, and <use>} html, body, svg { height: 100%; } <svg viewbox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> <a xlink:href="https://developer.mozilla.org/"><text x="10" y="25">mdn web docs</text></a> </svg> a for <a>, xlink:href defines the location of the referenced object.
... value <iri> default value none animatable yes
lineargradient for <
lineargradient>, xlink:href defines the reference to a different <
lineargradient> or <radialgradient> element within the current svg document fragment.
... any <
lineargradient> attributes which are defined on the referenced element which are not defined on this element are inherited by this element.
...And 3 more matches
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
unknown overflow: hidden; on <hatch> in ua style sheet implementation status unknown 0 0 as default value of transform-origin except root <svg> and <svg> children of <foreign> implementation status unknown use of white-space instead of deprecated xml:space attribute in ua style sheet implementation status unknown @font-face, ::first-letter and ::first-
line on <text> implementation status unknown svg and html style sheets in html document with in
line svg applying to whole document content implementation status unknown presentation attributes on any svg namespaced element implementation status unknown display behavior of <style> defined via ua style sheet implementation status unknown !important user ag...
...lementation status unknown consider clip and overflow on svg document referenced by <image> implementation status unknown paths change notes b and b path commands implementation status unknown z and z path commands to add path coordinate data to previous command implementation status unknown not render <path>, <polygon> and <poly
line> with no data implementation status unknown svgpathseg*, svganimatedpathdata and related methods removed from svgpathelement implementation status unknown d attribute as css property implementation status unknown basic shapes change notes pathlength attribute for all basic shapes implementation status unknown svganimatedpoint...
...s.animatedpoints as alias of svganimatedpoints.points implementation status unknown auto behavior for rx and ry in <ellipse> implementation status unknown text change notes text-decoration-fill and text-decoration-stroke properties not implemented yet (bug 1303569) in
line-size attribute for <text> implementation status unknown shape-inside property inplementation status unknown shape-subtract property inplementation status unknown white-space implementation status unknown deprecated xml:space attribute implementation status unknown kerning property removed implementation status unknown path attribute for <textpath> implemented (bug 1446617) reference b...
...And 3 more matches
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
if someone can confirm this and/or provide guide
lines for what's different, i'll update the article to incorporate this information.
...the easiest way to accomplish the latter is to use in
line implementations for all methods so you don't have any additional linking dependencies.
...add the following
line at the end of the file: ac_add_options --enable-extensions=default,myextension now launch make from the mozilla root: make -f client.mk build even if you have an up-to-date firefox build, you'll have to wait a while for make to recurse over the entire mozilla source tree looking for new stuff (on my machine, which is pretty fast, this takes a good 10-15 minutes).
...And 2 more matches
List of Mozilla-Based Applications - Archive of obsolete content
celtx media tool cenzic hailstorm vulnerability assessment and management tool uses gecko chatzilla irc client standalone version (xulrunner) chromium and google chrome web browser uses mozilla nss and npapi libraries chromeless browser with html-based interface classilla mozilla browser for mac os 9 c
lines a clone of color
lines (game) standalone version cloud web operating system cloud browse iphone/ipad/ipod touch browser seems to be firefox running remotely on servers that people access through device conkeror keyboard-oriented browser convertigo enterprise mashup server server tool for transactional web scraping and for web clipp...
...tting temporal tags in audio documents jsdoc toolkit documentation tool uses mozilla rhino k-meleon gecko-based web browser for windows embeds gecko in mfc kairo.at mandelbrot creates images of mandelbrot sets xulrunner application kazehakase gecko-based web browser for unix kirix strata data browser kiwix off
line version of wikipedia kneemail prayer, praise, and journal application komodo and komodo edit and open komodo development tools mozilla-based application (pre-xulrunner style), xul ui kompozer wysiwyg html editor unofficial bug-fix release of nvu kylo video browser uses gecko biofortis labmatrix web-accessible software ap...
...ce suite uses nss openswan implementation of ipsec for linux uses nss orca browser web browser gecko-based version of avant browser pale moon web browser optimized browser developed by moonchild productions for gnu/linux & windows platforms, originally forked from firefox palo suite excel extension uses prism partygaming on
line gaming product uses gecko pencil tool for making diagrams and gui prototyping available as a firefox extension or a standalone app pentaho bi suite commercial open source business intelligence uses xul and mozilla rhino persevere tools for persistence and distributed computing uses mozilla rhino phloneme publishing tool for vocab collab ...
...And 2 more matches
Localizing an extension - Archive of obsolete content
to add a reference to the correct locale file for a given xul file, we need to add one
line to the xul file.
... to options.xul, we add this
line: <!doctype window system "chrome://stockwatcher2/locale/options.dtd"> we add a similar
line to the stockwatcher.xul file: <!doctype overlay system "chrome://stockwatcher2/locale/stockwatcher2.dtd"> in larger applications you might need to use entities from several locale files in a single xul file.
...for example, in stockwatcher2.xul, we change this
line: <menuitem label="refresh now" oncommand="stockwatcher.refreshinformation()"/> to <menuitem label="&menu_refresh_now.label;" oncommand="stockwatcher.refreshinformation()"/> do this for every string used in each xul file.
...And 2 more matches
Monitoring WiFi access points - Archive of obsolete content
this object is described in
lines 11 through 40 in the code above.
... the onchange() method (
lines 13 through 27) begins by enabling universalxpconnect privileges, then clearing out the div (d) that will receive the updated list of access points.
... then the loop in
lines 19-22 iterates over the list of access points received in the accesspoints array and adds them to the html in the div.
...And 2 more matches
Notes on HTML Reflow - Archive of obsolete content
more than one frame may be needed to represent a single element from the content model; for example, text that wraps is broken into several frames, one per wrapped
line.
... in this case, the primary frame is the frame containing the first
line of text, with continuing frames (or continuations ) created for subsequent
lines.
...in order to correctly dispatch the reflow to the child frame, the frame may need to perform some state recovery ; for example, a block frame will traverse its
line list to recover the space occupied by floated frames.
...And 2 more matches
Getting Started - Archive of obsolete content
on every
line that references <code>classic.jar we need to make some changes (there are about 5
lines).
...if it doesn't appear as you expected, then go back into the installed-chrome.txt file and double check that you modified the
lines correctly.
... the first
line should match the
line that you modified in the previous section.
...And 2 more matches
Dehydra Function Reference - Archive of obsolete content
gcc command
line -fplugin=/path/to/gcc_dehydra.so -fplugin-arg-gcc_dehydra=/path/to/your/script.js callback functions the following functions may be provided by the analysis script and will be called by dehydra while compiling.
... process_function(decl, body) dehydra calls this for each function definition (declarations without bodies are not included), including both top-level functions, class member functions, and in
line class member functions.
... decl is a variable type object representing the function being processed body is an array of {loc:, statements:array of variable types} representing an out
line of the function stripped down to variables, function calls and assignments.
...And 2 more matches
New Skin Notes - Archive of obsolete content
--maian 21:08, 1 sep 2005 (pdt) in the new mw1.5 skin (not the one currently available here) there's class "wrong" and class "wrong-in
line".
...--nickolay 09:19, 25 aug 2005 (pdt) (moving this to a new item) on the contrary, the list of categories current page belongs to, should be near the footer (see mdc:policies_and_guide
lines page) (dria: fix catlinks style) the arrows that appear if you select "enhanced recent changes" in your preferences have an ugly border around them.
...--dria the buttons in the upper-right of the horizontal nav-bar don't really feel like buttons; maybe add a pseudo-class for onhover that gives them an under
line?
...And 2 more matches
Code Samples - Archive of obsolete content
change the first
line to specify the file that you want to launch.
...change the first
line to specify the page that you want to open: const url = "http://www.mozilla.org/" document .getelementbyid("content") .webnavigation .loaduri(url, 0, null, null, null) if your button is in thunderbird or sunbird, use code like this to open a web page.
... change the first
line to specify the page that you want to open: const url = "http://www.mozilla.org/" var uri = components .classes["@mozilla.org/network/simple-uri;1"] .getservice(components.interfaces.nsiuri) uri.spec = url components .classes["@mozilla.org/uriloader/external-protocol-service;1"] .getservice(components.interfaces.nsiexternalprotocolservice) .loadurl(uri) compose an e-mail to compose an e-mail, use the same code as in the section open a web page above.
...And 2 more matches
Adding Style Sheets - Archive of obsolete content
the second
line has always been: <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> this
line indicates that we want to use the style provided by chrome://global/skin/.
...you could leave the
line out and the elements will still work, however they will look fairly plain.
...first, the modifed
lines of findfile.xul: <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="findfile.css" type="text/css"?> ...
...And 2 more matches
Table Reflow Internals - Archive of obsolete content
the reflowee returns a reflow status which indicates if it is complete, and thus not have to continue (split) breaking status (in the case of some in
line frames) if there is truncation (it can't fit in the space and can't split).
...a text run) user defined - currently only used for fixed positioned frames kinds of reflows incremental reflow (continued) reflower not allowed to change available size of reflowee reflow commands get coalesced to stream
line processing style change a target changed stylistic if there is a target, otherwise every frame may need to respond parent of target usually turns it into an incremental reflow with a style changed command type table frames nstableouter frame ↙ ↘ nstable frame nstablecaption frame ↙ ↘ ↓ nstablecol groupframe nst...
...the page was incomplete because the page content was incomplete because the doc root was incomplete the doc root was incomplete because it contained
lines that didn't fit (or if it was mapped to a table, because the table didn't fit) becacause a
line contained something that didn't fit, etc.
...And 2 more matches
E4X for templating - Archive of obsolete content
security and escaping function e (str) { if (typeof str === 'xml') {str = str.tostring();} return str; } function quot (s) { // useful for placing user input within in
line javascript; may be combined with escape function above as well if (typeof s === 'string') { return s.replace(/"/g, '"').replace(/'/g, '''); } if (typeof s === 'xml') { return s.tostring().replace(/"/g, '"').replace(/'/g, '''); } return string(s).replace(/"/g, '"').replace(/'/g, '''); } localization e4x works nicely with a simple u...
...sion closure (i.e., without needing return statements and braces): {_if(elems.length(), function () <> <markup/> <markup/> </>)} note that, while it is convenient to store such e4x in separate file templates (to be eval()d at a later time, taking into account security considerations, such as escaping with the above), e4x content using such functions can also be easily serialized in
line (and then perhaps converted to the dom) as needed: var list = <>{_if(elems.length(), function () <> <markup/> <markup/> </>)}</>.toxmlstring(); iterating functions such as the following foreach (which can work with arrays, objects, or e4x objects) are quite convenient in iterating over complex structures such as e4x would not normally allow.
...ne param (see below) ++it; } } else { for (k in arr) { if (it < min) { ++it; continue; } if (it > max) { break; } ret+=h(k, arr[k], it, lev); ++it; } } return ret; } the following real case example iterates over an array of the
lines in an e4x child element to produce an xmllist of multiple vbox's representing each
line: <vbox> {foreach(e(someel.somechild[0]).split('\n'), function (
line) <description>{
line}</description> )} </vbox> the following example shows iteration over an e4x object itself: {foreach(elems, function (k, elem, iter) <> <row>{k}: {elem}</row> <row><image src="chrome://myext/skin/images/fill...
...And 2 more matches
Sharp variables in JavaScript - Archive of obsolete content
usage to create a sharp variable, simply assign an object to it in a
line of code using an equal sign.
...you can use this to create objects in a single
line of code that would otherwise take multiple
lines of code.
... examples multiple references var a = { foo:#1=[], bar:#1# }; a.foo.push("hello"); a.bar.push("there!"); alert(a.foo[1]); // "there!" you can avoid using sharp variables by breaking the declaration up into multiple
lines.
...And 2 more matches
XForms Alert Element - Archive of obsolete content
the message of the alert element can exist in instance data, in a remote document, or as in
line text.
... if more than one source of message is specified in this element, the order of precedence is: single node binding attributes, linking attributes, in
line text.
...this representation is used if the alert element has an in
line display style.
...And 2 more matches
Styling Abbreviations and Acronyms - Archive of obsolete content
this is to be encouraged, and according to guide
line 4 of the web content accessibility guide
lines, both elements should be given a title attribute to improve "readability of the web for all people, including those with learning disabilities, cognitive disabilities, or people who are deaf." the problem authors have discovered that any abbr or acronym that has a title attribute is rendered with a dotted under
line, per the following rule in resourc...
...e://gre-resources/html.css abbr[title], acronym[title] { text-decoration: dotted under
line; } the solution if authors wish to remove the under
line from abbr and acronym elements, this can be done with the following rule: abbr[title], acronym[title] { text-decoration: none; } it may be better to lessen the visual weight of the border without actually removing it.
... the under
line tells readers that the word in question has extra information associated with it.
...And 2 more matches
Explaining basic 3D theory - Game development
rendering pipe
line the rendering pipe
line is the process by which images are prepared and output onto the screen.
... the graphics rendering pipe
line takes the 3d objects built from primitives described using vertices, applies processing, calculates the fragments and renders them on the 2d screen as pixels.
... terminology used in the diagram above is as follows: a primitive: an input to the pipe
line — it's built from vertices and can be a triangle, point or
line.
...And 2 more matches
Building up a basic demo with PlayCanvas - Game development
it is open sourced on github, with an editor available on
line and good documentation.
... the on
line editor is free for public projects with up to two team members, but there are also paid plans if you'd like to run a commercial private project with more developers.
... engine vs editor the engine itself can be used as a standard library by including its javascript file directly in your html, so you can start coding right away; in addition the playcanvas toolset comes with an on
line editor that you can use to drag and drop components onto the scene — a great way to create games and other apps requiring scenes if you're more of a designer than a coder.
...And 2 more matches
3D games on the Web - Game development
shaders use glsl, a special opengl shading language, with syntax similar to c, that is executed directly by the graphics pipe
line.
...there are other popular game development libraries and frameworks worth checking too; a-frame, playcanvas and babylon.js are among the most recognizable ones with rich documentation, on
line editors and active communities.
... building up a basic demo with playcanvas playcanvas is a popular 3d webgl game engine open-sourced on github, with an editor available on
line and good documentation.
...And 2 more matches
Animations and tweens - Game development
next, we will load the spritesheet — put the following
line at the bottom of your preload() function: game.load.spritesheet('ball', 'img/wobble.png', 20, 20); instead of loading a single image of the ball we can load the whole spritesheet — a collection of different images.
... loading the animation next up, go into your create() function, find the
line that loads the ball sprite, and below it put the call to animations.add() seen below: ball = game.add.sprite(50, 250, 'ball'); ball.animations.add('wobble', [0,1,0,2,0,1,0,2,0], 24); to add an animation to the object we use the animations.add() method, which contains the following parameters the name we chose for the animation an array defining the order in which to display the frames during the animation.
... applying the animation when the ball hits the paddle in the arcade.collide() method call that handles the collision between the ball and the paddle (the first
line inside update(), see below) we can add an extra parameter that specifies a function to be executed every time the collision happens, in the same fashion as the ballhitbrick() function.
...And 2 more matches
Bézier curve - MDN Web Docs Glossary: Definitions of Web-related terms
to draw the curve, two imaginary
lines are drawn, one from p0 to p1 and the other from p1 to p2.
... the end points of the
lines are then steadily moved to the next point.
... a third imaginary
line is drawn with its starting point moving steadily on the first helper
line and the end point on the second helper
line.
...And 2 more matches
CRLF - MDN Web Docs Glossary: Definitions of Web-related terms
cr and lf are control characters or bytecode that can be used to mark a
line break in a text file.
... cr = carriage return (\r, 0x0d in hexadecimal, 13 in decimal) — moves the cursor to the beginning of the
line without advancing to the next
line.
... lf =
line feed (\n, 0x0a in hexadecimal, 10 in decimal) — moves the cursor down to the next
line without returning to the beginning of the
line.
...And 2 more matches
HTML: A good basis for accessibility - Learn web development
using presentational html and
line breaks, something like the following: <font size="7">my heading</font> <br><br> this is the first section of my document.
...if you access this with some screen readers, you may only be given a description along the
lines of "edit text." the following is a much better example: <div> <label for="name">fill in your name:</label> <input type="text" id="name" name="name"> </div> with code like this, the label will be clearly associated with the input; the description will be more like "fill in your name: edit text." as an added bonus, in most browsers associating a label with a form input means that you can...
... link styling by default, links are visually different from other text in both color and text-decoration, with links being blue and under
lined by default, purple and under
lined if visited, and with a focus-ring when they receive keyboard focus.
...And 2 more matches
HTML: A good basis for accessibility - Learn web development
using presentational html and
line breaks, something like the following: <font size="7">my heading</font> <br><br> this is the first section of my document.
...if you access this with some screen readers, you may only be given a description along the
lines of "edit text." the following is a much better example: <div> <label for="name">fill in your name:</label> <input type="text" id="name" name="name"> </div> with code like this, the label will be clearly associated with the input; the description will be more like "fill in your name: edit text." as an added bonus, in most browsers associating a label with a form input means that you can...
... link styling by default, links are visually different from other text in both color and text-decoration, with links being blue and under
lined by default, purple and under
lined if visited, and with a focus-ring when they receive keyboard focus.
...And 2 more matches
A cool-looking box - Learn web development
you could paste the html and fill in the css into one of these on
line editors.
... if the on
line editor you are using doesn't have a separate css panel, feel free to put it in a <style> element in the head of the document.
... a
linear semi-transparent black gradient that goes toward the bottom right corner.
...And 2 more matches
Creating fancy letterheaded paper - Learn web development
in this assessment we'll challenge you to create an on
line template to achieve such a look.
...you could paste the html and fill in the css into one of these on
line editors.
... if the on
line editor you are using doesn't have a separate css panel, feel free to put it in a <style> element in the head of the document.
...And 2 more matches
Test your skills: Images and Form elements - Learn web development
note: you can try out solutions in the interactive editors below, however, it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the example as displayed in the image: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
...And 2 more matches
Test your skills: Overflow - Learn web development
note: you can try out solutions in the interactive editors below, however, it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the example as displayed in the image: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
...And 2 more matches
Test your skills: tables - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
...in this task we are going to style the same table, but using some good practices for table design as out
lined in the external article web typography: designing tables to be read not looked at.
... for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
...And 2 more matches
Test your skills: backgrounds and borders - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
... the finished example should look like the image below: try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
...And 2 more matches
Legacy layout methods - Learn web development
they work by giving items a size, and pushing them around to
line them up in a way that looks like a grid.
...due to the way floats work, if the number of grid columns becomes too wide for the grid, the elements on the end will drop down to the next
line, breaking the grid.
... on the top
line we get twelve neat boxes on the grid and they grow and shrink equally as we change the viewport width.
...And 2 more matches
Test your skills: position - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the finished example: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
...And 2 more matches
Getting started with CSS - Learn web development
to link styles.css to index.html add the following
line somewhere inside the <head> of the html document: <link rel="stylesheet" href="styles.css"> this <link> element tells the browser that we have a stylesheet, using the rel attribute, and the location of that stylesheet as the value of the href attribute.
... 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 under
line, 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.
... we have removed the under
line on our link on hover.
...And 2 more matches
What text editors are available? - Learn web development
extensible atom mit/bsd free windows, mac, linux forum on
line manual yes bluefish gpl 3 free windows, mac, linux mailing list, wiki on
line manual yes brackets mit/bsd free windows, mac, linux forum, irc github wiki yes coda closed source $99 mac twitter, forum, e-mail ebook yes codelobster closed source free windows, mac, linux forum, e-mail no end us...
...er doc yes emacs gpl 3 free windows, mac, linux faq, mailing list, news group on
line manual yes espresso closed source $75 mac faq, e-mail no end user doc, but plug-in doc yes gedit gpl free windows, mac, linux mailing list, irc on
line manual yes kate lgpl, gpl free windows, mac, linux mailing list, irc on
line manual yes komodo edit mpl free windows, mac, linux forum on
line manual yes notepad++ gpl free windows forum wiki yes pspad closed source free windows faq, forum on
line help yes sublime text closed source $70 windows, mac, linux forum official, unofficial yes ...
...textmate closed source $50 mac twitter, irc, mailing list, e-mail on
line manual, wiki yes textwrangler closed source free mac faq, forum pdf manual no vim specific open license free windows, mac, linux mailing list on
line manual yes visual studio code open source under mit licence/ specific licence for product free windows, mac, linux faq documentation yes active learning in this active learning section, we would like you to try using and/or installing a text editor of your choice.
...And 2 more matches
What are browser developer tools? - Learn web development
next to each rule is the file name and
line number the rule is defined in.
... you can also click the closing curly brace of any rule to bring up a text box on a new
line, where you can write a completely new declaration for your page.
...in the following image, the highlight on the number 18 shows that the
line has a breakpoint set.
...And 2 more matches
Advanced form styling - Learn web development
for example, consider this simple test case: <span><input type="checkbox"></span> span { display: in
line-block; background: red; } input[type="checkbox"] { width: 100px; height: 100px; } different browsers handle this in many different, often ugly ways: browser rendering firefox 71 (macos) firefox 57 (windows 10) chrome 77 (macos), safari 13, opera chrome 63 (windows 10) internet explorer 11 (windows 10) ...
...unstyling the original check boxes: input[type="checkbox"] { -webkit-appearance: none; appearance: none; } we can use the :checked and :disabled pseudo-classes to change the appearance of our custom checkbox as its state changes: input[type="checkbox"] { position: relative; width: 1em; height: 1em; border: 1px solid gray; /* adjusts the position of the checkboxes on the text base
line */ vertical-align: -2px; /* set here so that windows' high-contrast mode can override */ color: green; } input[type="checkbox"]::before { content: "✔"; position: absolute; font-size: 1.2em; right: -1px; top: -0.3em; visibility: hidden; } input[type="checkbox"]:checked::before { /* use `visibility` instead of `display` to avoid recalculating layout */ visibility: visible;...
...you can use something like the following to remove the default slider track completely and replace it with a custom style (a thin red track, in this case): input[type="range"] { appearance: none; -webkit-appearance: none; background: red; height: 2px; padding: 0; out
line: 1px solid transparent; } however, it is very difficult to customize the style of the range control's drag handle — to get full control over range styling you'll need to use a whole bunch of complex css code, including multiple non-standard, browser-specific pseudo-elements.
...And 2 more matches
Basic native form controls - Learn web development
it is used for creating most types of form widgets including single
line text fields, time and date controls, controls without text input like checkboxes, radio buttons, and color pickers, and buttons.
... single
line text fields a single
line text field is created using an <input> element whose type attribute value is set to text, or by omitting the type attribute altogether (text is the default value).
... note: you can find examples of all the single
line text field types on github at single-
line-text-fields.html (see it live also).
...And 2 more matches
Client-side form validation - Learn web development
(required)</label> <input id="choose" name="i_like" required> <button>submit</button> </form> note the css that is included in the example file: input:invalid { border: 2px dashed red; } input:invalid:required { background-image:
linear-gradient(to right, pink, lightgreen); } input:valid { border: 2px solid black; } this css causes the input to have a red dashed border when it is invalid and a more subtle solid black border when valid.
...it isn't only good user experience, it is required by wcag accessibility guide
lines.
...; padding: 0; margin : 0 auto; } p * { display: block; } input[type=email]{ -webkit-appearance: none; appearance: none; width: 100%; border: 1px solid #333; margin: 0; font-family: inherit; font-size: 90%; box-sizing: border-box; } /* this is our style for the invalid fields */ input:invalid{ border-color: #900; background-color: #fdd; } input:focus:invalid { out
line: none; } /* this is the style of our error messages */ .error { width : 100%; padding: 0; font-size: 80%; color: white; background-color: #900; border-radius: 0 0 5px 5px; box-sizing: border-box; } .error.active { padding: 0.3em; } now lets look at the javascript that implements the custom error validation.
...And 2 more matches
Other form controls - Learn web development
previous overview: forms next we now look at the functionality of non-<input> form elements in detail, from other control types such as drop-down lists and multi-
line text fields, to other useful form features such as the <output> element (which we saw in action in the previous article), and progress bars.
... multi-
line text fields a multi-
line text field is specified using a <textarea> element, rather than using the <input> element.
... <textarea cols="30" rows="8"></textarea> this renders like so: the main difference between a <textarea> and a regular single
line text field is that users are allowed to include hard
line breaks (i.e.
...And 2 more matches
Test your skills: HTML5 controls - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
...create appropriate inputs for a user to update their details for: email website phone number favourite color try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
...And 2 more matches
Test your skills: Styling basics - Learn web development
note: you can try out solutions by editing the starting point file locally, however it may be helpful to put your code in an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... use some kind of layout technique to make the inputs and labels
line up neatly.
... download the starting point for this task to work in your own editor or in an on
line editor.
...And 2 more matches
Publishing your website - Learn web development
previous overview: getting started with the web next once you finish writing the code and organizing the files that make up your website, you need to put it all on
line so people can find it.
... this article explains how to get your simple sample code on
line with little effort.
... many professional websites go on
line this way.
...And 2 more matches
Test your skills: Advanced HTML text - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
... try updating the live code below to recreate the finished example: download the starting point for this task to work in your own editor or in an on
line editor.
...And 2 more matches
From object to iframe — other embedding technologies - Learn web development
the on
line world is very familiar with youtube, but many people don't know about some of the sharing facilities it has available.
... click on the "hamburger menu" (three horizontal
lines) in the top left of the ui.
...this is great for incorporating third-party content into your website that you might not have direct control over and don't want to have to implement your own version of — such as video from on
line video providers, commenting systems like disqus, maps from on
line map providers, advertising banners, etc.
...And 2 more matches
Looping code - Learn web development
in comments, we've provided you with three code
lines that need to be used somewhere inside the loop: const para = document.createelement('p'); — creates a new paragraph.
... different iteration numbers require different text to be put in the paragraph for that iteration (you'll need a conditional statement and multiple para.textcontent =
lines): if the number is 10, print "countdown 10" to the paragraph.
... refused.textcontent += — the beginnings of a
line that will concatenate something on to the end of refused.textcontent.
...And 2 more matches
JavaScript object basics - Learn web development
try entering the following
line below the javascript code that's already in your file, then saving and refreshing: const person = {}; now open your browser's javascript console, enter person into it, and press enter/return.
... you should get a result similar to one of the below
lines: [object object] object { } { } congratulations, you've just created your first object.
... setting object members so far we've only looked at retrieving (or getting) object members — you can also set (update) the value of object members by simply declaring the member you want to set (using dot or bracket notation), like this: person.age = 45; person['name']['last'] = 'cratchit'; try entering the above
lines, and then getting the members again to see how they've changed, like so: person.age person['name']['last'] setting members doesn't just stop at updating the values of existing properties and methods; you can also create completely new members.
...And 2 more matches
Multimedia: video - Learn web development
if not, there are on
line tools, such as ffmpeg (discussed in section below), that encode, decode, convert, and perform other optimization functions.
... video autoplay to ensure that a looping background video autoplays, you must add several attributes to the video tag: autoplay, muted, and playsin
line.
... <video autoplay="" loop="" muted="true" playsin
line="" src="backgroundvideo.mp4"> while the loop and autoplay make sense for a looping and autoplaying video, the muted attribute is required for autoplay in mobile browsers.
...And 2 more matches
Ember Interactivity: Footer functionality, conditional rendering - Learn web development
prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
... first of all, replace this
line: <strong>0</strong> todos left with this, which populates the incomplete number with the length of the incomplete array: <strong>{{this.todos.incomplete.length}}</strong> todos left next, replace this: <button type="button" class="clear-completed"> with this: <button type="button" class="clear-completed" {{on 'click' this.todos.clearcompleted}}> so now when the button ...
...note that here we need this.incomplete.length, not this.todos.incomplete.length, because we are doing this inside the service, where the incomplete() getter is available directly (in the template, the contents of the service has been made available as todos via the @service('todo-data') todos;
line inside the footer class, hence it being this.todos.incomplete.length there).
...And 2 more matches
Introduction to client-side frameworks - Learn web development
on buildtodoitemel(id, name) { const item = document.createelement('li'); const span = document.createelement('span'); const textcontent = document.createtextnode(name); span.appendchild(textcontent) item.id = id; item.appendchild(span); item.appendchild(builddeletebuttonel(id)); return item; } here, we use the document.createelement() method to make our <li>, and several more
lines of code to create the properties and children it needs.
... the tenth
line of this snippet references another build function: builddeletebuttonel().
... on the page might read something like this: function rendertodolist() { const frag = document.createdocumentfragment(); state.tasks.foreach(task => { const item = buildtodoitemel(task.id, task.name); frag.appendchild(item); }); while (todolistel.firstchild) { todolistel.removechild(todolistel.firstchild); } todolistel.appendchild(frag); } we've now got well over thirty
lines of code 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!
...And 2 more matches
Accessibility in React - Learn web development
prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command
line.
...you'll see a thick, dashed out
line around that input.
... this out
line is your visual indicator that the browser is currently focused on this element.
...And 2 more matches
Vue conditional rendering: editing existing todos - Learn web development
prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command
line.
...el && this.newlabel !== this.label) { this.$emit("item-edited", this.newlabel); } }, oncancel() { this.$emit("edit-cancelled"); } } }; </script> <style scoped> .edit-label { font-family: arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #0b0c0c; display: block; margin-bottom: 5px; } input { display: in
line-block; margin-top: 0.4rem; width: 100%; min-height: 4.4rem; padding: 0.4rem 0.8rem; border: 2px solid #565656; } form { display: flex; flex-direction: row; flex-wrap: wrap; } form > * { flex: 0 0 100%; } </style> note: walk through the above code then read the below description to make sure you understand everything the component is doing before moving on.
... first of all add v-if="!isediting" to the root <div> in your todoitem component, <div class="stack-small" v-if="!isediting"> next, below that <div>'s closing tag add the following
line: <to-do-item-edit-form v-else :id="id" :label="label"></to-do-item-edit-form> we also need to import and register the todoitemeditform component, so we can use it inside this template.
...And 2 more matches
Adding a new CSS property
parsing to start implementing the parsing, first read the syntax
line in the property's specification (whose syntax is in turn defined in the css values and units specification) and any prose in the specification that adds additional restrictions to that syntax.
... some common mistakes to watch out for when writing custom parsing code (which might go away if we redesign the parser along the
lines described in css3-syntax): make sure to call skipuntil() to look for the matching close parentheses, braces, or brackets whenever you hit an error inside of them.
... (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.
...And 2 more matches
Debugging JavaScript
you can also start the browser console when you launch firefox, by launching firefox from the command
line and passing --jsconsole as a flag: /path/to/firefox --jsconsole log to the browser console using the standard console api after importing console.jsm: let console = (cu.import("resource://gre/modules/console.jsm", {})).console; console.log("hello from firefox code"); error console this is obsolete and is no longer enabled in firefox by default.
... console.log in browser console you can dump variables in the browser console from addon code, by adding this
line to import the console utility: const { console } = components.utils.import("resource://gre/modules/devtools/console.jsm", {}); this has an advantage over dump in that you can list out properties of an object logged with console.log.
...use \n to output a new
line at the end.
...And 2 more matches
Debugging on Windows
if you have followed the steps in building firefox for windows and have a local debug build, you can execute ./mach run --debug from the same command
line.
... command
line parameters and environment variables vc++ 6.0: to change or set the command
line options, go to project > settings..., debug tab and select general from the drop down list.
...check the memory address for that
line.
...And 2 more matches
Simple Thunderbird build
build configuration to build thunderbird, you need to add a file named mozconfig to the root directory of the mozilla-central checkout that contains the following
line: ac_add_options --enable-application=comm/mail you can create a file with this
line by doing this in the source/ directory: echo 'ac_add_options --enable-application=comm/mail' > mozconfig if you omit this
line, the build system will build firefox instead.
...for example, to create a debug build instead of a release build, that file would also contain the
line: ac_add_options --enable-debug each of these ac_add_options entries needs to be on its own
line.
... add the following
line to your mozconfig file: ac_add_options --enable-calendar to add that
line you can do this in the source/ directory: echo 'ac_add_options --enable-calendar' >> mozconfig building before you start, make sure that the version you checked out is not busted.
...And 2 more matches
ESLint
this automatic linting can happen either while coding, in a code editor, or when using the command
line.
... more information: out
line details of the rules rule source code common issues and how to solve them my editor says that "mozilla/whatever" is unknown run ./mach eslint --setup restart your editor if that doesn't work, check that you have your editor pointing to the correct node_modules folder.
... add a
line like: /* eslint-env mozilla/browser-window */ or enable the rule in a .eslintrc.js if it will apply to the whole directory.
...And 2 more matches
HTML parser threading
the speculation object has a queue of tree ops (into which the tree builder will now flush ops to instead of the tree op stage), an owning reference to the nshtml5owningutf16buffer that contains the starting point of the speculation, an index into the nshtml5owningutf16buffer defining the exact starting point within the buffer, the
line number of the tokenizer at that point and a snapshot of the tree op state.
... the
line number and the snapshot are also added to the tree op that attempts to execute scripts (before flushing it).
...this operation either executes an in
line script right away or tells the parser to block (for external scripts).
...And 2 more matches
How to implement a custom autocomplete search component
if (this._comments) return this._comments[index]; else return ''; }, /** * @return {string} the style hint for the result at the given index */ getstyleat: function(index) { if (!this._comments || !this._comments[index]) return null; // not a category label, so no special styling if (index == 0) return 'suggestfirst'; // category label on first
line of results return 'suggesthint'; // category label on any other
line of results }, /** * gets the image for the result at the given index * * @return {string} the uri to the image to display */ getimageat : function (index) { return ''; }, /** * get the final value that should be completed when the user confirms * the match at the given index.
... var autocomplete_result = new providerautocompleteresult(searchstring, ci.nsiautocompleteresult.result_success, 0, "", results, null); listener.onsearchresult(this, autocomplete_result); }, /** * stops an asynchronous search that is in progress */ stopsearch: function() { }, queryinterface: xpcomutils.generateqi([ ci.nsiautocompletesearch ]) }; // the following
line is what xpcom uses to create components const nsgetfactory = xpcomutils.generatensgetfactory([ providerautocompletesearch ]); then register your xpcom component.
...comment of the result at the given index */ getcommentat: function(index) { return this._comments[index]; }, /** * get the style hint for the result at the given index */ getstyleat: function(index) { if (!this._comments[index]) return null; // not a category label, so no special styling if (index == 0) return "suggestfirst"; // category label on first
line of results return "suggesthint"; // category label on any other
line of results }, /** * get the image for the result at the given index * the return value is expected to be an uri to the image to display */ getimageat : function (index) { return ""; }, /** * get the final value that should be completed when the user confirms * the match at the given index.
...And 2 more matches
Examples
led for reason = "' + uneval(arejectreason) + '"'); } ); function myuserdefinedpromise() { try { //var myvariscommented = 'hi'; // i commented this out s oit is undefined, this will cause rejected alert(myvariscommented); return promise.resolve('yay success'); // this makes the success function trigger with asuccessreason being 'yay success' but because i commented out the var 2
lines above, it will error out on the alert(myvariscommented) and never get to this success
line.
... uncommet the var 2
lines above to see the promise succesfully return } catch(ex) { return promise.reject(ex); } } copy and paste this code and the rejection will take place.
... uncomment the
line `//var myvariscommented.....` and the promise will complete succesfully.
...And 2 more matches
Localizing with Koala
when the comparison is done, you should see a new
line in "last used compares" section of koala's startpage.
...for the purposes of this tutorial, we will switch to the command
line every now and then to see what koala does behind the scenes.
... normally though, you don't have to use the command
line to commit your work.
...And 2 more matches
gettext
} else { return _($message); } } // new gettext keyword for plural strings with optional context argument function n___($message, $message_plural, $num, $context ="") { if($context != "") { return npgettext($context, $message, $message_plural, $num); } else { return ngettext($message, $message_plural, $num); } } // l10n: this is a block comment one
line directly above the gettext function call.
...echo ___('a simple string.'); echo /* l10n: this is an in
line comment.
...printf(n___("%d user likes this.", "%d users like this.", $num), $num); // l10n: this block comment will not be extracted by xgettext because it's two
lines above the gettext function call.
...And 2 more matches
Investigating leaks using DMD heap scan mode
with that command
line in hand, you can start firefox.
... known edges: 0x7f08975a24c0 [fragmentorelement (xhtml) head https://www.example.com] --[mattrsandchildren[i]]--> 0x7f0882fe3230 0x7f08967e7b20 [js object (htmlscriptelement)] --[unwrapdomobject(obj)]--> 0x7f0882fe3230 the first two
lines mean that the script element 0x7f0882fe3230 contains a strong reference to the eventlistenermanager 0x7f0899b4e550.
...together, these
lines show a chain of strong references from an object the cycle collector thinks needs to be kept alive, 0x7f0899b4e550, to the object 0x7f0897082c00 that you asked about.
...And 2 more matches
DMD
you will be able to get function names, but not
line numbers.
... if you see the "opened"
line, it tells you where the file was saved.
...also, add this
line to build/mozconfig.common: moz_crashreporter_upload_full_symbols=1 launch on a local build, use mach run --dmd; use --mode to choose the mode.
...And 2 more matches
Performance
tools/power/rapl (mac, linux) tools/power/rapl is a command-
line utility in the mozilla codebase that uses the intel rapl interface to gather direct power estimates for the package, cores, gpu and memory.
... powermetrics (mac-only) powermetrics is a command-
line utility that gathers and displays a wide range of global and per-process measurements, including cpu usage, gpu usage, and various wakeups frequencies.
... perf (linux-only) perf is a powerful command-
line utility that can measure many different things, including energy estimates and high-context measurements of things such as wakeups.
...And 2 more matches
NSS Sample Code Utilities_1
*/ /* * new
line */ static void new
line(prfiledesc* out) { pr_fprintf(out, "\n"); } /* * printasascii */ void printasascii(prfiledesc* out, const unsigned char *data, unsigned int len) { char *b64data = null; b64data = btoa_datatoascii(data, len); pr_fprintf(out, "%s", b64data); pr_fprintf(out, "\n"); if (b64data) { port_free(b64data); } } /* * printashex */ void printa...
...n = level; if (!len) { pr_fprintf(out, "(empty)\n"); return; } for (i = 0; i < len; i++) { if (i != len - 1) { pr_fprintf(out, "%02x:", data[i]); column += 3; } else { pr_fprintf(out, "%02x", data[i]); column += 2; break; } if (column > 76 || (i % 16 == limit)) { new
line(out); column = level; limit = i % 16; } } if (column != level) { new
line(out); } } /* * getdigit */ int getdigit(char c) { if (c == 0) { return -1; } if (c <= '9' && c >= '0') { return c - '0'; } if (c <= 'f' && c >= 'a') { return c - 'a' + 0xa; } if (c <= 'f' && c >= 'a') { return c...
... = fileno(input); int istty = isatty(infd); for (;;) { /* prompt for password */ if (istty) { fprintf(output, "%s", prompt); fflush (output); echooff(infd); } fgets(phrase, sizeof(phrase), input); if (istty) { fprintf(output, "\n"); echoon(infd); } /* stomp on new
line */ phrase[port_strlen(phrase)-1] = 0; /* validate password */ if (!(*ok)(phrase)) { if (!istty) return 0; fprintf(output, "password must be at least 8 characters long with one or more\n"); fprintf(output, "non-alphabetic characters\n"); continue; } return (char*) port_strdup(phrase); } } /* * filepasswd ...
...And 2 more matches
Tutorial: Embedding Rhino
all it does it read a script from the command
line, execute it, and print a result.
... here's an example use of runscript from a shell command
line: $ java runscript "math.cos(math.pi)" -1 $ java runscript "function f(x){return x+1} f(7)" 8 note that you'll have to have both the rhino classes and the runscript example class file in the classpath.
... let's step through the body of main one
line at time.
...And 2 more matches
Rhino shell
arguments the arguments object is an array containing the strings of all the arguments given at the command
line when the shell was invoked.
... examples invocation here the shell is invoked three times from the command
line.
... (the system command prompt is shown as $.) the first invocation executes a script specified on the command
line itself.
...And 2 more matches
Tracing JIT
lir is a conventional three-address,
linear ssa code.
... the recorder in jstracer inserts lins values into a lir buffer held in a page, itself contained within a logical fragment, and the nanojit compilation pipe
line and assembler transform the lins values into nins values.
... a fragment represents a single
linear code sequence, typically terminating in a jump to another fragment or back to the beginning of the fragment.
...And 2 more matches
JS_CompileScriptForPrincipals
syntax jsscript * js_compilescriptforprincipals(jscontext *cx, jsobject *obj, jsprincipals *principals, const char *src, size_t length, const char *filename, unsigned int
lineno); jsscript * js_compileucscriptforprincipals(jscontext *cx, jsobject *obj, jsprincipals *principals, const jschar *src, size_t length, const char *filename, unsigned int
lineno); jsobject * js_compilescriptforprincipalsversion(jscontext *cx, jsobject *obj, jsprincipals *principals, const char *src, size_t length, const char *filename, unsigned int
lineno, jsversion version); /...
.../ obsoleted since jsapi 19 jsobject * js_compileucscriptforprincipalsversion(jscontext *cx, jsobject *obj, jsprincipals *principals, const jschar *src, size_t length, const char *filename, unsigned int
lineno, jsversion version); // obsoleted since jsapi 19 name type description cx jscontext * the context in which to compile the script.
...
lineno unsigned int
line number.
...And 2 more matches
JS_EvaluateScriptForPrincipals
syntax jsbool js_evaluatescriptforprincipals(jscontext *cx, jsobject *obj, jsprincipals *principals, const char *src, unsigned int length, const char *filename, unsigned int
lineno, jsval *rval); jsbool js_evaluatescriptucforprincipals(jscontext *cx, jsobject *obj, jsprincipals *principals, const jschar *src, unsigned int length, const char *filename, unsigned int
lineno, jsval *rval); jsbool js_evaluatescriptforprincipalsversion(jscontext *cx, jsobject *obj, jsprincipals *principals, const char *bytes, unsigned int length, const char *filename, unsigned...
... int
lineno, jsval *rval, jsversion version); jsbool js_evaluateucscriptforprincipalsversion(jscontext *cx, jsobject *obj, jsprincipals *principals, const jschar *chars, unsigned int length, const char *filename, unsigned int
lineno, jsval *rval, jsversion version); name type description cx jscontext * the context in which to run the script.
...
lineno unsigned int
line number.
...And 2 more matches
WebReplayRoadmap
time travel features more features are planned for the time
line, as described below.
... these messages will show up on the time
line and can be seeked to in the same way as other console messages.
... bookmarks (not yet implemented) it would be nice to be able to bookmark points in the recording so that they show up on the time
line and can be seeked to later.
...And 2 more matches
imgIContainer
nsiframe getrootlayoutframe(); violates the xpcom interface guide
lines pruint16 gettype(); violates the xpcom interface guide
lines void init(in print32 awidth, in print32 aheight, in imgicontainerobserver aobserver); obsolete since gecko 2.0 void lockimage(); void removeframe(in gfxiimageframe item); obsolete since gecko 1.9.2 void requestdecode(); void requestdiscard(); void requestrefresh([const]...
... in timestamp atime); violates the xpcom interface guide
lines void resetanimation(); void restoredatadone(); native code only!
...return value missing description exceptions thrown missing exception missing description violates the xpcom interface guide
lines getrootlayoutframe() if this image is type_vector, that is really an embedded svg document, and this method returns a pointer to the root nsiframe of that document.
...And 2 more matches
nsIAppShellService
tate(in long awindowwidth, in long awindowheight); obsolete since gecko 1.8 nsixulwindow createtoplevelwindow(in nsixulwindow aparent, in nsiuri aurl, in pruint32 achromemask, in long ainitialwidth, in long ainitialheight, in nsiappshell aappshell); nsiwebnav createwindowlessbrowser (in bool aischrome) void destroyhiddenwindow(); void doprofilestartup(in nsicmd
lineservice acmd
lineservice, in boolean caninteract); obsolete since gecko 1.8 void ensure1window(in nsicmd
lineservice acmd
lineservice); obsolete since gecko 1.8 void enterlastwindowclosingsurvivalarea(); obsolete since gecko 1.8 void exitlastwindowclosingsurvivalarea(); obsolete since gecko 1.8 void gethiddenwindowandjscontext(out nsidomwindow ahiddendomwindow, out...
... void hidesplashscreen(); obsolete since gecko 1.8 void initialize(in nsicmd
lineservice acmd
lineservice, in nsisupports nativeappsupportorsplashscreen); obsolete since gecko 1.8 void quit(in pruint32 aferocity); obsolete since gecko 1.8 void registertoplevelwindow(in nsixulwindow awindow); void run(); obsolete since gecko 1.8 void toplevelwindowismodal(in nsixulwindow awindow, in boolean amodal); obsolete since gecko 1.9.1 void unregistertoplevelwindow(in nsixulwindow awindow); note: prior to gecko 8.0, all references to nsidomwindow used in this interface were nsidomwindowinternal.
... void doprofilestartup( in nsicmd
lineservice acmd
lineservice, in boolean caninteract ); parameters acmd
lineservice the arguments given to the program.
...And 2 more matches
nsIDOMStorageManager
dom/interfaces/storage/nsidomstoragemanager.idlscriptable this interface provides methods for managing data stored in the off
line apps cache.
... 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) implemented by @mozilla.org/dom/storagemanager;1 as a service: var domstoragemanager = components.classes["@mozilla.org/dom/storagemanager;1"] .getservice(components.interfaces.nsidomstoragemanager); method overview void clearoff
lineapps(); nsidomstorage getlocalstorageforprincipal(in nsiprincipal aprincipal, in domstring adocumenturi); long getusage(in astring aownerdomain); methods clearoff
lineapps() clears keys owned by off
line applications.
... all data owned by a domain with the "off
line-app" permission is removed from the database.
...And 2 more matches
nsISHEntry
nsdocshelleditordataptr forgeteditordata(); violates the xpcom interface guide
lines nsicontentviewer getanycontentviewer(out nsishentry ownerentry); void getscrollposition(out long x, out long y); void getviewerbounds(in nsintrect bounds); native code only!
... boolean hasdetachededitor(); violates the xpcom interface guide
lines boolean hasdynamicallyaddedchild(); boolean isdynamicallyadded(); void seteditordata(in nsdocshelleditordataptr adata); violates the xpcom interface guide
lines void setissubframe(in boolean aflag); void setscrollposition(in long x, in long y); void settitle(in astring atitle); void setuniquedocidentifier(); void seturi(in nsiuri auri); void setviewerbounds(in nsintrect bounds); native code only!
... 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 ); parameters uri title inputstream layouthistorystate cachekey contenttype owner docshellid dynamiccreation violates the xpcom interface guide
lines forgeteditordata() gets the owning pointer to the editor data assosicated with this shistory entry.
...And 2 more matches
Search - Firefox Developer Tools
the debugger will display the number of matches in the code and highlight each result: using the out
line tab if you are searching for a specific function within the current javascript file, you can use the out
line tab in the debugger to find it quickly.
... the out
line tab lists the functions in the current file.
...enter text into the text input above the list to limit the results in the out
line.
...And 2 more matches
Network request details - Firefox Developer Tools
for each
line in the response headers section, a question mark links to the documentation for that response header, if one is available.
... { "name": "accept-ranges", "value": "bytes" }, { "name": "age", "value": "0" }, { "name": "backend-timing", "value": "d=74716 t=1560258099074460" }, { "name": "cache-control", "value": "private, must-revalidate, max-age=0" }, { "name": "content-disposition", "value": "in
line; filename=api-result.js" }, { "name": "content-encoding", "value": "gzip" }, { "name": "content-length", "value": "673" }, { "name": "content-type", "value": "text/javascript; charset=utf-8" }, { "name": "date", "value": "tue, 11 jun 2019 13:01:39 gmt" }, { "name": "...
...for each
line in the request headers section, a question mark links to the documentation for that request header, if one is available.
...And 2 more matches
Network request list - Firefox Developer Tools
time
line the request list also displays a time
line for the different parts of each request.
... each time
line is given a horizontal position in its row relative to the other network requests, so you can see the total time taken to load the page.
... starting in firefox 45, the time
line also contains two vertical
lines: the blue
line marks the point at which the page's domcontentloaded event is triggered.
...And 2 more matches
Edit Shape Paths in CSS - Firefox Developer Tools
understanding the
lines drawn by the editor once you have selected a shape on your page, the shape path editor will draw
lines to help you understand the path that is being created.
... a solid
line shows the out
line of the shape that is wrapping the text.
...if the shape is clipped by the margin box then the margin box will make up part of this
line.
...And 2 more matches
Edit fonts - Firefox Developer Tools
note: if you want to use a different unit such as pt for font-size or
line-height, you can set the property value applied to the currently inspected element to use that unit via the rules view, and the font editor will automatically pick it up and make it available in the associated units dropdown menu.
...
line height the
line-height of the inspected element.
... example: if the font is 20 pixels high and the
line-height is 1.5em, when you change the unit of measure from em to px, the value will become 30px.
...And 2 more matches
Style Editor - Firefox Developer Tools
the editor provides
line numbers and syntax highlighting to help make it easier to read your css.
...the sidebar lists the rules and provides a link to the
line of the sheet where the rule is defined.
... actually instruct the preprocessor to generate a source map, for example by passing the --source-map argument to the lass command-
line tool, but in some preprocessors like sass, source maps are generated by default and you don't need to do anything.
...And 2 more matches
AnalyserNode - Web APIs
number of inputs 1 number of outputs 1 (but may be left unconnected) channel count mode "max" channel count 2 channel interpretation "speakers" inheritance this interface inherits from the following parent interfaces: <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">audionode</text></a><poly
line 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-base
line="middle">analysernode</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor analysernode() creates a new instance of an analysernode object.
...And 2 more matches
Animation() - Web APIs
syntax var animation = new animation([effect][, time
line]); parameters effect optional the target effect, as an object based on the animationeffectreadonly interface, to assign to the animation.
... time
line optional specifies the time
line with which to associate the animation, as an object of a type based on the animationtime
line interface.
... currently the only time
line type available is documenttime
line, but in the future there my be time
lines associated with gestures or scrolling, for example.
...And 2 more matches
Background Tasks API - Web APIs
the callback is passed an object which conforms to idledead
line, with didtimeout set to false and a timeremaining() method which is implemented to give the callback 50 milliseconds of time to begin with.
... interfaces the background tasks api adds only one new interface: idledead
line an object of this type is passed to the idle callback to provide an estimate of how long the idle period is expected to last, as well as whether or not the callback is running because its timeout period has expired.
...lightblue; border-bottom: 1px solid black; border-radius: 6px 6px 0 0; } #log { font: 12px "courier", monospace; padding: 6px; overflow: auto; overflow-y: scroll; width: 388px; height: 460px; } .container { width: 400px; padding: 6px; border-radius: 6px; border: 1px solid black; box-shadow: 4px 4px 2px black; display: block; overflow: auto; } .label { display: in
line-block; } .counter { text-align: right; padding-top: 4px; float: right; } .button { padding-top: 2px; padding-bottom: 4px; width: 100px; display: in
line-block; float: left; border: 1px solid black; cursor: pointer; text-align: center; margin-top: 0; color: white; background-color: darkgreen; } #progress { width: 100%; padding-top: 6px; } javascript content now...
...And 2 more matches
Using the CSS Typed Object Model - Web APIs
update the javascript on
line 2 to select the <p> rather than the <a>.
...terest[i])); styleslist.appendchild(cssproperty); // values const cssvalue = document.createelement('dd'); cssvalue.appendchild(document.createtextnode( allcomputedstyles.get(ofinterest[i]))); styleslist.appendchild(cssvalue); } we included border-left-color to demonstrate that, had we included all the properties, every value that defaults to currentcolor (including caret-color, out
line-color, text-decoration-color, column-rule-color, etc.) would return rgb(255, 0, 0).
...we'll take a look at that their types are by employing short javascript snippets outputting to console.log(): :root { --maincolor: hsl(198, 43%, 42%); --black: hsl(0, 0%, 16%); --white: hsl(0,0%,97%); --unit: 1.2rem; } button { --maincolor: hsl(198, 100%, 66%); display: in
line-block; padding: var(--unit) calc(var(--unit)*2); width: calc(30% + 20px); background: no-repeat 5% center url(https://mdn.mozillademos.org/files/16793/magicwand.png) var(--maincolor); border: 4px solid var(--maincolor); border-radius: 2px; font-size: calc(var(--unit)*2); color: var(--white); cursor: pointer; transform: scale(0.95); } let's add the class to a button (a button which does ...
...And 2 more matches
Manipulating video using canvas - Web APIs
i = 0; i < l; i++) { let r = frame.data[i * 4 + 0]; let g = frame.data[i * 4 + 1]; let b = frame.data[i * 4 + 2]; if (g > 100 && r > 100 && b < 43) frame.data[i * 4 + 3] = 0; } this.ctx2.putimagedata(frame, 0, 0); return; } when this routine is called, the video element is displaying the most recent frame of video data, which looks like this: in
line 2, that frame of video is copied into the graphics context ctx1 of the first canvas, specifying as the height and width the values we previously saved to draw the frame at half size.
... the result is:
line 3 fetches a copy of the raw graphics data for the current frame of video by calling the getimagedata() method on the first context.
...
line 4 computes the number of pixels in the image by dividing the total size of the frame's image data by four.
...And 2 more matches
Document - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">document</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} the document interface describes the common properties and methods for any kind of document.
...And 2 more matches
Element: DOMMouseScroll event - Web APIs
the dom dommousescroll event is fired asynchronously when mouse wheel or similar device is operated and the accumulated scroll amount is over 1
line or 1 page since last event.
... bubbles yes cancelable yes interface mousescrollevent if you want to prevent the default action of mouse wheel events, it's not enough to handle only this event on gecko because if scroll amount by a native mouse wheel event is less than 1
line (or less than 1 page when the system setting is by page scroll), other mouse wheel events may be fired without this event.
...any other value represents the number of
lines to scroll, with the direction indicated by the value's sign.
...And 2 more matches
Introduction to the File and Directory Entries API - Web APIs
usefulness of the api the file and directory entries api is an important api for the following reasons: it lets apps have off
line and storage features that involve large binary blobs.
... audio or photo editor with off
line access or local cache (great for performance and speed) the app can write to files in place (for example, overwriting just the id3/exif tags and not the entire file).
... off
line video viewer the app can download large files (>1gb) for later viewing.
...And 2 more matches
Using the Frame Timing API - Web APIs
when one of those event types is added to the browser's performance time
line, the application is notified of the event via the observer's callback function that was specified when the observer was created.
...in the following example, two observers for the "frame" performance entry type are created and the first observer constructor uses in
line function syntax.
...ceobserver(frame_observer_2); obs.observe({entrytypes: ['frame']}); } function frame_observer_2(list) { // log the frame entries var perfentries = list.getentriesbytype("frame"); for (var i=0; i < perfentries.length; i++) { console.log("obs #2: [" + i + "] = " + perfentries[i].name); } } <body onload="init(event)"> when the browser adds a new "frame" entry to the performance time
line, both of the observer callbacks will be invoked.
...And 2 more matches
HTMLAudioElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="mid...
...dle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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" f...
...ont-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="...
...And 2 more matches
HTMLBRElement - Web APIs
the htmlbrelement interface represents a html
line break element (<br>).
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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="/doc...
...s/web/api/node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line points="341,25 351,20 351,30 341,25" s...
...And 2 more matches
HTMLImageElement.align - Web APIs
base
line alignment these three values specify the alignment of the element relative to the text base
line.
... bottom the bottom edge of the image is to be aligned vertically with the current text base
line.
... middle the center of the object should be aligned vertically with the current base
line.
...And 2 more matches
HTMLInputElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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" t...
...ext-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="/doc...
...And 2 more matches
HTMLMediaElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 30%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 180" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="...
...middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="3...
...03.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="9...
...And 2 more matches
HTMLOListElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="midd...
...le">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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" fo...
...nt-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="5...
...And 2 more matches
HTMLTableRowElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base...
...
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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"/><...
...And 2 more matches
HTMLTableSectionElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill...
...="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-w...
...idth="2px" /><text x="303.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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...
...And 2 more matches
HTMLUListElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="mi...
...ddle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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=...
...And 2 more matches
Basic concepts - Web APIs
because it lets you create web applications with rich query abilities regardless of network availability, these applications can work both on
line and off
line.
...if the object store has a key path, it is using in-
line keys; otherwise, it is using out-of-
line keys.
... in-
line key a key that is stored as part of the stored value.
...And 2 more matches
ReadableStreamDefaultReader.read() - Web APIs
examples example 1 - simple example this example shows the basic api usage, but doesn't try to deal with complications like stream chunks not ending on
line boundaries for example.
...current chunk = ' + chunk; list2.appendchild(listitem); result += chunk; // read some more, and call this function again return reader.read().then(processtext); }); } example 2 - handling text
line by
line this example shows how you might fetch a text file and handle it as a stream of text
lines.
... it deals with stream chunks not ending on
line boundaries and converting from uint8array to strings.
...And 2 more matches
SVGCircleElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 700 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><polylin...
...e 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-base
line="middle">svgelement</text></a><poly
line 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"...
...And 2 more matches
SVGComponentTransferFunctionElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 11...
...1,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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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/...
...And 2 more matches
SVGEllipseElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l...
...ine 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-base
line="middle">node</text></a><poly
line 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-base
line="mi...
...ddle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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">...
...And 2 more matches
SVGGeometryElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="m...
...iddle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="...
...And 2 more matches
SVGGradientElement - Web APIs
the svggradient interface is a base interface used by svg
lineargradientelement and svgradialgradientelement.
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line points="341,25 351,20 351,30 341,25" stroke="#d4dde4...
...And 2 more matches
SVGPolygonElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 1...
...11,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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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...
...And 2 more matches
SVGRectElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-ancho...
...r="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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/s...
...And 2 more matches
SVGTextContentElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" ...
...text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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=...
...And 2 more matches
SVGTextPathElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</te...
...xt></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="...
...And 2 more matches
SVGTextPositioningElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baselin...
...e="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="1...
...2px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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 ...
...And 2 more matches
URLSearchParams.set() - Web APIs
you can copy and paste the example in a code environment like codepen, jsfiddle, or the multi-
line javascript interpreter in firefox.
...
line #41: comment out this
line to stop dumping the search parameters to the console (debug).
...
line #43: dumps the generated object and it's string representation to the console (info).
...And 2 more matches
WebGL model view projection - Web APIs
homogeneous coordinates the main
line of the previous clip space vertex shader contained this code: gl_position = vec4(position, 1.0); the position variable was defined in the draw() method and passed in as an attribute to the shader.
... this is a three dimensional point, but the gl_position variable that ends up getting passed down through the pipe
line is actually 4 dimensional — instead of (x, y, z) it is (x, y, z, w).
...this added dimension introduces the notion of perspective into the coordinate system; with it in place, we can map 3d coordinates into 2d space—thereby allowing two parallel
lines to intersect as they recede into the distance.
...And 2 more matches
Web Animations API - Web APIs
web animations interfaces animation provides playback controls and a time
line for an animation node or source.
... animationtime
line represents the time
line of animation.
... this interface exists to define time
line features (inherited by documenttime
line and future time
line objects) and is not itself accessed by developers.
...And 2 more matches
WritableStream.WritableStream() - Web APIs
the highwatermark property, which is set when creating the counting strategy (
line 35), sets the maximum amount of data that the writablestream instance will handle in a single write() operation.
... in this example, it's the maximum amount of data that can be sent to defaultwriter.write() (
line 11).
...the data source can wither write more data (
line 11) or call close() (
line 24).
...And 2 more matches
WritableStream - Web APIs
the highwatermark property, which is set when creating the counting strategy (
line 35), sets the maximum amount of data that the writablestream instance will handle in a single write() operation.
... in this example, it's the maximum amount of data that can be sent to defaultwriter.write() (
line 11).
...the data source can either write more data (
line 9) or call close() (
line 24).
...And 2 more matches
An overview of accessible web applications and widgets - Accessibility
line 9 sets the aria-hidden state to true.
...note that there is no custom classname used, only the status of the aria-hidden attribute on
line 1.
...note that the script only updates the aria-hidden attribute (
line 2); it does not need to also add or remove a custom classname.
...And 2 more matches
Web Accessibility: Understanding Colors and Luminance - Accessibility
understaning color, luminance, and saturation is important in meeting wcag 2 accessibility guide
lines in terms of ensuring enough color contrast for sighted users with color blindness or reduced vision and preventing seizures and other physical reactions in people with vestibular disorders.
... where accessibility is concerned, however, standards and guide
lines are currently written predominantly using the srgb color space, especially as it applies to color contrast ratios.
... there are many on
line tools that can convert rgb to hsl for you, with both the rgb hexidecimal and css function syntax.
...And 2 more matches
::first-letter (:first-letter) - CSS: Cascading Style Sheets
the ::first-letter css pseudo-element applies styles to the first letter of the first
line of a block-level element, but only when not preceded by other content (such as images or in
line tables).
...t of css properties can be used with the ::first-letter pseudo-element: all font properties : font, font-style, font-feature-settings, font-kerning, font-language-override, font-stretch, font-synthesis, font-variant, font-variant-alternates, font-variant-caps, font-variant-east-asian, font-variant-ligatures, font-variant-numeric, font-variant-position, font-weight, font-size, font-size-adjust,
line-height and font-family all background properties : background, background-color, background-image, background-clip, background-origin, background-position, background-repeat, background-size, background-attachment, and background-blend-mode all margin properties: margin, margin-top, margin-right, margin-bottom, margin-left all padding properties: padding, padding-top, padding-right, padding-bo...
...ttom, padding-left all border properties: the shorthands border, border-style, border-color, border-width, border-radius, border-image, and the longhands properties the color property the text-decoration, text-shadow, text-transform, letter-spacing, word-spacing (when appropriate),
line-height, text-decoration-color, text-decoration-
line, text-decoration-style, box-shadow, float, vertical-align (only if float is none) css properties syntax /* css3 syntax */ ::first-letter /* css2 syntax */ :first-letter examples simple drop cap in this example we will use the ::first-letter pseudo-element to create a simple drop cap effect on the first letter of the paragraph coming right after the <h2>.
...And 2 more matches
Border-radius generator - CSS: Cascading Style Sheets
== */ .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-transform: lowercase; } .ui-input-slider-left, .ui-input-slider-right { width: 16px; cur...
...9/arrows.png") center left no-repeat; } .ui-input-slider-right { background: url("https://mdn.mozillademos.org/files/5679/arrows.png") center right no-repeat; } .ui-input-slider-name { width: 90px; padding: 0 10px 0 0; text-align: right; text-transform: lowercase; } .ui-input-slider-btn-set { width: 25px; background-color: #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: no...
...ne; } .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; color: #fff; border-radius: 3px; font-weight: bold; float: left; } .ui-checkbox .text { padding-left: 34px; background-position: center left 10px; } .ui-checkbox .left { padding-right: 34px; padding-left: 1.666em; background-position: center right 10px; } .ui-checkbox > label:hover { cursor: pointer; } .ui-checkbox > input:checked + label { background-image: url("https://mdn.mozillademos.org/files/5681/checked.png"); background-color: #379b4a; } body ...
...And 2 more matches
Ordering Flex Items - CSS: Cascading Style Sheets
reverse the display of the items the flex-direction property can take one of four values: row column row-reverse column-reverse the first two values keep the items in the same order that they appear in the document source order and display them sequentially from the start
line.
... the second two values reverse the items by switching the start and end
lines.
... remember that the start
line relates to writing modes.
...And 2 more matches
In Flow and Out of Flow - CSS: Cascading Style Sheets
in the previous guide i explained block and in
line layout in normal flow.
...the heading and paragraphs are block level, the strong element in
line.
... the list is displayed using flexbox to arrange the items into a row, however it too is participating in block and in
line layout - the container has an outside display type of block.
...And 2 more matches
Auto-placement in CSS Grid Layout - CSS: Cascading Style Sheets
item 2 and item 5 have been placed using
line based placement on the grid.
...what this means is that the start
line of the item will be set by auto-placement, and the end
line will span two tracks.
... border-radius: 5px; background-color: #fff4e6; } <div class="wrapper"> <dl> <dt>mammals</dt> <dd>cat</dd> <dd>dog</dd> <dd>mouse</dd> <dt>fish</dt> <dd>guppy</dd> <dt>birds</dt> <dd>pied wagtail</dd> <dd>owl</dd> </dl> </div> dl { display: grid; grid-template-columns: auto 1fr; max-width: 300px; margin: 1em;
line-height: 1.4; } dt { grid-column: 1; font-weight: bold; } dd { grid-column: 2; } what can’t we do with auto-placement (yet)?
...And 2 more matches
WebKit CSS extensions - CSS: Cascading Style Sheets
er-end** -webkit-border-end-color** -webkit-border-end-style** -webkit-border-end-width** -webkit-border-fit -webkit-border-horizontal-spacing -webkit-border-start** -webkit-border-start-color** -webkit-border-start-style** -webkit-border-start-width** -webkit-border-vertical-spacing -webkit-box-align** -webkit-box-direction** -webkit-box-flex-group** -webkit-box-flex** -webkit-box-
lines** -webkit-box-ordinal-group** -webkit-box-orient** -webkit-box-pack** -webkit-box-reflect** c -webkit-column-axis -webkit-column-break-after -webkit-column-break-before -webkit-column-break-inside -webkit-column-progression -webkit-cursor-visibility d-i -webkit-dashboard-region -webkit-font-size-delta -webkit-font-smoothing -webkit-highlight -webkit-hyphenate-character -w...
...ebkit-hyphenate-limit-after -webkit-hyphenate-limit-before -webkit-hyphenate-limit-
lines -webkit-initial-letter l -webkit-
line-align -webkit-
line-box-contain -webkit-
line-clamp -webkit-
line-grid -webkit-
line-snap -webkit-locale -webkit-logical-height -webkit-logical-width m -webkit-margin-after-collapse -webkit-margin-after -webkit-margin-before-collapse -webkit-margin-before -webkit-margin-bottom-collapse -webkit-margin-collapse -webkit-margin-end** -webkit-margin-start** -webkit-margin-top-collapse -webkit-marquee-direction -webkit-marquee-increment -webkit-marquee-repetition -webkit-marquee-speed -webkit-marquee-style -webkit-marquee -webkit-mask-box-image-outset -webkit-mask-box-image-repeat -webkit-mask-box-image-slice -webkit-mask-box-image-source -...
...umn -webkit-grid-column-end -webkit-grid-column-gap -webkit-grid-column-start -webkit-grid-gap -webkit-grid-row -webkit-grid-row-end -webkit-grid-row-gap -webkit-grid-row-start -webkit-grid-template -webkit-grid-template-areas -webkit-grid-template-columns -webkit-grid-template-rows h-l -webkit-hyphens -webkit-justify-content -webkit-justify-items -webkit-justify-self -webkit-
line-break m -webkit-mask -webkit-mask-clip -webkit-mask-composite -webkit-mask-image -webkit-mask-origin -webkit-mask-position -webkit-mask-repeat -webkit-mask-size o-r -webkit-opacity -webkit-order -webkit-perspective -webkit-perspective-origin -webkit-ruby-position s -webkit-scroll-snap-type -webkit-shape-image-threshold -webkit-shape-margin -webkit-shape-outside t ...
...And 2 more matches
initial-letter - CSS: Cascading Style Sheets
/* keyword values */ initial-letter: normal; /* numeric values */ initial-letter: 1.5; /* initial letter occupies 1.5
lines */ initial-letter: 3.0; /* initial letter occupies 3
lines */ initial-letter: 3.0 2; /* initial letter occupies 3
lines and sinks 2
lines */ /* global values */ initial-letter: inherit; initial-letter: initial; initial-letter: unset; syntax the keyword value normal, or a <number> optionally followed by an <integer>.
... <number> defines the size of the initial letter, in terms of how many
lines it occupies.
... <integer> defines the number of
lines the initial letter should sink when the size of it is given.
...And 2 more matches
<length> - CSS: Cascading Style Sheets
depending on the unit, this can be the size of a specific character, the
line height, or the size of the viewport.
... lh equal to the computed value of the
line-height property of the element on which it is used, converted to an absolute length.
... rlh equal to the computed value of the
line-height property on the root element (typically <html>), converted to an absolute length.
...And 2 more matches
offset-path - CSS: Cascading Style Sheets
50% 50% 50% 50%); offset-path: polygon(30% 0%, 70% 0%, 100% 50%, 30% 100%, 0% 70%, 0% 30%); offset-path: path('m 0,200 q 200,200 260,80 q 290,20 400,0 q 300,100 400,200'); /* geometry boxes */ offset-path: margin-box; offset-path: stroke-box; /* global values */ offset-path: inherit; offset-path: initial; offset-path: unset; values ray() taking up to three values, defines a path that is a
line segment starting from the position of the box and proceeds in the direction defined by the specified angle similar to the css gradient angle where 0deg is up, with positive angles increasing in the clockwise direction, with the size value being similar to the css radial 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, poly
line, or rect -- using the shape's geometry as the path.
...the path, as can be seen in the rendering of the svg code, is a
line drawing of a house with a chimney.
...And 2 more matches
position - CSS: Cascading Style Sheets
mdn understanding wcag, guide
line 1.4 explanations visual presentation: understanding sc 1.4.8 | understanding wcag 2.0 performance & accessibility scrolling elements containing fixed or sticky content can cause performance and accessibility issues.
... html <div class="box" id="one">one</div> <div class="box" id="two">two</div> <div class="box" id="three">three</div> <div class="box" id="four">four</div> css .box { display: in
line-block; width: 100px; height: 100px; background: red; color: white; } #two { position: relative; top: 20px; left: 20px; background: blue; } absolute positioning elements that are relatively positioned remain in the normal flow of the document.
...my adjacent block level elements sit on new
lines below me.</p> <p class="positioned">by default we span 100% of the width of our parent element, and we are as tall as our child content.
...And 2 more matches
scroll-snap-type - CSS: Cascading Style Sheets
/* keyword values */ scroll-snap-type: none; scroll-snap-type: x; scroll-snap-type: y; scroll-snap-type: block; scroll-snap-type: in
line; scroll-snap-type: both; /* optional mandatory | proximity*/ scroll-snap-type: x mandatory; scroll-snap-type: y proximity; scroll-snap-type: both mandatory; /* etc */ /* global values */ scroll-snap-type: inherit; scroll-snap-type: initial; scroll-snap-type: unset; syntax values none when the visual viewport of this scroll container is scrolled, it must ignore snap points.
... in
line the scroll container snaps to snap positions in its in
line axis only.
... formal definition initial valuenoneapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax none | [ x | y | block | in
line | both ] [ mandatory | proximity ]?
...And 2 more matches
text-decoration-skip-ink - CSS: Cascading Style Sheets
the text-decoration-skip-ink css property specifies how over
lines and under
lines are drawn when they pass over glyph ascenders and descenders.
... 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 under
lines and over
lines 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 under
lines and over
lines so that they do not touch or closely approach a glyph.
...And 2 more matches
<transform-function> - CSS: Cascading Style Sheets
a
linear transformation function is described using a 2×2 matrix, like this: ac bd the function is applied to an element by using matrix multiplication.
...(in fact, all transformations that are
linear functions can be described.) composite transformations are effectively applied in order from right to left.
... however, one major transformation is not
linear, and therefore must be special-cased when using this notation: translation.
...And 2 more matches
unicode-bidi - CSS: Cascading Style Sheets
for in
line elements, implicit reordering works across element boundaries.
... embed if the element is in
line, this value opens an additional level of embedding with respect to the bidirectional algorithm.
... bidi-override for in
line elements this creates an override.
...And 2 more matches
Rich-Text Editing in Mozilla - Developer guides
most commands affect the document's selection (bold, italics, etc), while others insert new elements (adding a link) or affect an entire
line (indenting).
... internet explorer differences one major difference between mozilla and internet explorer that affects designmode is the generated code in the editable document: while internet explorer uses html tags (em, i, etc), mozilla 1.3 will generate by default spans with in
line style rules.
... figure 1 : generated html differences mozilla: <span style="font-weight: bold;">i love geckos.</span> <span style="font-weight: bold; font-style: italic; text-decoration: under
line;">dinosaurs are big.</span> internet explorer: <strong>i love geckos.</strong> <strong><em><u>dinosaurs are big.</u></em></strong> another difference between mozilla and ie is how to access the document object of an iframe, which is usually used in conjunction with designmode.
...And 2 more matches
<abbr>: The Abbreviation element - HTML: Hypertext Markup Language
to define an abbreviation which may be unfamiliar to the reader, present the term using <abbr> and either a title attribute or in
line text providing the definition.
... default styling the purpose of this element is purely for the convenience of the author and all browsers display it in
line (display: in
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 under
line to the content of the element.
...And 2 more matches
<fieldset>: The Field Set element - HTML: Hypertext Markup Language
if the <fieldset> is styled with an in
line-level display value, it will behave as in
line-block, otherwise it will behave as block.
...the element has min-in
line-size: min-content by default.
...(for example, display: in
line behaves as block.) there will be an anonymous box holding the contents of the <fieldset>, which inherits certain properties from the <fieldset>.
...And 2 more matches
<img>: The Image Embed element - HTML: Hypertext Markup Language
allowed values: top equivalent to vertical-align: top or vertical-align: text-top middle equivalent to vertical-align: -moz-middle-with-base
line bottom the default, equivalent to vertical-align: unset or vertical-align: initial left equivalent to float: left right equivalent to float: right border the width of a border around the image.
... styling with css <img> is a replaced element; it has a display value of in
line by default, but its default dimensions are defined by the embedded image's intrinsic values, like it were in
line-block.
... <img> has no base
line, so when images are used in an in
line formatting context with vertical-align: base
line, the bottom of the image will be placed on the text base
line.
...And 2 more matches
<p>: The Paragraph element - HTML: Hypertext Markup Language
paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by blank
lines and/or first-
line indentation, but html paragraphs can be any structural grouping of related content, such as images or form fields.
... this is the second paragraph.</p> result styling paragraphs by default, browsers separate paragraphs with a single blank
line.
... alternate separation methods, such as first-
line indentation, can be achieved with css: html <p>separating paragraphs with blank
lines is easiest for readers to scan, but they can also be separated by indenting their first
lines.
...And 2 more matches
<tr>: The Table Row element - HTML: Hypertext Markup Language
possible values for this attribute are: base
line aligns each cell's content text as closely as possible to the bottom of the cell, handling alignment of different fonts and font sizes by aligning the characters along the base
line of the font(s) used in the row.
...there are no groups, no cells that span multiple rows or columns, no captions, and only the most basic styling to create
lines around the components of the table for something resembling clarity.
...>january 13, 2011</time></td> <td><time datetime="2017-04008">april 8, 2017</time></td> <td>37.00</td> </tr> <tr> <th>hoshi nakamura</td> <td>601942</td> <td><time datetime="2012-07-23">july 23, 2012</time></td> <td>n/a</td> <td>15.00</td> </tr> </table> the differences that matter here—for the purposes of discussing row and column spans—are in the first few
lines of the code above.
...And 2 more matches
<wbr> - HTML: Hypertext Markup Language
the html <wbr> element represents a word break opportunity—a position within text where the browser may optionally break a
line, though its
line-breaking rules would not otherwise create a break at that location.
...in particular, it behaves like a unicode bidi bn code point, meaning it has no effect on bidi-ordering: <div dir=rtl>123,<wbr>456</div> displays, when not broken on two
lines, 123,456 and not 456,123.
... for the same reason, the <wbr> element does not introduce a hyphen at the
line break point.
...And 2 more matches
SyntaxError: unterminated string literal - JavaScript
to fix this error, check if: you have opening and closing quotes (single or double) for your string literal, you have escaped your string literal correctly, your string literal isn't split across multiple
lines.
... examples multiple
lines you can't split a string across multiple
lines like this in javascript: var longstring = 'this is a very long string which needs to wrap across multiple
lines because otherwise my code is unreadable.'; // syntaxerror: unterminated string literal instead, use the + operator, a backslash, or template literals.
... the + operator variant looks like this: var longstring = 'this is a very long string which needs ' + 'to wrap across multiple
lines because ' + 'otherwise my code is unreadable.'; or you can use the backslash character ("\") at the end of each
line to indicate that the string will continue on the next
line.
...And 2 more matches
ReferenceError() constructor - JavaScript
syntax new referenceerror([message[, filename[,
linenumber]]]) parameters message optional optional.
...
linenumber optional optional.
... the
line number of the code that caused the exception.
...And 2 more matches
String - JavaScript
sole.log(eval(s2.valueof())) // returns the number 4 escape notation special characters can be encoded using escape notation: code output \xxx (where xxx is 1–3 octal digits; range of 0–377) iso-8859-1 character / unicode code point between u+0000 and u+00ff \' single quote \" double quote \\ backslash \n new
line \r carriage return \v vertical tab \t tab \b backspace \f form feed \uxxxx (where xxxx is 4 hex digits; range of 0x0000–0xffff) utf-16 code unit / unicode code point between u+0000 and u+ffff \u{x} ...
...rather than having
lines that go on endlessly, or wrap at the whim of your editor, you may wish to specifically break the string into multiple
lines in the source code without affecting the actual string contents.
... method 1 you can use the + operator to append multiple strings together, like this: let longstring = "this is a very long string which needs " + "to wrap across multiple
lines because " + "otherwise my code is unreadable." method 2 you can use the backslash character (\) at the end of each
line to indicate that the string will continue on the next
line.
...And 2 more matches
Template literals (Template strings) - JavaScript
you can use multi-
line strings and string interpolation features with them.
... syntax `string text` `string text
line 1 string text
line 2` `string text ${expression} string text` tag`string text ${expression} string text` description template literals are enclosed by the backtick (` `) (grave accent) character instead of double or single quotes.
... `\`` === '`' // --> true multi-
line strings any new
line characters inserted in the source are part of the template literal.
...And 2 more matches
<mspace> - MathML
depth the desired depth (below the base
line) of the space (see length for values and units).
... height the desired height (above the base
line) of the space (see length for values and units).
...
linebreak indicates a
line-break at the space.
...And 2 more matches
Media container formats (file types) - Web media technologies
this media container format is derived from the iso base media file format and mpeg-4, but is specifically stream
lined for lower bandwidth scenarios.
...the wav codec registry can be found at rfc 2361; however, because nearly all wav files use
linear pcm, support for the other codecs is sparse.
... audio codecs supported by wave codec browser support chrome edge firefox safari adpcm (adaptive differential pulse code modulation) no gsm 06.10 no lpcm (
linear pulse code modulation) yes mpeg-1 audio layer iii (mp3) no µ-law (u-law) no webm webm (web media) is a format based on matroska which is designed specifically for use in modern web environments.
...And 2 more matches
Codecs used by WebRTC - Web media technologies
however, rfc 7742 specifies that all webrtc-compatible browsers must support vp8 and h.264's constrained base
line profile for video, and rfc 7874 specifies that browsers must support at least the opus codec as well as g.711's pcma and pcmu formats.
... supported video codecs webrtc establishes a base
line set of codecs which all compliant browsers are required to support.
... mandatory video codecs codec name profile(s) browser compatibility vp8 — chrome, edge, firefox, safari (12.1+) avc / h.264 constrained base
line (cb) chrome (52+), edge, firefox[1], safari [1] firefox for android 68 and later do not support avc (h.264) anymore.
...And 2 more matches
Web Performance
to understand how to improve performance and perceived performance, it helps to understand how the browser works.recommended web performance timings: how long is too long?there are no clear set rules as to what constitutes a slow pace when loading pages, but there are specific guide
lines for indicating content will load (1 second), idling (50ms), animating (16.7s) and responding to user input (50 to 200ms).the business case for web performanceyou know web performance is important, but how do you convince clients and management to invest in performance and make it a priority.
...this article out
lines some javascript best practices that should be considered to ensure even complex content is as performant as possible.
... resource timing api resource loading and timing the loading of those resources, including managing the resource buffer and coping with cors the performance time
line the performance time
line standard defines extensions to the performance interface to support client-side latency measurements within applications.
...And 2 more matches
Add to Home screen - Progressive web apps (PWAs)
we've written a very simple example web site (see our demo live, and also see the source code) that doesn't do much, but was developed with the necessary code to allow it to be added to a home screen, as well as a service worker to enable it to be used off
line.
... chrome additionally requires the app to have a service worker registered (e.g., so it can function when off
line).
... in terms of how to design the icon, you should follow the same best practices you'd follow for any android icon (see the android icon design guide
lines).
...And 2 more matches
gradientUnits - SVG: Scalable Vector Graphics
two elements are using this attribute: <
lineargradient> and <radialgradient>
lineargradient for <
lineargradient>, gradientunits defines the coordinate system used for the attributes x1, y1, x2, and y2.
... with this value and gradienttransform being the identity matrix, the normal of the
linear gradient is perpendicular to the gradient vector in object bounding box space (i.e., the abstract coordinate system where (0,0) is at the top/left of the object bounding box and (1,1) is at the bottom/right of the object bounding box).
... candidate recommendation no change scalable vector graphics (svg) 2the definition of 'gradientunits for <
lineargradient>' in that specification.
...And 2 more matches
href - SVG: Scalable Vector Graphics
fifteen elements are using this attribute: <a>, <animate>, <animatemotion>, <animatetransform>, <discard>, <feimage>, <image>, <
lineargradient>, <mpath>, <pattern>, <radialgradient>, <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 example html, body, svg { height: 100%; } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <image href="/files/2917/fxlogo.png" x="0" y="0" height="100" width="100"/> </svg>
lineargradient for <
lineargradient>, href defines url referring to a template gradient element; to be valid, the reference must be to a different <
lineargradient> or <radialgradient> element.
... value <url> default value none animatable yes radialgradient for <radialgradient>, href defines url referring to a template gradient element; to be valid, the reference must be to a different <
lineargradient> or <radialgradient> element.
...And 2 more matches
text-decoration - SVG: Scalable Vector Graphics
the text-decoration attribute defines whether text is decorated with an under
line, over
line and/or strike-through.
... it is a shorthand for the text-decoration-
line and text-decoration-style properties.
... as a presentation attribute, it can be applied to any element but it has effect only on the following five elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 250 50" xmlns="http://www.w3.org/2000/svg"> <text y="20" text-decoration="under
line">under
lined text</text> <text x="0" y="40" text-decoration="
line-through">struck-through text</text> </svg> usage notes value <'text-decoration-
line'> || <'text-decoration-style'> || <'text-decoration-color'> default value see individual properties animatable yes for a description of the values, please refer to the css text-decoration property.
...And 2 more matches
SVG 1.1 Support in Firefox - SVG: Scalable Vector Graphics
line implemented.
... poly
line implemented.
... various presentation attributes don't work (alignment-base
line, base
line-shift, dominant-base
line, kerning, letter-spacing, word-spacing, writing-mode, glyph-orientation-horizontal, glyph-orientation-vertical) recently implemented presentation attributes: direction, unicode-bidi, font-variant, text-decoration svgtextelement recently imlemented bindings: selectsubstring recently implemented attributes: textlength, lengthadjust tspan implemented.
...And 2 more matches
JavaScript Debugger Service - Archive of obsolete content
jsd.scripthook = { onscriptcreated: function(script) { // your function here }, onscriptdestroyed: function(script) { // your function here } }; jsd.errorhook = { onerror: function(message, filename,
lineno, colno, flags, errnum, exc) { // your function here } }; // triggered when jsd.errorhook[onerror] returns false jsd.debughook = { onexecute: function(frame, type, rv) { // your function here } }; jsd.enumeratescripts({ // the enumeratescript method will be called once for every script jsd knows about enumeratescript: function(script) { // your function here } }); a simple sta...
... jsd.errorhook = { onerror: function(message, filename,
lineno, colno, flags, errnum, exc) { dump(message + "@" + filename + "@" +
lineno + "@" + colno + "@" + errnum + "\n"); // check message type var jsdierrorhook = components.interfaces.jsdierrorhook; var messagetype; if (flags & jsdierrorhook.report_error) messagetype = "error"; if (flags & jsdierrorhook.report_warning) messagetype = "warning"; if (flags & jsdierrorhook.report_exception) messagetype = "uncaught-exception"; if (flags & jsdierrorhook.report_strict) messagetype += "-strict"; dump(messagetype + "\n"); return false; // trigger debughook // retur...
...n true; if you do not wish to trigger debughook } }; // note that debughook does not _always_ trigger when jsd.errorhook[onerror] returns false // it is not well-known why debughook sometimes fails to trigger jsd.debughook = { onexecute: function(frame, type, rv) { stacktrace = ""; for (var f = frame; f; f = f.callingframe) { stacktrace += f.script.filename + "@" + f.
line + "@" + f.functionname + "\n"; } dump(stacktrace); return components.interfaces.jsdiexecutionhook.return_continue; } }; filters jsd also allows the use of filters to track which scripts should trigger the hooks.
...(jsdifilter.flag_enabled | jsdifilter.flag_pass) : jsdifilter.flag_enabled, urlpattern: pattern, start
line: 0, end
line: 0 }; return filter; }, we then add the filters we want.
JavaScript Daemons Management - Archive of obsolete content
unk?", orecompose = new daemon(document.createelement("p"), perform, 33, 30, prepare); onload = function () { orecompose.owner.id = "perform-me"; document.body.appendchild(orecompose.owner); orecompose.play(); }; </script> <style type="text/css"> body { font-family: monospace, sans-serif; background: #dddddd; overflow: hidden; } #perform-me { margin: 50px; font-size: 20px;
line-height: 20px; } </style> </head> <body> <h1>new daemon(<em>@thisobject</em>, <em>@callback</em>[, <em>@rate</em>, <em>@length</em>, <em>@init</em>, <em>@onstart</em>])</h1> <p><button onclick="orecompose.skipto(11);">skipto(11)</button> <button onclick="orecompose.makesteps(29);">makesteps(29)</button> <button onclick="orecompose.fixposition(-13);">fixposition(-13)</button> <button onclick="or...
... : this.pool[parseint(math.random() * this.pool.length)]; } } }, 33, 30); onload = function () { ounhide.owner.target.id = "animate-me"; document.body.appendchild(ounhide.owner.target); ounhide.play(); }; </script> <style type="text/css"> body { font-family: monospace, sans-serif; background: #dddddd; overflow: hidden; } #animate-me { margin: 50px; font-size: 20px;
line-height: 20px; } </style> </head> <body> <h1>daemon.buildaround()</h1> <p><button onclick="ounhide.skipto(11);">skipto(11)</button> <button onclick="ounhide.makesteps(29);">makesteps(29)</button> <button onclick="ounhide.fixposition(-13);">fixposition(-13)</button> <button onclick="ounhide.play();">play</button> <button onclick="ounhide.turn();">turn</button> <button onclick="ounhide.pause();">...
..., orecompose = new daemon.safe(document.createelement("p"), perform, 33, 30, prepare); onload = function () { orecompose.owner.id = "perform-me"; document.body.appendchild(orecompose.owner); orecompose.play(); }; </script> <style type="text/css"> body { font-family: monospace, sans-serif; background: #dddddd; overflow: hidden; } #perform-me { margin: 50px; font-size: 20px;
line-height: 20px; } </style> </head> <body> <h1>new daemon.safe(<em>@thisobject</em>, <em>@callback</em>[, <em>@rate</em>, <em>@length</em>, <em>@init</em>, <em>@onstart</em>])</h1> <p><button onclick="orecompose.skipto(11);">skipto(11)</button> <button onclick="orecompose.makesteps(29);">makesteps(29)</button> <button onclick="orecompose.fixposition(-13);">fixposition(-13)</button> <button onclic...
... : this.pool[parseint(math.random() * this.pool.length)]; } } }, 33, 30); onload = function () { ounhide.owner.target.id = "animate-me"; document.body.appendchild(ounhide.owner.target); ounhide.play(); }; </script> <style type="text/css"> body { font-family: monospace, sans-serif; background: #dddddd; overflow: hidden; } #animate-me { margin: 50px; font-size: 20px;
line-height: 20px; } </style> </head> <body> <h1>daemon.safe.buildaround()</h1> <p><button onclick="ounhide.skipto(11);">skipto(11)</button> <button onclick="ounhide.makesteps(29);">makesteps(29)</button> <button onclick="ounhide.fixposition(-13);">fixposition(-13)</button> <button onclick="ounhide.play();">play</button> <button onclick="ounhide.turn();">turn</button> <button onclick="ounhide.pause...
Enhanced Extension Installation - Archive of obsolete content
first it must locate the firefox executable, then run it with the -install-global-extension command
line flag, which installs from a xpi into the firefox application directory.
...the format here is similar to firefox 1.0 except there is no longer a count value that needs to be kept in sync with the number of
lines...
... <profile>/extensions-startup.manifest -all items this file contains a tab delimited set of
lines, one per item.
... since all metadata is now stored in the profile directory, there is no longer any need for special extension system handling of the -register command
line flag, so support for that has been removed.
Appendix: What you should know about open-source software licenses - Archive of obsolete content
it is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright”
line and a pointer to where the full notice is found.
... <one
line to give the program's name and a brief idea of what it does.> copyright (c) <year> <name of author> this program is free software: you can redistribute it and/or modify it under the terms of the gnu general public license as published by the free software foundation, either version 3 of the license, or (at your option) any later version.
... creative commons http://www.creativecommons.cc/ gnu gplv3 second discussion draft http://gplv3.fsf.org/gpl-draft-2006-07-27.html gnu gplv3 third discussion draft http://gplv3.fsf.org/gpl-draft-2007-03-28.html gnu gplv3 "last call" discussion draft http://gplv3.fsf.org/gpl-draft-2007-05-31.html official support for oss japan’s ministry of economy, trade, and industry has issued “guide
lines when considering deploying open-source software.” this report, which was prepared by the software information center study group as part of the information-technology promotion agency’s (ipa) “platform-technology development and businesses relating to electronic commerce” project.
... this report is available on
line (in japanese) at http://www.meti.go.jp/kohosys/press/0004397/ the ipa has also established an open-source software center to promote and cultivate oss http://www.ipa.go.jp/software/open/o...ish/index.html ...
Adding Events and Commands - Archive of obsolete content
maybe your extension needs to disable or enable a series of controls when the user logs in or out of a service, or when firefox detects it's on
line or off
line.
... <broadcasterset id="xulschoolhello-broadcasterset"> <broadcaster id="xulschoolhello-on
line-broadcaster" /> </broadcasterset> these elements are completely invisible, so you can put them anywhere.
... then you need to identify which of your xul elements will be linked to this broadcaster, using the observes attribute: <menuitem id="xulschoolhello-hello-menu-item" label="&xulschoolhello.hello.label;" accesskey="&xulschoolhello.helloitem.accesskey;" observes="xulschoolhello-on
line-broadcaster" oncommand="xulschoolchrome.browseroverlay.sayhello(event);" /> the attribute value is set to be the id of the broadcaster element, indicating that this element will observe all attribute changes that happen in the broadcaster.
... let on
linebroadcaster = document.getelementbyid("xulschoolhello-on
line-broadcaster"); on
linebroadcaster.setattribute("label", "something"); you can also have finer-grained control to this behavior by adding the observes element as a child to your observer node.
Mozilla Documentation Roadmap - Archive of obsolete content
« previousnext » mozilla documentation firefox extension development is still an immature discip
line, with a developer base consisting mostly of hobbyists and just a few organized development groups.
... there's a great deal of free on
line documentation available on xul and extension development, but finding it and turning it into useful information can be a daunting task.
...it encompasses firefox, other mozilla products, javascript, css, xul, web and extension development guide
lines, accessibility, usability, best practices...
...you'll be able to navigate the full source tree, inspect the change history for all files, and link to specific code
lines.
User Notifications and Alerts - Archive of obsolete content
notification boxes are very easy to create, and are very customizable: let nb = gbrowser.getnotificationbox(); let acceptbutton = new object(); let dec
linebutton = new object(); let message = this._bundle.getstring("xulschoolhello.friendmessage.label"); let that = this; acceptbutton.label = this._bundle.getstring("xulschoolhello.acceptbutton.label"); acceptbutton.accesskey = this._bundle.getstring("xulschoolhello.acceptbutton.accesskey"); acceptbutton.popup = null; acceptbutton.callback = function() { that.acceptrequest(); }; // similarly for...
... dec
line button.
... nb.appendnotification( message, "xulschoolhello-friend-notification", "chrome://xulschoolhello/skin/friend-notification.png", nb.priority_info_high, [ acceptbutton, dec
linebutton ]); all browser tabs have a notification box by default, so you don't need to do any overlaying.
...notification boxes are a good guide
line to what you should aim for: thin, informative and easy to dismiss.
Tabbed browser - Archive of obsolete content
reusing by url/uri a common feature found in many extensions is to point the user to chrome:// uris in a browser window (for example, help or about information) or external (on-
line http(s)://) html documents when the user clicks an extension's button or link.
...if you don't want do anything when frames/iframes // are loaded in this web page, uncomment the following
line: // return; // find the root document: win = win.top; } } } // do not try to add a callback until the browser window has // been initialised.
... components.utils.import('resource://gre/modules/services.jsm'); services.obs.addobserver(httpobs, 'http-on-modify-request', false); //services.obs.removeobserver(httpobs, 'http-on-modify-request'); //uncomment this
line, or run this
line when you want to remove the observer var httpobs = { observe: function (asubject, atopic, adata) { if (atopic == 'http-on-modify-request') { /*start - do not edit here*/ var ohttp = asubject.queryinterface(components.interfaces.nsihttpchannel); //i used nsihttpchannel but i guess you can use nsichannel, im not sure why though var ...
...error } } return; } } }; services.obs.addobserver(httprequestobserver, "http-on-modify-request", false); //this function gets the contentwindow and other good stuff from loadcontext of httpchannel function loadcontextgoodies(httpchannel) { //httpchannel must be the subject of http-on-modify-request qi'ed to nsihttpchannel as is done on
line 8 "httpchannel = subject.queryinterface(ci.nsihttpchannel);" //start loadcontext stuff var loadcontext; try { var interfacerequestor = httpchannel.notificationcallbacks.queryinterface(ci.nsiinterfacerequestor); //var domwindow = interfacerequestor.getinterface(components.interfaces.nsidomwindow); //not to be done anymore because: https://developer.mozilla.org/docs/upda...
Creating a status bar extension - Archive of obsolete content
em:description a short, one-
line description of the extension.
... content status-bar-sample-1 chrome/content/ # firefox overlay chrome://browser/content/browser.xul chrome://status-bar-sample-1/content/status-bar-sample-1.xul the first
line registers the location on disk of the contents of the extension whose id is "status-bar-sample-1".
...the second
line registers an overlay.
...this is accomplished by the following
line of xml: <overlay id="status-bar-sample-1-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> once that's accomplished, we can describe our user interface.
Index of archived content - Archive of obsolete content
ences deploying a plugin as an extension developing add-ons displaying web content in an extension without security issues downloading json and javascript in extensions enhanced extension installation extension etiquette extension library extension packaging extension samples extension theming guide
lines extension versioning, update and compatibility extensions support in seamonkey 2 firefox addons developer guide hiding browser chrome hotfix extension how to convert an overlay extension to restartless in
line options install manifests installing extensions and themes from web pages interaction bet...
...g guide embedding faq embedding mozilla in a java application using javaxpcom error console exception logging in javascript existing content extension frequently asked questions external cvs snapshots in mozilla-central fast graphics performance with html firefox block and
line layout cheat sheet content states and the style system disabling interruptible reflow document loading - from load start to finding a handler documentation for bidi mozilla downloading nightly or trunk builds jss build instructions for osx 10.6 layout faq layout system overview multiple fir...
...ble layout strategy tamarin abcasm tamarin acceptance testing abc assembler tests actionscript acceptance tests tamarin acceptance test template actionscript performance tests cmd
line tests running tamarin acceptance tests running tamarin performance tests tamarin build system documentation tamarin releases tamarin-central rev 703:2cee46be9ce0 tamarin roadmap tamarin build documentation tamarin m...
... svg and canvas in mozilla xul - mozilla's xml user interface language xtech 2006 presentations xul explorer xulrunner application update article building xulrunner building xulrunner with python command
line components creating xulrunner apps with the mozilla build system creating a windows inno setup installer for xulrunner applications custom app bundles for mac os x debugging a xulrunner application deploying xulrunner dialogs in xulrunner getting started with xulrunner how to enable locale ...
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
"component returned failure code: 0xc1f30001 (ns_error_not_initialized) [nsildapurl.spec]" nsresult: "0xc1f30001 (ns_error_not_initialized)" location: "js frame :: file:////usr/lib/thunderbird-3.0b2/defaults/autoconfig/prefcalls.js :: getldapattributes ::
line 174" data: no] bug 295329 had been re-opened .
... my tests were on windows vista, and i noticed at least one difference, it is that paths changed; now the profile is in (for my procacci user sample): c:\users\procacci\appdata\roaming\thunderbird\profiles\v6we4uku.default start in debug mode in comand
line interface: debug with displayerror() here's the result, i used the displayerror() method ( not the best way :-( see bug 206294 ) to show environment and ldap variables in order to check that it worked fine.
..."could not convert javascript argument arg 0 [nsisupports.queryinterface]" nsresult: "0x80570009 (ns_error_xpc_bad_convert_js)" location: "js frame :: prefcalls.js :: getldapattributes ::
line 177" data: no] autoconfig (pref) and ldap support in packages add ldap support in firefox 1.5 a least from firefox 1.5, autoconfig is compiled by default (cf.
...# then add the following
line to your # c:\program files\mozilla.org\mozilla\defaults\pref\autoconf.js file: # pref("general.config.filename", "mozilla.cfg"); ...
Autodial for Windows NT - Archive of obsolete content
there also has been some confusion about what on
line/off
line means.
...some people expect an option to toggle on
line/off
line should trigger dialup or disconnect.
...hanging up a dialup connection should not cause mozilla to go into off
line mode.
... making a dialup connection should not cause mozilla to go into on
line mode.
Creating a Help Content Pack - Archive of obsolete content
the content pack descriptor file out
lines the framework of the contents of the pack by pointing to the files describing the table of contents, index, and glossary rdf files.
... the table of contents and index files are simple tree-based out
lines written in rdf.
...one possible source might be an on
line, dynamically-generated list of added content stored on your web site.
...(the index, table of contents, and search data sources are more likely to be nested, complicating their formats.) create a new rdf file (for now let's name it glossary.rdf), and add the following
lines to it: <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:nc="http://home.netscape.com/nc-rdf#"> <rdf:description rdf:about="urn:root"> <nc:subheadings> <rdf:seq> </rdf:seq> <nc:subheadings> </rdf:description> </rdf:rdf> this forms the outer framework of a glossary description file.
Mozilla Crypto FAQ - Archive of obsolete content
note that in any case the notification procedures out
lined in the export administration regulations apply only to u.s.
... in light of the new encryption export regulations it is also possible that the bernstein case may be declared moot on the basis that professor bernstein is now free to do what he originally requested to do, i.e., publish his encryption source code on
line.
...export control of encryption software and related topics, see the following on
line references: the itar, ear and encryption export archive maintained by the electronic freedom foundation (eff).
...export control of encryption software: privacy on the
line: the politics of wiretapping and encryption, by whitfield diffie and susan landau.
BundleLibrary - Archive of obsolete content
bundles gmail: gmail.webapp google calendar: gcalendar.webapp google docs: gdocs.webapp google groups: groups.webapp google analytics: ganalytics.webapp google reader: greader.webapp facebook: facebook.webapp twitter: twitter.webapp user contributed bundles gmail w/gtalk: gmail.webapp (note: work with latest version of prism!) 32 on
line todo lists: zip file with web apps for 32 on
line todo lists anywhere.fm: anywhere.fm@prism.app.webapp a service that lets you upload your entire music library to their servers and listen from anywhere through a slick flash interface.
... aol email : aolemail.webapp bbc radio player bbcradioplayer.webapp blog
lines : blog
lines.webapp blog
lines beta: beta.blog
lines.webapp chandler: chandler.webapp flash earth (integrates all major mapping sites) flashearth.webapp flickr: flickr.webapp gollum wikipedia browser in english:gollum_en.webapp google notebook: gnote.webapp google page creator: google_pagecreator.webapp google reader + gtalk : prism-bundle-google-reader-with-gtalk.webapp google webmaster tools: google_webmastertools.webapp grandcentral inbox: grandc.webapp (note: grandcentral requires the flash plugin.
...not the cleanest, but it got all my plugins at once) istylr: istylr.webapp on
line web design tool (full win installer bundled with prism is available here - thanks to lars eric for his nsis script) meebo: meebo.webapp miro guide: miroguide.webapp motor0: motor0.webapp useful webapp on maintenance and fuel consumptions managment pandora: pandora@prism.app.webapp internet radio that only plays music you like.
...slimtimer client slimtimer.webapp a very useful time-tracking tool with a "slim" client spagobi spagobi.webapp a web collaborative business intelligence platform streamy streamy.webapp ( streamy is a pretty powerful, next-gen on
line rss feed reader.
Proxy UI - Archive of obsolete content
seamonkey menu: preferences > advanced group > proxies panel menu: right-click on off
line-on
line button (on browser windows).
...off
line|on
line "plug" location status bar on the right side.
... right-click a menu is displayed that has the following items: on
line (proxy: none) on
line (proxy: auto discover) on
line (proxy: auto url) on
line (proxy: manual) --- proxy configuration...
...mouseover when on
line, the tooltip will include the current proxy mode: code http://mxr.mozilla.org/seamonkey/sou...ityoverlay.xul bugs bug 243624 reference network.proxy.type ...
execute - Archive of obsolete content
passing arguments to the executable the args parameter, when present, passes a string to the executable as command-
line parameters.
... the following
line, for example, passes the "-c" command-
line parameter to the executable: err = file.execute(myfile, "-c", true); when you want to pass more than one parameter to the executable itself, however, you must format the args string in a particular way so that the parameters can be broken up and passed separately as required.
... in general, you should use single quotes for the args string and double quotes to delimit the command-
line arguments within args.
... this means that in order to pass three command-
line arguments (-c, -d, and -s) to the executable, you should format the args string as follows: err = file.execute(myfile, '"-c""-d""-s"', true); //technically, given the rules above, you could also pass the same //arguments with the following
line, but the result is much less //readable: err = file.execute(myfile, "\"-c\"\"-d\"\"-s\"", true); also see the note about binaries on the macintosh platf...
XML Templates - Archive of obsolete content
using in
line xml it's also possible to embed the xml data directly within the xul document if desired.
...otherwise the data included in
line and the template are the same.
... be aware that when xml data is included in
line as in this example, the content may be displayed and may affect the layout of other parts of the window.
... you may wish to hide the in
line xml by placing it inside a hidden box.
Simple Menu Bars - Archive of obsolete content
this letter is typically shown under
lined on the menu title.
... mozilla will look at the label attribute and add an under
line character to the character specified here.
...this letter is typically shown under
lined on the menu title.
... mozilla will look at the label attribute and add an under
line character to the character specified here.
Using the Editor from XUL - Archive of obsolete content
in response to the handletext event, the editor sets the in
line input composition string.
...you are typing over selected text), then calls a generic pre-insertion call willinsert(), which sets up in
line styles for the inserted text, and moves the selection to an appropriate place where the text is to be inserted.
...the code thus has to do the correct thing with
linebreaks, so has a special case for inserting into <pre> sections.
... we call into the normal insertion code, which loops through the input string looking for
linebreaks, and inserts each text run, followed by a <br> when necessary.
The Implementation of the Application Object Model - Archive of obsolete content
the second section describes the xul/rdf architecture itself and out
lines enhancements to the xul language in order to allow the markup language to reference local data and to indicate how and when it would like to be annotatable with local data.
...first of all it could stream
line the redundancy in the interface methods and present a new interface for pluggable content that was much smaller and easier to plug into than the 4-5 interfaces required if directly implementing the content tree interfaces.
...this inability to provide a cleanly inherited system argues for a different approach, namely that all content node implementations be the same kind of object, and that those objects communicate with their pluggable content through this new stream
lined interface we talked about earlier.
...todo: out
line the naming scheme for local data.
Mozprofile - Archive of obsolete content
mozprofile can be utilized from the command
line or as an api.
... command
line usage mozprofile may be used to create profiles, set preferences in profiles, or install addons into profiles.
...if a profile is not specified, one will be created in a temporary directory which will be echoed to the terminal: (mozmill)> mozprofile /tmp/tmp4q1ieu.mozrunner (mozmill)> ls /tmp/tmp4q1ieu.mozrunner user.js to run mozprofile from the command
line enter: mozprofile --help for a list of options.
...= firefoxprofile(addons=["adblock.xpi"]) setting preferences preferences can be set in several ways: using the api: you can pass preferences in to the profile class's constructor: obj = firefoxprofile(preferences=[("accessibility.typeaheadfind.flashbar", 0)]) using a json blob file: mozprofile --preferences myprefs.json using a .ini file: mozprofile --preferences myprefs.ini via the command
line: mozprofile --pref key:value --pref key:value [...] when setting preferences from an .ini file or the --pref switch, the value will be interpolated as an integer or a boolean (true/false) if possible.
Mozrunner - Archive of obsolete content
mozrunner may be used from the command
line or programmatically as an api.
... command
line usage the mozrunner command will launch the application (specified by --app) from a binary specified with -b or as located on the path.
... mozrunner takes the command
line options from mozprofile for constructing the profile to be used by the application.
... run mozrunner --help for detailed information on the command
line program.
NPN_PostURL - Archive of obsolete content
ms windows and os x if a file is posted with any protocol other than ftp, the file must be text with unix-style
line breaks ('\n' separators only).
...you cannot use npn_posturl to specify headers (even a blank
line) in a memory buffer.
...for protocols in which the headers must be distinguished from the body, such as http, the buffer or file should contain the headers, followed by a blank
line, then the body.
... if no custom headers are required, simply add a blank
line ('\n') to the beginning of the file or buffer.
Common Firefox theme issues and solutions - Archive of obsolete content
#identity-box-inner > #page-proxy-stack > #page-proxy-favicon, #identity-box[open=true] > #identity-box-inner > #page-proxy-stack > #page-proxy-favicon { -moz-image-region: rect(0, 48px, 16px, 32px); } #page-proxy-favicon[pageproxystate="invalid"] { opacity: 0.5; } for more information about identity boxes please see the identity box section of the amo editors theme review guide
lines no visual clue for disabled url bars there needs to be a visual clue when url bar is disabled.
... about:permissions domain names don't
line up in about:permissions the domains on the domain list of about:permissions do not
line up properly due to missing placeholder icons for domains without favicons.
...source file: chrome://global/skin/media/videocontrols.css the solution to this issue is to add the following name space to the second
line of the file right after, and in addition to, the existing @namespace: @namespace html url("http://www.w3.org/1999/xhtml"); you can generate the error console message by going to mozilla's mission page.
... resources amo editors theme testing guide
lines when developing and testing your themes, please refer to the theme testing guide
lines amo editors use to review themes.
Browser Feature Detection - Archive of obsolete content
true cssfloat true false true font true true true fontfamily true true true fontsize true true true fontstyle true true true fontvariant true true true fontweight true true true height true true true letterspacing true true true
lineheight true true true liststyle true true true liststyleimage true true true liststyleposition true true true liststyletype true true true margin true true true margintop true true true marginright true true true marginbottom true true true ...
... fontstretch true false true left true true true markeroffset true false true marks true false true maxheight true ie7 only true maxwidth true ie7 only true minheight true true true minwidth true ie7 only true orphans true false true out
line true false true out
linecolor true false true out
linestyle true false true out
linewidth true false true overflow true true true page true false true pagebreakafter true true true pagebreakbefore true true true pagebreakinside true false true ...
...se}, {name: 'cssfloat', 'supported': false}, {name: 'font', 'supported': false}, {name: 'fontfamily', 'supported': false}, {name: 'fontsize', 'supported': false}, {name: 'fontstyle', 'supported': false}, {name: 'fontvariant', 'supported': false}, {name: 'fontweight', 'supported': false}, {name: 'height', 'supported': false}, {name: 'letterspacing', 'supported': false}, {name: '
lineheight', 'supported': false}, {name: 'liststyle', 'supported': false}, {name: 'liststyleimage', 'supported': false}, {name: 'liststyleposition', 'supported': false}, {name: 'liststyletype', 'supported': false}, {name: 'margin', 'supported': false}, {name: 'margintop', 'supported': false}, {name: 'marginright', 'supported': false}, {name: 'marginbottom', 'supported': false}, {name...
...false}, {name: 'fontstretch', 'supported': false}, {name: 'left', 'supported': false}, {name: 'markeroffset', 'supported': false}, {name: 'marks', 'supported': false}, {name: 'maxheight', 'supported': false}, {name: 'maxwidth', 'supported': false}, {name: 'minheight', 'supported': false}, {name: 'minwidth', 'supported': false}, {name: 'orphans', 'supported': false}, {name: 'out
line', 'supported': false}, {name: 'out
linecolor', 'supported': false}, {name: 'out
linestyle', 'supported': false}, {name: 'out
linewidth', 'supported': false}, {name: 'overflow', 'supported': false}, {name: 'page', 'supported': false}, {name: 'pagebreakafter', 'supported': false}, {name: 'pagebreakbefore', 'supported': false}, {name: 'pagebreakinside', 'supported': false}, {name: 'pa...
-ms-filter - Archive of obsolete content
code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/filter_8.htm -ms-filter: 'progid:dximagetransform.microsoft.motionblur(strength=50), progid:dximagetransform.microsoft.basicimage(mirror=1)'; the following example shows how to use an in
line style sheet to set the filter on an image.
... gradienttype default: 0 (equivalent to
linear-gradient(to bottom, …)) set to a non-zero value to make the gradient horizontal (equivalent to
linear-gradient(to right, …)) startcolor the end color, supports only opaque colors in the #rrggbb notation.
... html <div class="gradient horizontal"></div> <div class="gradient vertical"></div> css html, body { overflow-x: hidden; max-width: 100vw; } .gradient { width: 100vw; height: 60px; height: 50vh; } .gradient.horizontal { -ms-filter: 'progid:dximagetransform.microsoft.gradient(startcolorstr="#ffffff", endcolorstr="#000000", gradienttype=1)'; background-image:
linear-gradient(to right, #ffffff 0%, #000000 100%); } .gradient.vertical { -ms-filter: 'progid:dximagetransform.microsoft.gradient(startcolorstr="#ffffff", endcolorstr="#000000", gradienttype=0)'; background-image:
linear-gradient(to bottom, #ffffff 0%, #000000 100%); } result specifications not part of any specification.
...he empty string)applies toall elementsinheritednocomputed valueas specifiedanimation typediscrete remarks the following table lists the most popular dx filters and their standards-based alternatives: dx filter standards-based alternative alpha opacity alphaimageloader <img> or background-image and related properties gradient background-image:
linear-gradient() dropshadow text-shadow or box-shadow matrix transform, transform-origin in windows internet explorer 8, the -ms-filter attribute is an extension to css, and can be used as a synonym for filter in ie8 standards mode.
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
it’s clear to see that with just a few
lines of code, we can easily take advantage of sql data stores in javascript.
... importpackage( java.net ); // connect to the remote resource var u = new url( "http://www.mozilla.org/news.rdf" ); var c = u.openconnection(); c.connect(); // read in the raw data var s = new java.io.inputstreamreader( c.getinputstream() ); var b = new java.io.bufferedreader( s ); var l, str = ""; while( ( l = b.read
line() ) != null ) { // skip if( l != "" ) { str = str + l + "\n"; } } // define the namespaces, first the default, // then additional namespaces default xml namespace = "http://purl.org/rss/1.0/"; var dc = new namespace( "http://purl.org/dc/elements/1.1/" ); var rdf = new namespace( "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ); // use e4x to process the feed var x = new xml( str ); for each( ...
... the act of creating an e4x object is quite simple, in the case of listing 3, we do this through the
line var x = new xml( str ); from here, the xml is accessible via dot notation.
... upgrading the example application to include database access requires just a few
lines of code added to the formprocessor method.
Troubleshooting XForms Forms - Archive of obsolete content
ensure that your <html> element contains the supported namespace declaration: xmlns="http://www.w3.org/1999/xhtml" (instead of the newer, unratified version, xhtml 2.0, located at http://www.w3.org/2002/06/xhtml2 ) in
line instance, no controls get bound have you remembered to use the correct namespace for the instance nodes?
... for an in
line instance you most probably need to have <xf:instance xmlns=""> ....
... any instance, no controls get bound if no controls show with either in
line instance or an <xf:instance src="...">, check the following: as with in
line instance, make sure the instance of the form control ref binding expression matches the namespace of the data.
...if you are developing on your local machine using apache tomcat for example then add the following regular expression on a new
line: ^http://localhost:8080/.* use the xforms buddy to view instance data the xforms buddy extension allows you to dynamically view model instance data while the xforms is running in the firefox browser.
The Business Benefits of Web Standards - Archive of obsolete content
in a multi headed and possibly commercial environment such as a web development agency, this approach also lends itself to a very strict demarcation, between discip
lines within a common framework.
... the content creator - who may be a journalist, a music producer, or may come from any one of a number of discip
lines; need not become involved in the actual process of publishing that content at all.
... the content - markup - style; model also lends itself very neatly to
linear methods of production.
...but the real value is at the bottom
line.
Building up a basic demo with A-Frame - Game development
the last
line adds the newly created cylinder to the scene.
...here's how it looks right now: it is impressive to be able to create such a scene with just a few
lines of html and javascript.
...owing <a-animation> element to your torus: <a-entity geometry=" primitive: torus; radius: 1; radiustubular: 0.1; segmentstubular: 12;" material=" color: #eaeff2; roughness: 0.1; metalness: 0.5;" rotation="10 0 0" position="-3 1 0"> <a-animation attribute="scale" to="1 0.5 1" direction="alternate" dur="2000" repeat="indefinite" easing="
linear"> </a-animation> </a-entity> the attribute we want to animate for the torus is scale.
...the easing we're going to use is
linear.
Move the ball - Game development
delete all the javascript you currently have inside your html file except for the first two
lines, and add the following below them.
... first, add the following two
lines above your draw() function, to define x and y: var x = canvas.width/2; var y = canvas.height-30; next update the draw() function to use the x and y variables in the arc() method, as shown in the following highlighted
line: function draw() { ctx.beginpath(); ctx.arc(x, y, 10, 0, math.pi*2); ctx.fillstyle = "#0095dd"; ctx.fill(); ctx.closepath(); } now comes the important...
...add the following two new
lines indicated below to your draw() function: function draw() { ctx.beginpath(); ctx.arc(x, y, 10, 0, math.pi*2); ctx.fillstyle = "#0095dd"; ctx.fill(); ctx.closepath(); x += dx; y += dy; } save your code again and try it in your browser.
... add the following highlighted new
line to the draw() function: function draw() { ctx.clearrect(0, 0, canvas.width, canvas.height); ctx.beginpath(); ctx.arc(x, y, 10, 0, math.pi*2); ctx.fillstyle = "#0095dd"; ctx.fill(); ctx.closepath(); x += dx; y += dy; } save your code and try again, and this time you'll see the ball move without a trail.
Paddle and keyboard controls - Game development
add these
lines somewhere near the rest of your variables: var rightpressed = false; var leftpressed = false; the default value for both is false because at the beginning the control buttons are not pressed.
...add the following
lines just above the setinterval()
line at the bottom of your javascript: document.addeventlistener("keydown", keydownhandler, false); document.addeventlistener("keyup", keyuphandler, false); when the keydown event is fired on any of the keys on your keyboard (when they are pressed), the keydownhandler() function will be executed.
...add these to your code now, below the addeventlistener()
lines: function keydownhandler(e) { if(e.key == "right" || e.key == "arrowright") { rightpressed = true; } else if(e.key == "left" || e.key == "arrowleft") { leftpressed = true; } } function keyuphandler(e) { if(e.key == "right" || e.key == "arrowright") { rightpressed = false; } else if(e.key == "left" || e.key == "arrowleft") { leftpressed = false; } } when we press a key down, this information is stored in a variable.
...add the following
line inside your draw() function, just below the
line that calls drawball(): drawpaddle(); compare your code here's the working code for you to compare yours against: exercise: make the paddle move faster or slower, or change its size.
2D maze game with device orientation - Game development
you can check it out on github where it’s open sourced, read the on
line documentation and go through the big collection of examples.
... var game = new phaser.game(320, 480, phaser.canvas, 'game'); the
line above will initialize the phaser instance — the arguments are the width of the canvas, height of the canvas, rendering method (we're using canvas, but there are also webgl and auto options available) and the optional id of the dom container we want to put the canvas in.
... back to game states: the
line below is adding a new state called boot to the game: game.state.add('boot', ball.boot); the first value is the name of the state and the second one is the object we want to assign to it.
...the following
line in the update() function adds a listener that fires when the ball gets to the hole.
Call stack - MDN Web Docs Glossary: Definitions of Web-related terms
call stack list: - greeting execute all
lines of code inside the greeting() function.
... call stack list: - sayhi - greeting execute all
lines of code inside the sayhi() function, until reaches its end.
... return execution to the
line that invoked sayhi() and continue executing the rest of the greeting() function.
... call stack list: - greeting when everything inside the greeting() function has been executed, return to its invoking
line to continue executing the rest of the js code.
Assessment: Accessibility troubleshooting - Learn web development
you could paste the html, css, and javascript into one of these on
line editors.
... if the on
line editor you are using doesn't have a separate css/js panel, feel free to put them in appropriate <style> / <script> elements.
... assessment or further help if you would like your work assessed, or are stuck and want to ask for help: put your work into an on
line shareable editor such as codepen, jsfiddle, or glitch.
... a link to the example you want assessed or need help with, in an on
line shareable editor (as mentioned in step 1 above).
Test your skills: The Cascade - Learn web development
note: you can try out solutions in the interactive editors below, however, it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... for assessment or further work purposes, download the starting point for this task to work in your own editor or in an on
line editor.
... if you would like your work assessed, or are stuck and want to ask for help: put your work into an on
line shareable editor such as codepen, jsfiddle, or glitch.
... a link to the example you want to be assessed or need help with, in an on
line shareable editor (as mentioned in step 1 above).
CSS selectors - Learn web development
you may also find the selectors more readable if each is on a new
line.
...for example, ::first-
line always selects the first
line of text inside an element (a <p> in the below case), acting as if a <span> was wrapped around the first formatted
line and then selected.
... p::first-
line { } combinators the final group of selectors combine other selectors in order to target elements within our documents.
...type selector h1 { } type selectors universal selector * { } the universal selector class selector .box { } class selectors id selector #unique { } id selectors attribute selector a[title] { } attribute selectors pseudo-class selectors p:first-child { } pseudo-classes pseudo-element selectors p::first-
line { } pseudo-elements descendant combinator article p descendant combinator child combinator article > p child combinator adjacent sibling combinator h1 + p adjacent sibling general sibling combinator h1 ~ p general sibling in this module cascade and inheritance css selectors type, class, and id selectors attribute s...
Flexbox - Learn web development
note also that you can use a display value of in
line-flex if you wish to lay out an element's children as flex items, but have that element behave like an in
line element.
... in which you can fix this is to add the following declaration to your <section> rule: flex-wrap: wrap; also, add the following declaration to your <article> rule: flex: 200px; try this now; you'll see that the layout looks much better with this included: we now have multiple rows — as many flexbox children are fitted onto each row as makes sense, and any overflow is moved down to the next
line.
...the buttons will take up as much space as they can and sit as many on the same
line as they can, but when they can no longer fit comfortably on the same
line, they'll drop down to create new
lines.
... button { flex: 1 auto; margin: 5px; font-size: 18px;
line-height: 1.5; } cross browser compatibility flexbox support is available in most new browsers — firefox, chrome, opera, microsoft edge and ie 11, newer versions of android/ios, etc.
create fancy boxes - Learn web development
its pseudo-element: ::before and ::after and some aside properties like: box-shadow, transform, out
line, etc.
...i want to be fancy.</div> okay, let's have fun with backgrounds: .fancy { padding : 1em; width: 100%; height: 200px; box-sizing: border-box; /* at the bottom of our background stack, let's have a misty grey solid color */ background-color: #e4e4d9; /* we stack
linear gradients on top of each other to create our color strip effect.
... as you will notice, color gradients are considered to be images and can be manipulated as such */ background-image:
linear-gradient(175deg, rgba(0,0,0,0) 95%, #8da389 95%),
linear-gradient( 85deg, rgba(0,0,0,0) 95%, #8da389 95%),
linear-gradient(175deg, rgba(0,0,0,0) 90%, #b4b07f 90%),
linear-gradient( 85deg, rgba(0,0,0,0) 92%, #b4b07f 92%),
linear-gradient(175deg, rgba(0,0,0,0) 85%, #c5a68e 85%),
linear-gradient( 85deg, rgba(0,0,0,0) 89%, #c5a68e 89%),
linear-gradient(175deg, rgba(0,0,0,0) 80%, #ba9499 80%),
linear-gradient( 85deg, rgba(0,0,0,0) 86%, #ba9499 86%),
linear-gradient(175deg, rgba(0,0,0,0) 75%, #9f8fa4 75%...
...),
linear-gradient( 85deg, rgba(0,0,0,0) 83%, #9f8fa4 83%),
linear-gradient(175deg, rgba(0,0,0,0) 70%, #74a6ae 70%),
linear-gradient( 85deg, rgba(0,0,0,0) 80%, #74a6ae 80%); } gradients can be used in some very creative ways.
Test your skills: Form structure - Learn web development
note: you can try out the solution in the interactive editor below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... download the starting point for this task to work in your own editor or in an on
line editor.
... if you would like your work assessed, or are stuck and want to ask for help: put your work into an on
line shareable editor such as codepen, jsfiddle, or glitch.
... a link to the example you want assessed or need help with, in an on
line shareable editor (as mentioned in step 1 above).
Tips for authoring fast-loading HTML pages - Learn web development
reducing page weight through the elimination of unnecessary whitespace and comments, commonly known as minimization, and by moving in
line script and css into external files, can improve download performance with minimal need for other changes in the page structure.
... tools such as html tidy can automatically strip leading whitespace and extra blank
lines from valid html source.
... reduce the number of in
line scripts in
line scripts can be expensive for page loading since the parser must assume that an in
line script could modify the page structure while parsing is in progress.
... reducing the use of in
line scripts in general, and reducing the use of document.write() to output content in particular, can improve overall page loading.
Advanced text formatting - Learn web development
en the user code is being shown, // not the solution, so that solution is not saved over the user code if(solution.value === 'show solution') { userentry = textarea.value; } else { solutionentry = textarea.value; } updatecode(); }; quotations html also has features available for marking up quotations; which element you use depends on whether you are marking up a block or in
line quotation.
... in
line quotations in
line quotations work in exactly the same way, except that they use the <q> element.
... turn "the need to eliminate negative self talk" in the third paragraph into an in
line quote, and include a cite attribute.
...to find way more html elements, you can take a look at our html element reference (the in
line text semantics section would be a great place to start.) in the next article we will look at the html elements you'd use to structure the different parts of an html document.
Adding vector graphics to the Web - Learn web development
if you want to control the svg content with css, you must include in
line css styles in your svg code.
... how to include svg code inside your html you can also open up the svg file in a text editor, copy the svg code, and paste it into your html document — this is sometimes called putting your svg in
line, or inlining svg.
... make sure your svg code snippet begins and ends with the <svg></svg> tags (don't include anything outside those.) here's a very simple example of what you might paste into your document: <svg width="300" height="200"> <rect width="100%" height="100%" fill="green" /> </svg> pros putting your svg in
line saves an http request, and therefore can reduce a bit your loading time.
... the browser cannot cache in
line svg as it would cache regular image assets, so pages that include the image will not load faster after the first page containing the image is loaded.
Assessment: Structuring planet data - Learn web development
you could paste the html, css and javascript into one of these on
line editors.
... if the on
line editor you are using doesn't have separate javascript/css panels, feel free to put them in
line <script>/<style> elements inside the html page.
... assessment or further help if you would like your work assessed, or are stuck and want to ask for help: put your work into an on
line shareable editor such as codepen, jsfiddle, or glitch.
... a link to the example you want assessed or need help with, in an on
line shareable editor (as mentioned in step 1 above).
Graceful asynchronous programming with Promises - Learn web development
you need to run it through a local testing server, or use an on
line solution such as glitch or github pages.
... inside your <script> element, add the following
line: let promise = fetch('coffee.jpg'); this calls the fetch() method, passing it the url of the image to fetch from the network as a parameter.
...this can be done like so — add the following
lines below your first
line of javascript.
...add the following
lines inside the curly braces: let objecturl = url.createobjecturl(myblob); let image = document.createelement('img'); image.src = objecturl; document.body.appendchild(image); here we are running the url.createobjecturl() method, passing it as a parameter the blob returned when the second promise fulfills.
Introduction to events - Learn web development
in
line event handlers — don't use these you might also see a pattern like this in your code: <button onclick="bgchange()">press me</button> function bgchange() { const rndcol = 'rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ')'; document.body.style.backgroundcolor = rndcol; } note: you can find the full source code for this example on github (also see it running live).
... the earliest method of registering event handlers found on the web involved event handler html attributes (or in
line event handlers) like the one shown above — the attribute value is literally the javascript code you want to run when the event occurs.
... even in a single file, in
line event handlers are not a good idea.
...the following two handlers wouldn't both be applied: myelement.onclick = functiona; myelement.onclick = functionb; the second
line overwrites the value of onclick set by the first
line.
Useful string methods - Learn web development
try entering the following
lines: let browsertype = 'mozilla'; browsertype.length; this should return the number 7, because "mozilla" is 7 characters long.
... to retrieve the last character of any string, we could use the following
line, combining this technique with the length property we looked at above: browsertype[browsertype.length-1]; the length of "mozilla" is 7, but because the count starts at 0, the character position is 6; using length-1 gets us the last character.
... let's try entering the following
lines to see what happens: let raddata = 'my name is mud'; raddata.tolowercase(); raddata.touppercase(); updating parts of a string you can replace one substring inside a string with another substring using the replace() method.
... ul'); list.innerhtml = ''; let greetings = ['happy birthday!', 'merry christmas my love', 'a happy christmas to all the family', 'you\'re all i want for christmas', 'get well soon']; for (let i = 0; i < greetings.length; i++) { let input = greetings[i]; // your conditional test needs to go inside the parentheses // in the
line below, replacing what's currently there if (greetings[i]) { let listitem = document.createelement('li'); listitem.textcontent = input; list.appendchild(listitem); } } </textarea> <div class="playable-buttons"> <input id="reset" type="button" value="reset"> <input id="solution" type="button" value="show solution"> </div> html { font-family: sans-serif; } h2 { font-size:...
Object-oriented JavaScript for beginners - Learn web development
i\'m ' + obj.name + '.'); }; return obj; } you can now create a new person by calling this function — try the following
lines in your browser's javascript console: const salva = createnewperson('salva'); salva.name; salva.greeting(); this works well enough, but it is a bit long-winded; if we know we want to create an object, why do we need to explicitly create a new empty object and return it?
... add the following
lines below your previous code addition: let person1 = new person('bob'); let person2 = new person('sarah'); save your code and reload it in the browser, and try entering the following
lines into your js console: person1.name person1.greeting() person2.name person2.greeting() cool!
...i\'m ' + this.name.first + '.'); }; } now add in the following
line below it, to create an object instance from it: let person1 = new person('bob', 'smith', 32, 'male', ['music', 'skiing']); you can now see that you can access the properties and methods just like we did previously — try these in your js console: person1['age'] person1.interests[1] person1.bio() // etc.
... further exercises to start with, try adding a couple more object creation
lines of your own, and try getting and setting the members of the resulting object instances.
Object building practice - Learn web development
type in the following to create a new ball instance: let testball = new ball(50, 100, 4, 4, 'blue', 10); try calling its members: testball.x testball.size testball.color testball.draw() when you enter the last
line, you should see the ball draw itself somewhere on the canvas.
... the last two
lines add the velx value to the x coordinate, and the vely value to the y coordinate — the ball is in effect moved each time this method is called.
... last but not least, add the following
line to the bottom of your code — we need to call the function once to get the animation started.
...add the following below the balls[i].update();
line: balls[i].collisiondetect(); save and refresh the demo again, and you'll see your balls change color when they collide!
Multimedia: Images - Learn web development
a good on
line tool for optimizing svgs is svgomg.
... for pngs there is imageoptim on
line or squoosh.
...available to use in the on
line image optimization tool squoosh.
... if all of this sounds a bit complicated or feels like too much work for your team then there is also on
line services that you can use as image cdns that will automate the serving of the correct image format on-the-fly, according to the type of device or browser requesting the image.
Introduction to the server side - Learn web development
it can also make sites easier to use by storing personal preferences and information — for example reusing stored credit card details to stream
line subsequent payments.
...the response contains a status
line indicating whether or not the request succeeded (e.g.
... because the information is in a database, it can also more easily be shared and updated with other business systems (for example, when products are sold either on
line or in a shop, the shop might update its database of inventory).
...for example, what can you see if you go to the on
line site for your bank?
Working with Svelte stores - Learn web development
prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
... at the end we include a few css
lines to style our alert component.
... first of all, add the following
line below your todos array: $: console.log('todos', todos) next, update your todos component call as follows: <todos bind:todos /> remember: <todos bind:todos /> is just a shortcut for <todos bind:todos={todos} />.
...add these
lines below the todos array: console.log('todos store - todos:', todos) console.log('todos store content - $todos:', $todos) when you run the app now, you'll see something like this in your web console: as you can see, our store is just an object containing subscribe(), set(), and update() methods, and $todos is our array of todos.
Getting started with Vue - Learn web development
prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command
line.
...to make building apps with vue easier, there is a cli to stream
line the development process.
... first of all delete this
line: <helloworld msg="welcome to your vue.js app"/> if you save your app.vue file now, the rendered app will throw an error because we’ve registered the component but are not using it.
... we also need to remove the
lines from inside the <script> element that import and register the component: delete these
lines now: import helloworld from './components/helloworld.vue' components: { helloworld } your rendered app should no longer show an error, just a blank page, as we currently have no visible content inside <template>.
Focus management with Vue refs - Learn web development
prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command
line.
...you should see a focus out
line on the input for adding new to-do items.
...the checkbox will be replaced with our edit component, but the focus out
line will be gone.
...if you open your console, you'll see an error raised along the
lines of "can't access property "focus", editbuttonref is undefined".
Accessibility Features in Firefox
a "smart keywords" feature enhances this even further by allowing custom searches from the command
line such as "word punditry" to look up the word "punditry" in an on
line dictionary.
...for example, ibm has delivered over 50,000
lines of code to enable accessibility in firefox on windows and especially for this new powerful world of "web applications".
... a web application may be an easier-to-use on
line tax assistant, a web calendar or a live sports statistics page, which is familiar in that it acts much like a desktop application.
... downloads, support and more information firefox information and downloads general on
line support and community forums accessibility newsgroup for users.
Accessibility information for UI designers and developers
for example, in this chart, it helps to add labels besides the colored chart
lines:people who cannot see the difference between the colors, can use the labels instead.
...only one element has focus at a given time, typically revealed by browsers with a dotted out
line.
... text spacing users should be able to make the following changes to their text spacing: set
line height (leading) to at least 1.5 times the font size set spacing following paragraphs to at least 2 times the font size set letter spacing (tracking) to at least 0.12 times the font size set word spacing to at least 0.16 times the font size this does not mean that your page needs to offer controls to make such changes, merely that if someone does these things in a custom stylesheet, they sho...
... links vs buttons to keep your interface in
line with user expectations, use links for interactions that go somewhere (on the current page or another page) and buttons for interactions that do something (like submit a form or open an overlay).
Accessibility and Mozilla
this developer's guide lays out general guide
lines that assistive technology (at) developers can use in developing live region support.
...however, many of the concepts were also used during the development of firevox, an at using iaccessible2.accessible toolkit checklistplease contact the mozilla accessibility community with questions or feedback.csun firefox materialsfirefox 1.5 is a fast, free, standards compliant web browser which is rapidly gaining recognition for its fresh, stream
lined approach to browsing the web.
...websites such as on
line magazines with sophisticated audiences are now reporting upwards of 25% firefox usage.embedding api for accessibilityevent process procedurethis diagram out
lines how events are processed within gecko.
...here is a rundown of problems and the planned solutions:mozilla's section 508 compliancemozilla’s uaag evaluation reportthe uaag document contains a very rich set of accessibility guide
lines, that broadly define how accessibility should be implemented by any user agent, i.e.
Lightweight themes
on
line image editor resources pixlr — pixlr offers professional and easy-to-use tools for creating and editing images within a browser.
... photoshop — tweak, rotate and touch up photos with photoshop® express, a free on
line photo editor.
... tip: to ensure that your theme is approved for the gallery, be sure it complies with the content guide
lines and terms of service!
... submit your theme now frequently asked questions for more information about lightweight themes, including content guide
lines, please see these frequently asked questions.
Creating reftest-based unit tests
if your use python3 as default you must edit the first
line of mach.
... include ../other.list == foo.html bar.html != aaa.html bbb.html the first
line, as one might expect, includes another manifest.
... the second
line should look familiar.
...the third
line says that aaa.html and bbb.html should not produce visually identical output.
Configuring Build Options
build options, including options not usable from the command-
line, may appear in "confvars.sh" files in the source tree.
...(it is possible to manually call configure with command-
line options, but this is not recommended).
... adding the following
line to your mozconfig allows you to change the objdir: mk_add_options moz_objdir=@topsrcdir@/obj-@config_guess@ it is a good idea to have your objdir name start with obj so that mercurial ignores it.
... for example: ac_add_options --disable-optimize --enable-debug mk_add_options moz_objdir=/mozilla/src/obj-@config_guess@ mk_add_options moz_build_projects="browser mail" ac_add_app_options browser --enable-application=browser ac_add_app_options mail --enable-application=comm/mail if you want to build only one project using this mozconfig, use the following command
line: moz_current_project=browser ./mach build this will build only the browser.
Old Thunderbird build
build configuration to build thunderbird, you need to add a file named mozconfig to the root directory of the comm-central checkout that contains the following
line: ac_add_options --enable-application=mail you can create a file with this
line by doing this: cd comm-central echo 'ac_add_options --enable-application=mail' > mozconfig if you omit this
line, the build system will build firefox instead.
...for hg tip, you should see green bs on https://treeherder.mozilla.org/#/jobs?repo=comm-central to start the build, cd into the comm-central subdirectory, and run: ./mozilla/mach build mach is our command-
line tool to stream
line common developer tasks.
... building thunderbird and lightning if you've set up your build environment as above, then all you need to do is: echo 'ac_add_options --enable-calendar' >> mozconfig in the comm-central directory, or just add the ac_add_options --enable-calendar
line to your mozconfig with your favorite editor.
... running to run your build, you can use ./mozilla/mach run there are various command
line parameters you can add, e.g.
Obsolete Build Caveats and Tips
this note below seems redundant as this is true by default https://msdn.microsoft.com/en-us/library/dh8che7s%28v=vs.110%29.aspx note: starting with gecko 7.0, you should no longer include "-zc:wchar_t-" in the command
line when building on windows.
... edit vcvars32.bat to correct the problem (see http://blogs.msdn.com/windowssdk/arc...vironment.aspx "workaround: repair the vs2008 command
line build environment by editing c:\program files\microsoft visual studio 9.0\vc\bin\vcvars32.bat manually").
...alternatively you can install the command-
line compiler as part of the windows 7 sdk, but you are then expected to use the included windbg debugger.
... the visual c++ 8 command-
line compiler is included with the vista sdk, but you are then expected to use the included windbg debugger.
Working with Mozilla source code
viewing and searching mozilla source code on
line learn how to use searchfox, mozilla's on
line search and browsing tool for accessing the source code.
... interface development guide guide
lines and documentation for how to create and update xpcom interfaces.
... the firefox codebase: css guide
lines this document contains guide
lines defining how css inside the firefox codebase should be written, it is notably relevant for firefox front-end engineers.
... svg cleanup guide guide
lines and best practices for shipping new svgs.
Extending a Protocol
defining echochild.h create ./dom/ipc/echochild.h, and define it as follows - the in
line comments describe what's going on: #ifndef mozilla_dom_echochild_h #define mozilla_dom_echochild_h // we include the protocol, which is automatically generated for us.
...class echochild final : public pechochild { friend class pechochild; // allows us to participate in reference counting ns_in
line_decl_threadsafe_refcounting(echochild, final) public: explicit echochild(); protected: void actordestroy(actordestroyreason awhy) override; // we get sendecho(nscstring& astring) from the superclass.
... defining echoparent.h like before, create ./dom/ipc/echoparent.h, and code it as follows - the in
line comments describe what's going on.
... note the recvecho(), we finally get to define where a message is received, yay!: #ifndef mozilla_dom_echoparent_h #define mozilla_dom_echoparent_h #include "mozilla/dom/pechoparent.h" namespace mozilla { namespace dom { class echoparent final : public pechoparent { friend class pechoparent; ns_in
line_decl_threadsafe_refcounting(echoparent, final) public: echoparent(); protected: // we receive messages via recv* prefixed methods!
Mozilla Content Localized in Your Language
character styles how are bold, italics, under
lines, etc.
... here is the guide
line on the naming convention from w3c.org: new terminology what is your localization team's process for identifying and creating new terminology?
...localizers can assume that source content reaches 2/3 of the total available
line space.
... add style :: register, variants/slang, awkward, company style (branding guide
lines), inconsistent style, third-party style, unidiomatic (steps to define your approach to culture-specific & locale-specific references) ...
QA phase
to copy this file to the appropriate directory, do the following: navigate to your working directory from your command-
line terminal (i.e., where you created the folder structure described above).
...illa-aurora and mozilla-beta when building language packs against those two trees you should: remove ac_add_options --disable-compile-environment from .mozconfig in step 3 use ./mach build config after step 4 update the mozilla source code: $ cd mozilla-aurora $ hg pull -u enter the following command to create the .mozconfig file: $ nano -w .mozconfig enter the following
lines in your .mozconfig file: mk_add_options moz_objdir=@topsrcdir@/../firefox-build ac_add_options --disable-compile-environment ac_add_options --with-l10n-base=../l10n-central # path relative to moz_objdir ac_add_options --enable-application=[browser or mail] you will need to specify which application you're localizing in the fourth
line (e.g., for firefox, that's browser, thunderbird would be ...
... enter the following command to perform the configuration: $ ./mach configure once your command-
line finishes spitting out the config command's output, navigate to the newly created directory: $ cd ../firefox-build/browser/locales now you're ready to build!
...click here for guide
lines on how to test your localization.
NSS Developer Tutorial
nss coding style formatting
line length should not exceed 80 characters.
... multiple-
line comments should be formatted as follows: /* *
line1 *
line2 */ or /* **
line 1 **
line 2 */ the following styles are also common, because they conserve vertical space: /*
line1 *
line2 */ or /*
line1 **
line2 */ or /*
line1 *
line2 */ naming public functions are named foo_dooneaction.
... the in
line keyword can be used.
... one
line comments starting with // are permitted.
NSS tools : modutil
please contribute to the initial review in mozilla nss bug 836477[1] description the security module database tool, modutil, is a command-
line utility for managing pkcs #11 module information both within secmod.db files and within hardware tokens.
...if so, the metainfo file for signtool includes a
line such as this: + pkcs11_install_script: pk11install the script must define the platform and version number, the module name and file, and any optional information like supported ciphers and mechanisms.
...a complex string must not include new
lines or carriage returns.outside of complex strings, all white space (for example, spaces, tabs, and carriage returns) is considered equal and is used only to delimit tokens.
...for example: modutil -create -dbdir sql:/home/my/sharednssdb to set the shared database type as the default type for the tools, set the nss_default_db_type environment variable to sql: export nss_default_db_type="sql" this
line can be added to the ~/.bashrc file to make the change permanent.
NSS tools : ssltab
name ssltap — tap into ssl connections and display the data going by synopsis libssltap [-vhfsxl] [-p port] [hostname:port] description the ssl debugging tool ssltap is an ssl-aware command-
line proxy.
...instead of outputting raw data, the command interprets each record as a numbered
line of hex values, followed by the same data as ascii characters.
...when used with looping mode, the different connections are separated with horizontal
lines.
...c0: 08 48 61 72 64 63 6f 72 65 31 27 30 25 06 03 55 | .hardcore1'0%..u d0: 04 03 13 1e 48 61 72 64 63 6f 72 65 20 43 65 72 | ....hardcore cer e0: 74 69 66 69 63 61 74 65 20 53 65 72 76 65 72 20 | tificate server f0: 49 49 30 1e 17 0d 39 38 30 35 31 36 30 31 30 33 | ii0...9805160103 <additional data
lines> ] <additional records in same format> server socket closed.
NSS tools : ssltap
name ssltap — tap into ssl connections and display the data going by synopsis libssltap [-vhfsxl] [-p port] [hostname:port] description the ssl debugging tool ssltap is an ssl-aware command-
line proxy.
...instead of outputting raw data, the command interprets each record as a numbered
line of hex values, followed by the same data as ascii characters.
...when used with looping mode, the different connections are separated with horizontal
lines.
...c0: 08 48 61 72 64 63 6f 72 65 31 27 30 25 06 03 55 | .hardcore1'0%..u d0: 04 03 13 1e 48 61 72 64 63 6f 72 65 20 43 65 72 | ....hardcore cer e0: 74 69 66 69 63 61 74 65 20 53 65 72 76 65 72 20 | tificate server f0: 49 49 30 1e 17 0d 39 38 30 35 31 36 30 31 30 33 | ii0...9805160103 <additional data
lines> ] <additional records in same format> server socket closed.
NSS Tools ssltap
using the ssl debugging tool (ssltap) newsgroup: mozilla.dev.tech.crypto the ssl debugging tool is an ssl-aware command-
line proxy.
...instead of outputting raw data, the command interprets each record as a numbered
line of hex values, followed by the same data as ascii characters.
...when used with looping mode, the different connections are separated with horizontal
lines.
... c0: 08 48 61 72 64 63 6f 72 65 31 27 30 25 06 03 55 | .hardcore1'0%..u d0: 04 03 13 1e 48 61 72 64 63 6f 72 65 20 43 65 72 | ....hardcore cer e0: 74 69 66 69 63 61 74 65 20 53 65 72 76 65 72 20 | tificate server f0: 49 49 30 1e 17 0d 39 38 30 35 31 36 30 31 30 33 | ii0...9805160103<additional data
lines>]<additional records in same format>server socket closed.
NSS tools : modutil
synopsis modutil [options] arguments description the security module database tool, modutil, is a command-
line utility for managing pkcs #11 module information both within secmod.db files and within hardware tokens.
...if so, the metainfo file for signtool includes a
line such as this: + pkcs11_install_script: pk11install the script must define the platform and version number, the module name and file, and any optional information like supported ciphers and mechanisms.
...a complex string must not include new
lines or carriage returns.outside of complex strings, all white space (for example, spaces, tabs, and carriage returns) is considered equal and is used only to delimit tokens.
...for example: modutil -create -dbdir sql:/home/my/sharednssdb to set the shared database type as the default type for the tools, set the nss_default_db_type environment variable to sql: export nss_default_db_type="sql" this
line can be set added to the ~/.bashrc file to make the change permanent.
NSS tools : ssltap
name ssltap — tap into ssl connections and display the data going by synopsis libssltap [-vhfsxl] [-p port] [hostname:port] description the ssl debugging tool ssltap is an ssl-aware command-
line proxy.
...instead of outputting raw data, the command interprets each record as a numbered
line of hex values, followed by the same data as ascii characters.
...when used with looping mode, the different connections are separated with horizontal
lines.
... c0: 08 48 61 72 64 63 6f 72 65 31 27 30 25 06 03 55 | .hardcore1'0%..u d0: 04 03 13 1e 48 61 72 64 63 6f 72 65 20 43 65 72 | ....hardcore cer e0: 74 69 66 69 63 61 74 65 20 53 65 72 76 65 72 20 | tificate server f0: 49 49 30 1e 17 0d 39 38 30 35 31 36 30 31 30 33 | ii0...9805160103 <additional data
lines> ] <additional records in same format> server socket closed.
JSAPI User Guide
it amounts to about 80
lines of code, as shown below.
...report->filename : "[no filename]", (unsigned int) report->
lineno, message); } int run(jscontext *cx) { // enter a request before running anything in the context.
...*/ char *filename; unsigned int
lineno; /* * the return value comes back here -- if it could be a gc thing, you must * add it to the gc's "root set" with js_add*root(cx, &thing) where thing * is a jsstring *, jsobject *, or jsdouble *, and remove the root before * rval goes out of scope, or when rval is no longer needed.
... */ char *source = "x * f(y)"; ok = js_evaluatescript(cx, globalobj, source, strlen(source), filename,
lineno, &rval); if (ok) { /* should get a number back from the example source.
JS_CompileFunction
syntax jsfunction * js_compilefunction(jscontext *cx, jsobject *obj, const char *name, unsigned int nargs, const char **argnames, const char *body, size_t length, const char *filename, unsigned int
lineno); jsfunction * js_compileucfunction(jscontext *cx, jsobject *obj, const char *name, unsigned int nargs, const char **argnames, const jschar *body, size_t length, const char *filename, unsigned int
lineno); name type description cx jscontext * the context in which to compile the function.
...
lineno unsigned int
line number.
... used to report the offending
line in the file or url if an error occurs.
...similarly,
lineno is used to report the
line number where an error occurred during compilation.
JS_CompileFunctionForPrincipals
syntax jsfunction * js_compilefunctionforprincipals(jscontext *cx, jsobject *obj, jsprincipals *principals, const char *name, unsigned int nargs, const char **argnames, const char *body, size_t length, const char *filename, unsigned int
lineno); jsfunction * js_compileucfunctionforprincipals(jscontext *cx, jsobject *obj, jsprincipals *principals, const char *name, unsigned int nargs, const char **argnames, const jschar *body, size_t length, const char *filename, unsigned int
lineno); name type description cx jscontext * the context in which to compile the function.
...
lineno unsigned int
line number.
... used to report the offending
line in the file or url if an error occurs.
...similarly,
lineno is used to report the
line number of the function or file where an error occurred during compilation.
JS_EvaluateScript
syntax jsbool js_evaluatescript(jscontext *cx, jsobject *obj, const char *src, unsigned int length, const char *filename, unsigned int
lineno, jsval *rval); jsbool js_evaluateucscript(jscontext *cx, jsobject *obj, const jschar *src, unsigned int length, const char *filename, unsigned int
lineno, jsval *rval); name type description cx jscontext * the context in which to run the script.
...
lineno unsigned int
line number.
... used to report the offending
line in the file or url if an error occurs.
...similarly,
lineno is used to report the
line number of the script or file where an error occurred during compilation.
JS_SetRegExpInput
syntax bool js_setregexpinput(jscontext *cx, js::handleobject obj, js::handlestring input, bool multi
line); name type description cx jscontext * the context.
... multi
line bool true if input is multi
line.
...the jsreg_multi
line is set to multi
line parameter, and other flags are all reset.
... see also mxr id search for js_setregexpinput js_newregexpobject js_newucregexpobject jsreg_multi
line js_clearregexpstatics regexp ...
Parser API
example: > var expr = reflect.parse("obj.foo + 42").body[0].expression > expr.left.property ({loc:null, type:"identifier", name:"foo"}) > expr.right ({loc:{source:null, start:{
line:1, column:10}, end:{
line:1, column:12}}, type:"literal", value:42}) it is also available since firefox 7; it can be imported into the global object via: components.utils.import("resource://gre/modules/reflect.jsm") or into a specified object via: components.utils.import("resource://gre/modules/reflect.jsm", obj) built-in objects whether in spidermonkey shell or firefox (after importing),...
...
line number default: 1 the initial
line number to use for source location information.
...the
linenumber and filename properties of the syntax error object indicate the source location of the syntax error.
...about the node's source location, the field is null; otherwise it is an object consisting of a start position (the position of the first character of the parsed source region) and an end position (the position of the first character after the parsed source region): interface sourcelocation { source: string | null; start: position; end: position; } each position object consists of a
line number (1-indexed) and a column number (0-indexed): interface position {
line: uint32 >= 1; column: uint32 >= 0; } programs interface program <: node { type: "program"; body: [ statement ]; } a complete program source tree.
Setting up an update server
these changes will need to be made in order to use the locally built mar: put this
line in the mozconfig file in root of the build directory (create it if it does not exist): ac_add_options --disable-verify-mar several files contain a
line that must be uncommented.
... open them and find this
line: #defines['disable_updater_authenticode_check'] = true.
... delete the # at the beginning of the
line to uncomment it.
...you'll find the correct size in bytes at the end of the
line that begins "size", not the one that begins "size on disk".
Gecko states
applied to: role_menuitem, role_cell, role_out
lineitem, xxx: continue events: event_state_change Сoncomitant state: state_selectable state_focused the object is focused applied to: events: concomitant state: state_focusable state_pressed the object is pressed.
... state_expanded children of this object that have the role_out
lineitem role are displayed.
... state_collapsed children of this object that have the role_out
lineitem role are hidden.
...r editable areas that have any kind of autocompletion ext_state_defunct object no longer exists ext_state_selectable_text for text which is selectable, object must implement nsiaccessibletext ext_state_editable implements nsiaccessibleeditabletext ext_state_active this window is currently the active window ext_state_modal must do something with control before leaving it ext_state_multi_
line edit control that can take multiple
lines ext_state_horizontal uses horizontal layout ext_state_opaque indicates this object paints every pixel within its rectangular region ext_state_single_
line this text object can only contain 1
line of text ext_state_transient ext_state_vertical especially used for sliders and scrollbars ext_state_stale object not dead, but not up-to-date eithe...
Embedded Dialog API
(
line number accurate in version 1.30).
...a powerplant example can be found at cbrowserapp::overridecomponents (
line number accurate in version 1.24) and an mfc example at cmfcembedapp::overridecomponents (
line number accurate in version 1.20).
...(examples to be added as they come on
line.
... guide
lines a few restrictions on each component's ui interface...
Mozilla internal string guide
cache-friendly means that the zero terminator for c compatibility is written after the new content of the string has been written, so the result is a forward-only
linear write access pattern instead of a non-
linear back-and-forth sequence resulting from using setlength() followed by beginwriting().
...nsautostringn/nsautocstringn are more general alternatives that let you choose the number of characters in the in
line buffer.
... c++ signatures in idl, in parameters are read-only, and the c++ signatures for *string parameters follows the above guide
lines by using const nsastring& for these parameters.
... string guide
lines follow these simple rules in your code to keep your fellow developers, reviewers, and users happy.
XPCOM Stream Guide
at the same time, there may be some way to put water into the tank - say, a main water
line.
... that water
line represents an output stream: a controller for data going into something.
... nsconverteroutputstream @mozilla.org/intl/converter-output-stream;1 nsiconverteroutputstream .init(stream, charset, buffersize, replacechar) additional stream interfaces the nsi
lineinputstream interface supports a .read
line() method for reading a single
line from an input stream.
... (xxx nsiunicharinputstream interface) (xxx nsiunichar
lineinputstream interface) (xxx nsisearchableinputstream interface) stream converters (tbd: @mozilla.org/streamconverters;1) forcing an input stream to be read suppose you already have an input stream, and something to read from that input stream...but the reader doesn't do anything with the stream.
Interfacing with the XPCOM cycle collector
add a
line declaring that your class nsfoo participates in the cycle collection in nsfoo.cpp: ns_impl_cycle_collection_class(nsfoo) change the
line ns_decl_isupports to ns_decl_cycle_collecting_isupports in the definition of nsfoo.
... add a
line ns_decl_cycle_collection_class(nsfoo) within the public portion of definition of nsfoo.
... (we call nsibar the canonical isupports type for nsfoo.) add a
line ns_interface_map_entries_cycle_collection(nsfoo) to the interface map of nsfoo in nsfoo.cpp.
... or if that doesn't work: ns_interface_table_head(nsfoo) ns_interface_table2(nsfoo, nsibar, nsibaz) ns_interface_table_to_map_segue_cycle_collection(nsfoo) ns_interface_map_end change the
line ns_impl_addref(nsfoo) to ns_impl_cycle_collecting_addref(nsfoo) in nsfoo.cpp, and similarly change the
line ns_impl_release(nsfoo) to ns_impl_cycle_collecting_release(nsfoo) in nsfoo.cpp.
inIDOMUtils
ement); void getcsspropertynames([optional] in unsigned long aflags, [optional] out unsigned long acount, [retval, array, size_is(acount)] out wstring aprops); nsisupportsarray getcssstylerules(in nsidomelement aelement, [optional] in domstring apseudo); nsidomnode getparentfornode(in nsidomnode anode, in boolean ashowinganonymouscontent); unsigned long getrule
line(in nsidomcssstylerule arule); unsigned long getrulecolumn(in nsidomcssstylerule arule); unsigned long getselectorcount(in nsidomcssstylerule arule); astring getselectortext(in nsidomcssstylerule arule, in unsigned long aselectorindex); unsigned long long getspecificity(in nsidomcssstylerule arule, in unsigned long aselectorindex); nsidomfontfacelist ge...
... getrule
line() returns the
line number of the specified css style rule in its source file.
... unsigned long getrule
line( in nsidomcssstylerule arule ); parameters arule the style rule to retrieve the
line number of.
... return value the
line number of the style rule; the url of the rule can be obtained from its parent style sheet object.
jsdIStackFrame
method overview boolean eval(in astring bytes, in autf8string filename, in unsigned long
line, out jsdivalue result); attributes attribute type description callee jsdivalue function object running in this stack frame.
...
line unsigned long current
line number (using the script's pc to
line map.) read only.
...boolean eval( in astring bytes, in autf8string filename, in unsigned long
line, out jsdivalue result ); parameters bytes script to be evaluated.
...
line result return value ...
mozITXTToHTMLConv
last changed in gecko 1.8.1 (firefox 2 / thunderbird 2 / seamonkey 1.1) inherits from nsistreamconverter implemented by @mozilla.org/txttohtmlconv;1 as a service: var ios = components.classes["@mozilla.org/txttohtmlconv;1"] .getservice(components.interfaces.mozitxttohtmlconv); method overview unsigned long citeleveltxt(in wstring
line, out unsigned long log
linestart) void findurlinplaintext(in wstring text, in long alength, in long apos, out long astartpos, out long aendpos) wstring scanhtml(in wstring text, in unsigned long whattodo) wstring scantxt(in wstring text, in unsigned long whattodo) constants conversion control attributes these bits allow you to control the conversion of text into...
... citeleveltxt() returns the "cite level" of the specified text; that is, it indicates how many levels of email reply quotes are used, when the text uses "quote" characters (such as ">") at the beginning of the
line to indicate cite levels.
... unsigned long citeleveltxt( in wstring
line, out unsigned long log
linestart ); parameters
line the original
line of text, which may begin with one or more cite characters such as ">".
... log
linestart on output, this parameter is set to indicate the offset into the string of the first non-cite character.
nsIAccessibleStates
state_expanded 0x00000200 children of this object that have the role_out
lineitem role are displayed.
... state_collapsed 0x00000400 children of this object that have the role_out
lineitem role are hidden.
... ext_state_multi_
line 0x00000040 edit control that can take multiple
lines.
... ext_state_single_
line 0x00000200 this text object can only contain 1
line of text.
nsIApplicationCacheChannel
1.0 66 introduced gecko 1.9.1 inherits from: nsiapplicationcachecontainer last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void markoff
linecacheentryasforeign(); attributes attribute type description chooseapplicationcache boolean when true, the channel will choose an application cache if one was not explicitly provided and none is available from the notification callbacks.
... methods markoff
linecacheentryasforeign() a shortcut method to mark the cache item of this channel as 'foreign'.
...void markoff
linecacheentryasforeign(); parameters none.
... see also off
line resources in firefox nsiapplicationcache nsiapplicationcachecontainer nsiapplicationcacheservice nsiapplicationcachenamespace nsidomoff
lineresourcelist ...
nsIHTTPHeaderListener
method overview void newresponseheader(in string headername, in string headervalue); void status
line(in string
line); methods newresponseheader() called for each http response header.
...void newresponseheader( in string headername, in string headervalue ); parameters headername headervalue status
line() called once for the http response status
line.
... value does not include a terminating new
line.
...void status
line( in string
line ); parameters
line ...
nsIMsgIncomingServer
m: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) method overview void clearallvalues(); void cleartemporaryreturnreceiptsfilter(); void closecachedconnections(); void configuretemporaryfilters(in nsimsgfilterlist filterlist); void configuretemporaryreturnreceiptsfilter(in nsimsgfilterlist filterlist); obsolete since gecko 1.8 void displayoff
linemsg(in nsimsgwindow awindow); boolean equals(in nsimsgincomingserver server); void forgetpassword(); void forgetsessionpassword(); astring generateprettynameformigration(); boolean getboolattribute(in string name); boolean getboolvalue(in string attr); acstring getcharattribute(in string name); acstring getcharvalue(in string attr); nsilocalfile getfilevalue(in string relpref, in...
... limitoff
linemessagesize boolean localpath nsilocalfile localstoretype acstring the schema for the local mail store, such as "mailbox", "imap", or "news" used to construct uris.
... loginatstartup boolean logonfallback boolean maxmessagesize long off
linesupportlevel long password acstring passwordpromptrequired boolean if the password for the server is available either via authentication in the current session or from password manager stored entries, return false.
...void configuretemporaryreturnreceiptsfilter( in nsimsgfilterlist filterlist ); parameters filterlist missing description exceptions thrown missing exception missing description displayoff
linemsg() void displayoff
linemsg( in nsimsgwindow awindow ); parameters awindow missing description exceptions thrown missing exception missing description equals() boolean equals( in nsimsgincomingserver server ); parameters server missing description return value missing description exceptions thrown missing exception missing description forgetpassword() void forgetpassword(); paramet...
nsIMsgMessageService
iuri aurl); void openattachment(in string acontenttype, in string afilename, in string aurl, in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener); void savemessagetodisk(in string amessageuri, in nsifilespec afile, in boolean ageneratedummyenvelope, in nsiurllistener aurllistener, out nsiuri aurl, in boolean canonical
lineending, in nsimsgwindow amsgwindow); void geturlforuri(in string amessageuri, out nsiuri aurl, in nsimsgwindow amsgwindow); void displaymessageforprinting(in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener, out nsiuri aurl); void search(in nsimsgsearchsession asearchsession, in nsimsgwindow amsgwindow, in ns...
... void savemessagetodisk(in string amessageuri, in nsifilespec afile, in boolean ageneratedummyenvelope, in nsiurllistener aurllistener, out nsiuri aurl, in boolean canonical
lineending, in nsimsgwindow amsgwindow); parameters amessageuri url representing the message to spool out to disk.
... canonical
lineending amsgwindow nsimsgwindow for progress and status feedback return values aurl the new nsiuri of the saved message.
... note if we're off
line, then even if alocalonly is false, we won't stream over the network return the url that gets run, if any ismsginmemcache() determines whether a message is in the memory cache.
nsIVariant
nsresult getasarray(out pruint16 type, out nsiid iid, out pruint32 count, out voidptr ptr); violates the xpcom interface guide
lines astring getasastring(); native code only!
... nsresult getasid(out nsid retval); violates the xpcom interface guide
lines print16 getasint16(); native code only!
... violates the xpcom interface guide
lines getasarray() nsresult getasarray( out pruint16 type, out nsiid iid, out pruint32 count, out voidptr ptr ); parameters type the type of the array elements.
... violates the xpcom interface guide
lines getasid() nsresult getasid( out nsid retval ); parameters retval if the internal value is an iid then it is returned.
Performance
you can download the command
line tool from the sqlite download page.
... be sure you have a version of the command
line tool that is at least as recent as what mozilla uses.
... as of april 10, 2006, mozilla uses sqlite 3.3.4, but the latest precompiled version of the command
line tools is not available for all platforms.
...the vacuum command is essentially the same as the command
line sqlite3 olddb .dump | sqlite3 newdb; mv newdb olddb.
Frequently Asked Questions
it's not in your code, or it's not on your platform, but there's an nscomptr on the
line where the error is and you're suspicious.
... ns_precondition "you can't dereference a null nscomptr with operator->()" ns_precondition "you can't dereference a null nscomptr with operator*()" other issues printf("%x\n", mynscomptr); can cause the program to crash on sigill (illegal instruction), and not on the
line with the printf, which can make it tricky to figure out.
...you can examine the source to nscomptr on
line using (the wonderful) lxr.
... some com ownership guide
lines.
Mozilla
these articles provide important guides and references to ensuring the code you write is secure, including both design recommendations and testing guide
lines.
... command
line options command
line options are used to specify various startup options for mozilla applications.this page describes the commonly used options and how to use them.
... you can open the command
line interface by pressing shift + f2.
... gecko's "almost standards" mode "almost standards" rendering mode is exactly the same as "standards" mode in all details save one, where it works like "quirks" mode: the height calculations for
line boxes and some of the in
line elements in them.
URLs - Plugins
windows and mac if a file is posted with any protocol other than ftp, the file must be text with unix-style
line breaks ('\n' separators only).
...for protocols in which the headers must be distinguished from the body, such as http, the buffer or file should contain the headers, followed by a blank
line, then the body.
... if no custom headers are required, simply add a blank
line ('\n') to the beginning of the file or buffer.
... note: you cannot use npn_posturl to specify headers (even a blank
line) in a memory buffer.
Set a conditional breakpoint - Firefox Developer Tools
a normal breakpoint is just associated with a
line: when the program reaches that
line, the debugger pauses.
...when the program reaches the
line, the debugger pauses only if the breakpoint's specified expression evaluates to true.
... to set a conditional breakpoint, activate the context menu in the source pane, on the
line where you want the breakpoint, and select "add conditional breakpoint".
... conditional breakpoints are shown as orange arrows laid over the
line number.
Step through code - Firefox Developer Tools
when the debugger is stopped at a breakpoint, you can step through it using four buttons in the toolbar: in order, the buttons are: play: run to the next breakpoint step over: advance to the next
line in the same function.
... step in: advance to the next
line in the function, unless on a function call, in which case enter the function being called step out: run to the end of the current function, in which case, the debugger will skip the return value from a function, returning execution to the caller split console when paused, you can press the esc key to open and close the split console to gain more insight into errors and variables: pause on breakpoints overlay since firefox 70, when your code is paused on a breakpoint an overlay appears on the viewport of the tab you are debugging.
... in
line variable preview new in firefox 71, the source pane now gives you an instant preview of the variables on each
line of code you've stepped through.
... see set a breakpoint > in
line variable preview for more information.
Set a logpoint - Firefox Developer Tools
to create a logpoint: right click on a
line number in the debugger panel and pick add log action from the context menu.
... create an expression in
line.
... the result is logged in the console panel every time the
line with the logpoint executes.
... when you want to know that a specific
line in your code has executed, but you don’t want to break code execution, set a logpoint.
Set event listener breakpoints - Firefox Developer Tools
when execution pauses, the source pane displays the highlighted
line of the javascript code that is next to be executed, along with the surrounding code for context.
... in addition, you get a box overlaid on the viewport saying "paused on event breakpoint", with buttons to step over that
line of code or resume execution.
... in
line variable preview new in firefox 71, the source pane now gives you an instant preview of the variables on each
line of code you've stepped through.
... see set a breakpoint > in
line variable preview for more information.
Tutorial: Show Allocations Per Call Path - Firefox Developer Tools
function walk(site, children, indent) { var name, place; if (site) { name = site.functiondisplayname; place = ' ' + site.source + ':' + site.
line + ':' + site.column; } else { name = '(root)'; place = ''; } console.log(indent + totals.get(site) + ': ' + name + place); for (let [child, grandchildren] of children) walk(child, grandchildren, indent + ' '); } walk(null, rootchildren, ''); } })(); in the scratchpad, ensure that no text is selected, and press the "run" button.
...this stops logging allocations, and displays a tree of allocations: an allocation plot, displayed in the console the numbers at the left edge of each
line show the total number of objects allocated at that site or at sites called from there.
...(the
line number for the onclick handler is 1, indicating that the allocating call is located on
line one of the handler text itself.
... we will probably change this to be the
line number within page.html, not the
line number within the handler code.) the onclick handler calls dodivsandspans, which calls divsandspans, which invokes closures of factory to do all the actual allocation.
Aggregate view - Firefox Developer Tools
so, for example, the first entry says that: 4,832,592 bytes, comprising 93% of the total heap usage, were allocated in a function at
line 35 of "alloc.js", or in functions called by that function we can use the disclosure triangle to drill down the call tree, to find the exact place your code made those allocations.
... let's get an allocation trace: open the memory tool check "record call stacks" load https://mdn.github.io/performance-scenarios/dom-allocs/alloc.html take a snapshot select "view/aggregate" select "group by/call stack" you should see something like this: this is telling us that 93% of the total heap snapshot was allocated in functions called from "alloc.js",
line 35 (our initial createtoolbars() call).
... so in the example above, we can see that we made 4002 allocations, accounting for 89% of the total heap, in createtoolbarbutton(), at alloc.js
line 9, position 23: that is, the exact point where we create the <span> elements.
... the file name and
line number is a link: if we click it, we go directly to that
line in the debugger: inverted call stack the call stack view is top-down: it shows allocations that happen at that point or points deeper in the call tree.
Web Console remoting - Firefox Developer Tools
the pageerror packet is: { "from": "conn0.console9", "type": "pageerror", "pageerror": { "errormessage": "referenceerror: foo is not defined", "sourcename": "http://localhost/~mihai/mozilla/test.js", "
linetext": "", "
linenumber": 6, "columnnumber": 0, "category": "content javascript", "timestamp": 1347294508210, "error": false, "warning": false, "exception": true, "strict": false, "private": false, } } the packet is similar to nsiscripterror - for simplicity.
... starting with firefox 24 the errormessage and
linetext properties can be long string actor grips if the string is very long.
... for each console message we receive in the server, we send the following consoleapicall packet to the client: { "from": "conn0.console9", "type": "consoleapicall", "message": { "level": "error", "filename": "http://localhost/~mihai/mozilla/test.html", "
linenumber": 149, "functionname": "", "timestamp": 1347302713771, "private": false, "arguments": [ "error omg aloha ", { "type": "object", "classname": "htmlbodyelement", "actor": "conn0.consoleobj20" }, " 960 739 3.141592653589793 %a", "zuzu", { "type": "null" }, { "type": "undefined" } ] } } similar to how we s...
...the
linetext and errormessage properties can be long string actors now.
Animation - Web APIs
the animation interface of the web animations api represents a single animation player and provides playback controls and a time
line for an animation node or source.
...if the animation lacks a time
line, is inactive or hasn't been played yet, its value is null.
... animation.time
line gets or sets the time
line associated with this animation.
... designing safer web animation for motion sensitivity · an a list apart article an introduction to the reduced motion media query | css-tricks responsive design for motion | webkit mdn understanding wcag, guide
line 2.2 explanations understanding success criterion 2.2.2 | w3c understanding wcag 2.0 specifications specification status comment web animationsthe definition of 'animation' in that specification.
BaseAudioContext - Web APIs
the baseaudiocontext interface of the web audio api acts as a base definition for on
line and off
line audio-processing graphs, as represented by audiocontext and off
lineaudiocontext respectively.
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-...
...base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">baseaudiocontext</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties baseaudiocontext.audioworklet read only secure context returns the audioworklet object, which can be used to create and manage audionodes in which javascript code implementing the audioworkletp...
... baseaudiocontext.createwaveshaper() creates a waveshapernode, which is used to implement non-
linear distortion effects.
CDATASection - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" ...
...y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">characterdata</text></a><poly
line 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-base
line="middle">text</text></a><poly
line 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,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">cdatasection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no specific properties and implements those of its parent text.
CanvasRenderingContext2D.closePath() - Web APIs
the canvasrenderingcontext2d.closepath() method of the canvas 2d api attempts to add a straight
line from the current point to the start of the current sub-path.
... syntax void ctx.closepath(); examples closing a triangle this example creates the first two (diagonal) sides of a triangle using the
lineto() method.
... const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.beginpath(); ctx.moveto(20, 140); // move pen to bottom-left corner ctx.
lineto(120, 10); //
line to top corner ctx.
lineto(220, 140); //
line to bottom-right corner ctx.closepath(); //
line to bottom-left corner ctx.stroke(); result closing just one sub-path this example draws a smiley face consisting of three disconnected sub-paths.
... const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.beginpath(); ctx.arc(240, 20, 40, 0, math.pi); ctx.moveto(100, 20); ctx.arc(60, 20, 40, 0, math.pi); ctx.moveto(215, 80); ctx.arc(150, 80, 65, 0, math.pi); ctx.closepath(); ctx.
linewidth = 6; ctx.stroke(); result specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d.closepath' in that specification.
CanvasRenderingContext2D.strokeRect() - Web APIs
the canvasrenderingcontext2d.strokerect() method of the canvas 2d api draws a rectangle that is stroked (out
lined) according to the current strokestyle and other context settings.
... examples a simple stroked rectangle this example draws a rectangle with a green out
line using the strokerect() method.
... const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.strokestyle = 'green'; ctx.strokerect(20, 10, 160, 100); result applying various context settings this example draws a rectangle with a drop shadow and thick, beveled out
lines.
... html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.shadowcolor = '#d53'; ctx.shadowblur = 20; ctx.
linejoin = 'bevel'; ctx.
linewidth = 15; ctx.strokestyle = '#38f'; ctx.strokerect(30, 30, 160, 90); result specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d.strokerect' in that specification.
CanvasRenderingContext2D.strokeText() - Web APIs
the canvasrenderingcontext2d method stroketext(), part of the canvas 2d api, strokes — that is, draws the out
lines of — the characters of a text string at the specified coordinates.
... use the filltext() method to fill the text characters rather than having just their out
lines drawn.
...the text is rendered using the settings specified by font, textalign, textbase
line, and direction.
... examples drawing text out
lines this example writes the words "hello world" using the stroketext() method.
Element.getClientRects() - Web APIs
originally, microsoft intended this method to return a textrectangle object for each
line of text.
...for an in
line element, the two definitions are the same.
...note that the p has onlyone border box, while the span has multiple border boxes.</p> <div> <strong>original</strong> <p> <span>paragraph that spans multiple
lines</span> </p> </div> <div> <strong>p's rect</strong> <p class="withclientrectsoverlay"> <span>paragraph that spans multiple
lines</span> </p> </div> <div> <strong>span's rect</strong> <p> <span class="withclientrectsoverlay">paragraph that spans multiple
lines</span> </p> </div> example 2: this html creates three ordered lists.
... strong { text-align: center; } div { display: in
line-block; width: 150px; } div p, ol, table { border: 1px solid blue; } span, li, th, td { border: 1px solid green; } javascript the javascript code draws the client rects for all html elements that have css class withclientrectsoverlay assigned.
Element.scrollIntoView() - Web APIs
corresponds to scrollintoviewoptions: {block: "start", in
line: "nearest"}.
...corresponds to scrollintoviewoptions: {block: "end", in
line: "nearest"}.
... in
line optional defines horizontal alignment.
... example var element = document.getelementbyid("box"); element.scrollintoview(); element.scrollintoview(false); element.scrollintoview({block: "end"}); element.scrollintoview({behavior: "smooth", block: "end", in
line: "nearest"}); notes the element may not be scrolled completely to the top or bottom depending on the layout of other elements.
Element - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent interface, node, and by extension that interface's parent, eventtarget.
... element.getclientrects() returns a collection of rectangles that indicate the bounding rectangles for each
line of text in a client.
GlobalEventHandlers.onerror - Web APIs
window.onerror window.onerror = function(message, source,
lineno, colno, error) { ...
... source: url of the script where the error was raised (string)
lineno:
line number where error was raised (number) colno: column number for the
line where the error occurred (number) error: error object (object) when the function returns true, this prevents the firing of the default event handler.
... window.onerror = function (msg, url,
lineno, columnno, error) { var string = msg.tolowercase(); var substring = "script error"; if (string.indexof(substring) > -1){ alert('script error: see browser console for detail'); } else { var message = [ 'message: ' + msg, 'url: ' + url, '
line: ' +
lineno, 'column: ' + columnno, 'error object: ' + json.stringify(error) ].join(' - '); alert(mes...
...sage); } return false; }; when using the in
line html markup (<body onerror="alert('an error occurred')">), the html specification requires arguments passed to onerror to be named event, source,
lineno, colno, error.
HTMLAnchorElement - Web APIs
this interface corresponds to <a> element; not to be confused with <link>, which is represented by htmllinkelement) <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" ...
...y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlanchorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement, and implements those from htmlhyperlinkelementutils.
HTMLAreaElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" ...
...alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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" strok...
...e="#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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlareaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement, and implements those from htmlhyperlinkelementutils.
HTMLBaseElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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,monospac...
...e" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlbaseelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLButtonElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><...
...poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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/htmlbuttonelement" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlbuttonelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLCanvasElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="...
...middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="3...
...03.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="9...
...0" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlcanvaselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLDListElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">event...
...target</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="9...
...0" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmldlistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLDataElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line...
... 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-base
line="middle">node</text></a><poly
line 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 m...
...ono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmldataelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLDataListElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarg...
...et</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="co...
...nsolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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" x...
...2="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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmldatalistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement htmldatalistelement.options read only is a htmlcollection representing a collection of the contained option elements.
HTMLDivElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line p...
...oints="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-base
line="middle">node</text></a><poly
line 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 mon...
...o,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmldivelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><polyli...
...ne 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, element, and implements those from documentandelementeventhandlers, elementcssin
linestyle, globaleventhandlers, h...
... methods inherits methods from its parent, element, and implements those from documentandelementeventhandlers, elementcssin
linestyle, globaleventhandlers, htmlorforeignelement and toucheventhandlers.
HTMLEmbedElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-si...
...ze="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlembedelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLFieldSetElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignmen...
...t-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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" fon...
...t-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="#d4dd...
...e4"/><
line x1="509" y1="90" x2="492" y2="90" stroke="#d4dde4"/><a xlink:href="/docs/web/api/htmlfieldsetelement" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlfieldsetelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLFormElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</...
...text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="consol...
...as,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="4...
...92" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlformelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, htmlelement.
HTMLHRElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><...
...poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlhrelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLHeadElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text...
...></a><poly
line 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-base
line="middle">node</text></a><poly
line 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,m...
...onaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlheadelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLHeadingElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line poin...
...ts="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-base
line="middle">node</text></a><poly
line 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,m...
...onospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="#d4...
...dde4"/><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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlheadingelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLHtmlElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monac...
...o,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="#f...
...ff" stroke="#d4dde4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line points="491,25 501,20 501,30 491,25" stroke="#d4dde4" fill="none"/><
line x1="501" y1="25" x2="509" y2="25" st...
...roke="#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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlhtmlelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLImageElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlimageelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor image() the image() constructor creates and returns a new htmlimageelement object representing an html <img> element which is not attached to any dom tree.
HTMLLIElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle"...
...>eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmllielement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLLabelElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 1...
...21,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-base
line="middle">node</text></a><poly
line 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" fil...
...l="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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 xli...
...nk: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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmllabelelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLLegendElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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" fi...
...ll="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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 xl...
...ink: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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmllegendelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLLinkElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" ...
...y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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/htmllinkelement" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmllinkelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement, and linkstyle.
HTMLMapElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="m...
...iddle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="30...
...3.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlmapelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLMediaElement.onencrypted - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 8.571428571428571%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 60" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel...
...ine="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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"/><l...
...ine 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlmediaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} syntax htmlmediaelement.onencrypted = function(encrypted) { ...
HTMLMediaElement.onwaitingforkey - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 8.571428571428571%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 60" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" tex...
...t-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlmediaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} syntax htmlmediaelement.onwaitingforkey = function(waitingforkey) { ...
HTMLMenuElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget...
...</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="cons...
...olas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlmenuelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} propertiesthis interface has no properties, but inherits properties from: htmlelementmethodsthis interface has no methods, but inherits methods from: htmlelement specifications specification status comment html living standardthe definition of 'htmlmenuelement' in that specification.
HTMLMenuItemElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eve...
...nttarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-fami...
...ly="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlmenuitemelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} propertiesthis interface has no properties, but inherits properties from: htmlelementmethodsthis interface has no methods, but inherits methods from: htmlelement specifications specification status comment html 5.1the definition of 'htmlmenuitemelement' in that specification.
HTMLMetaElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,2...
...5 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlmetaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLMeterElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="...
...#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-wid...
...th="2px" /><text x="303.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlmeterelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits properties from its parent, htmlelement.
HTMLModElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" ...
...text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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" x...
...2="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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlmodelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLObjectElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill...
...="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-w...
...idth="2px" /><text x="303.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlobjectelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLOptGroupElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="midd...
...le" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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" s...
...troke="#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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmloptgroupelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLOptionElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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/htmloptio...
...nelement" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmloptionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLOutputElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line poin...
...ts="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-base
line="middle">node</text></a><poly
line 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,m...
...onospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="#d4...
...dde4"/><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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmloutputelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, htmlelement.
HTMLParagraphElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line p...
...oints="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-base
line="middle">node</text></a><poly
line 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 mon...
...o,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlparagraphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLParamElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="...
...#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-wid...
...th="2px" /><text x="303.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlparamelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLPictureElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stro...
...ke="#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-base
line="middle">node</text></a><poly
line 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="mi...
...ddle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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/html...
...pictureelement" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlpictureelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties no specific property, but inherits properties from its parent, htmlelement.
HTMLPreElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel...
...ine="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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"/><l...
...ine 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlpreelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLProgressElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignmen...
...t-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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" fon...
...t-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="#d4dd...
...e4"/><
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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlprogresselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLQuoteElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor...
...="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlquoteelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLScriptElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" ...
...y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlscriptelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLSelectElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly...
...
line 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-base
line="middle">node</text></a><poly
line 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,anda...
...le mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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" st...
...roke="#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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlselectelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of htmlelement, and of element and node.
HTMLShadowElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">...
...element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlshadowelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of htmlelement.
HTMLSourceElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></...
...a><poly
line 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-base
line="middle">node</text></a><poly
line 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,mona...
...co,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlsourceelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLSpanElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlspanelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties, but inherits properties from: htmlelement.
HTMLStyleElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" ...
...y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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/htmlstyleelement" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlstyleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement, and implements linkstyle.
HTMLTableCaptionElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</t...
...ext></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="consola...
...s,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="49...
...2" 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmltablecaptionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLTableColElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</t...
...ext></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="consola...
...s,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="49...
...2" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmltablecolelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLTableElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middl...
...e" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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" st...
...roke="#d4dde4"/><
line x1="509" y1="90" x2="492" y2="90" stroke="#d4dde4"/><a xlink:href="/docs/web/api/htmltableelement" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmltableelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLTemplateElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><
line x1="1...
...21" 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">ele...
...ment</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmltemplateelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of htmlelement.
HTMLTimeElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line...
... 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-base
line="middle">node</text></a><poly
line 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 m...
...ono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmltimeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLTitleElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 1...
...21,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-base
line="middle">node</text></a><poly
line 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="#4d4e...
...53" text-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmltitleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLTrackElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" align...
...ment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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="#d...
...4dde4"/><
line x1="509" y1="90" x2="492" y2="90" stroke="#d4dde4"/><a xlink:href="/docs/web/api/htmltrackelement" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmltrackelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLUnknownElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line po...
...ints="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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">htmlelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">htmlunknownelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties no specific property; inherits properties from its parent, htmlelement.
IDBDatabase - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">idbdatabase</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties idbdatabase.name read only a domstring that contains the name of ...
...s used a lot later on db = dbopenrequest.result; // run the displaydata() function to populate the task // list with all the to-do list data already in the idb displaydata(); }; // this event handles the event whereby a new version of // the database needs to be created either one has not // been created before, or a new version number has been // submitted via the window.indexeddb.open
line above dbopenrequest.onupgradeneeded = function(event) { var db = event.target.result; db.onerror = function(event) { note.innerhtml += '<li>error loading database.</li>'; }; // create an objectstore for this database using // idbdatabase.createobjectstore var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore ...
...e }); objectstore.createindex("minutes", "minutes", { unique: false }); objectstore.createindex("day", "day", { unique: false }); objectstore.createindex("month", "month", { unique: false }); objectstore.createindex("year", "year", { unique: false }); objectstore.createindex("notified", "notified", { unique: false }); note.innerhtml += '<li>object store created.</li>'; }; this next
line opens up a transaction on the database, then opens an object store that we can then manipulate the data inside of.
IDBOpenDBRequest - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,a...
...ndale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">idbrequest</text></a><poly
line 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" he...
...ight="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-base
line="middle">idbopendbrequest</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits methods from its parents idbrequest and eventtarget.
...is is used a lot below db = dbopenrequest.result; // run the displaydata() function to populate the task // listwith all the to-do list data already in the idb displaydata(); }; // this event handles the event whereby a new version of // the database needs to be created either one has not // been created before, or a new version number has been // submitted via the window.indexeddb.open
line above // it is only implemented in recent browsers dbopenrequest.onupgradeneeded = function(event) { var db = this.result; db.onerror = function(event) { note.innerhtml += '<li>error loading database.</li>'; }; // create an objectstore for this database var objectstore = db.createobjectstore("todolist", { keypath: "tasktitle" }); // define what data items the objectstore will c...
Timing element visibility with the Intersection Observer API - Web APIs
using this api lets everything get stream
lined by the browser to reduce the impact on performance substantially.
... the wrapper's width is fixed at 700px so that it will fit in the available space when presented in
line on mdn below.
...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.
... function loadrandomad(replacebox) { let ads = [ { bgcolor: "#cec", title: "eat green beans", body: "make your mother proud—they're good for you!" }, { bgcolor: "aquamarine", title: "millionsoffreebooks.whatever", body: "read classic literature on
line free!" }, { bgcolor: "lightgrey", title: "3.14 shades of gray: a novel", body: "love really does make the world go round..." }, { bgcolor: "#fee", title: "flexbox florist", body: "when life's layout gets complicated, send flowers." } ]; let adbox, title, body, timerelem; let ad = ads[math.floor(math.random()*ads.length)]; if (repla...
Transcoding assets for Media Source Extensions - Web APIs
[0] (c) copyright 2008, blender foundation / www.bigbuckbunny.org / https://peach.blender.org/about/ tools required when working with mse, the following tools are a must have: ffmpeg — a command-
line utility for transcoding your media into the required formats.
... bento4 — a set of command-
line utilities for getting asset metadata and creating content for dash.
...if you don't need it, add --audio-codec=aac to the mp4-dash-encode.py command
line.
... fragmenting if you have an asset that is not already an mp4, ffmpeg can handle emitting a properly fragmented mp4 during the transcode process, with the -movflags frag_keyframe+empty_moov command
line flag: $ ffmpeg -i trailer_1080p.mov -c:v copy -c:a copy -movflags frag_keyframe+empty_moov bunny_fragmented.mp4 if you already have an mp4, but it's not properly fragmented, you can again use ffmpeg: $ ffmpeg -i non_fragmented.mp4 -movflags frag_keyframe+empty_moov fragmented.mp4 in both cases, chrome may require an extra movie flag to be set: -movflags frag_keyframe+empty_moov+default_base...
RTCDataChannel: error event - Web APIs
, "cookie received while shutting down", "restart of an association with new addresses", "user-initiated abort", "protocol violation" ]; dc.addeventlistener("error", ev => { const err = ev.error; console.error("webrtc error: ", err.message); // handle specific error detail types switch(err.errordetail) { case "sdp-syntax-error": console.error(" sdp syntax error in
line ", err.sdp
linenumber); break; case "idp-load-failure": console.error(" identity provider load failure: http error ", err.httprequeststatuscode); break; case "sctp-failure": if (err.sctpcausecode < sctpcausecodes.length) { console.error(" sctp failure: ", err.sctpcausecode); } else { console.error(" unknown sctp err...
...or"); } break; case "dtls-failure": if (err.receivedalert) { console.error(" received dlts failure alert: ", err.receivedalert); } if (err.sentalert) { console.error(" sent dlts failure alert: ", err.receivedalert); } break; } // add source file name and
line information console.error(" error in file ", err.filename, " at
line ", err.
linenumber, ", column ", err.columnnumber); }, false); the received event provides details in an rtcerror object called error; rtcerror is an extension of the domexception interface.
...the message string is always output, as is information about the source file's name,
line number, and column number at which the error occurred.
...for example, an sdp syntax error displays the
line number of the error within the sdp, and an sctp error displays a message corresponding to the sctp cause code.
RTCIceCandidate.priority - Web APIs
as is the case with most of rtcicecandidate's properties, the value of priority is extracted from the candidate a-
line string specified when creating the rtcicecandidate.
... the a-
line string is obtained either from the rtcicecandidateinit property candidate or from an a-
line string passed into rtcpeerconnection.addicecandidate() instead of an rtcicecandidate.
... usage notes consider this sdp attribute
line (a-
line) which describes an ice candidate: a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host the priority is the number after the protocol, so it's the fourth field in the candidate string.
... var bestcandidate = { candidate: "", sdpmid: null, sdpm
lineindex: null, priority: 0 }; function handlecandidate(candidatestring) { var candidate = new rtcicecandidate(candidatestring); if (candidate.priority > bestcandidate.priority) { bestcandidate = candidate; } } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcicecandidate.priority' in that specification.
RTCPeerConnection.addIceCandidate() - Web APIs
the end-of-candidates notification is transmitted to the remote peer using a candidate with an a-
line value of end-of-candidates.
... if no candidate object is specified, or its value is null, an end-of-candidates signal is sent to the remote peer using the end-of-candidates a-
line, formatted simply like this: a=end-of-candidates deprecated parameters in older code and documentation, you may see a callback-based version of this function.
... typeerror the specified candidate's sdpmid and sdpm
lineindex are both null.
... the specified value of sdpm
lineindex is greater than or equal to the number of media descriptions included in the remote description.
RTCRtpTransceiver - Web APIs
a transceiver is uniquely identified using its mid property, which is the same as the media id (mid) of its corresponding m-
line.
... an rtcrtptransceiver is associated with an m-
line if its mid is non-null; otherwise it's considered disassociated.
... mid read only the media id of the m-
line associated with this transceiver.
...this field is null if neither a local or remote description has been applied, or if its associated m-
line is rejected by either a remote offer or any answer.
SVGAnimateElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text...
...></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="6...
...5" width="190" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="386" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svganimationelement</text></a><poly
line points="291,89 281,84 281,94 291,89" stroke="#d4dde4" fill="none"/><
line x1="281" y1="89" x2="251" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svganimateelement" target="_top"><rect x="81" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="166" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svganimateelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events:...
SVGAnimateMotionElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">e...
...lement</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="386" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svganimationelement</text></a><poly
line points="291,89 281,84 281,94 291,89" stroke="#d4dde4" fill="none"/><
line x1="281" y1="89" x2="251" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svganimatemotionelement" target="_top"><rect x="21" y="65" width="230" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="136" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svganimatemotionelement</text></a></svg></div> a:hover text { fill: ...
SVGAnimateTransformElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><li...
...ne 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-base
line="middle">node</text></a><poly
line 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-base
line="mid...
...dle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="386" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svganimationelement</text></a><poly
line points="291,89 281,84 281,94 291,89" stroke="#d4dde4" fill="none"/><
line x1="281" y1="89" x2="251" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svganimatetransformelement" target="_top"><rect x="-9" y="65" width="260" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="121" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svganimatetransformelement</text></a></svg></div> a:hover t...
SVGClipPathElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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" te...
...xt-anchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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/w...
...eb/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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgclippathelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement.
SVGCursorElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-a...
...nchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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/a...
...pi/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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgcursorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement, and implements properties from svgurireference.
SVGDefsElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><...
...poly
line 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-base
line="middle">svgelement</text></a><poly
line 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" widt...
...h="180" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svggraphicselement</text></a><poly
line points="301,89 291,84 291,94 301,89" stroke="#d4dde4" fill="none"/><
line x1="291" y1="89" x2="261" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svgdefselement" target="_top"><rect x="121" y="65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="191" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgdefselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} ...
SVGDescElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><...
...poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="1...
...40" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgdescelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svggeometryelement.
SVGElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,2...
...5" 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-base
line="middle">node</text></a><poly
line 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-anc...
...hor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits properties from: documentandelementeventhandlers, element, elementcssin
linestyle, globaleventhandlers, htmlorforeignelement, svgelementinstance svgelement.datasetread only a...
... methods this interface has no methods, but inherits methods from: documentandelementeventhandlers, element, elementcssin
linestyle, globaleventhandlers, htmlorforeignelement, svgelementinstance events listen to these events using addeventlistener() or by assigning an event listener to the equivalent on...
SVGFEBlendElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text...
...></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfeblendelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_feblend_mode_unknown 0 the type is not one of predefined types.
SVGFEColorMatrixElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">e...
...lement</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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"><r...
...ect 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfecolormatrixelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_fecolormatrix_type_unknown 0 the type is not one of predefined types.
SVGFEComponentTransferElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-baselin...
...e="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfecomponenttransferelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and implements properties of svgfilterprimitivestandardattributes.
SVGFECompositeElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">eleme...
...nt</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfecompositeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_fecomposite_operator_unknown 0 the type is not one of predefined types.
SVGFEConvolveMatrixElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><li...
...ne 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-base
line="middle">node</text></a><poly
line 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-base
line="mid...
...dle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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/svgfeconvolvematrixelement" target=...
..."_top"><rect x="221" y="65" width="260" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="351" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfeconvolvematrixelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_edgemode_unknown 0 the type is not one of predefined types.
SVGFEDiffuseLightingElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="m...
...iddle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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" targ...
...et="_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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfediffuselightingelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
SVGFEDisplacementMapElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="m...
...iddle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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" targ...
...et="_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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfedisplacementmapelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_channel_unknown 0 the type is not one of predefined types.
SVGFEDistantLightElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><
line x...
...1="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-base
line="middle">node</text></a><poly
line 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-base
line="middle"...
...>element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfedistantlightelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
SVGFEDropShadowElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><
line x1="1...
...21" 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">ele...
...ment</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfedropshadowelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
SVGFEFloodElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text...
...></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfefloodelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement, and implements properties from svgfilterprimitivestandardattributes.
SVGFEFuncAElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text...
...></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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"><r...
...ect x="131" y="65" width="350" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="306" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgcomponenttransferfunctionelement</text></a><poly
line points="131,89 121,84 121,94 131,89" stroke="#d4dde4" fill="none"/><
line x1="121" y1="89" x2="91" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svgfefuncaelement" target="_top"><rect x="-79" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfefuncaelement</text></a></svg></div> a:hover text { ...
SVGFEFuncBElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text...
...></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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"><r...
...ect x="131" y="65" width="350" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="306" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgcomponenttransferfunctionelement</text></a><poly
line points="131,89 121,84 121,94 131,89" stroke="#d4dde4" fill="none"/><
line x1="121" y1="89" x2="91" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svgfefuncbelement" target="_top"><rect x="-79" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfefuncbelement</text></a></svg></div> a:hover text { ...
SVGFEFuncGElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text...
...></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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"><r...
...ect x="131" y="65" width="350" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="306" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgcomponenttransferfunctionelement</text></a><poly
line points="131,89 121,84 121,94 131,89" stroke="#d4dde4" fill="none"/><
line x1="121" y1="89" x2="91" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svgfefuncgelement" target="_top"><rect x="-79" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfefuncgelement</text></a></svg></div> a:hover text { ...
SVGFEFuncRElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text...
...></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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"><r...
...ect x="131" y="65" width="350" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="306" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgcomponenttransferfunctionelement</text></a><poly
line points="131,89 121,84 121,94 131,89" stroke="#d4dde4" fill="none"/><
line x1="121" y1="89" x2="91" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svgfefuncrelement" target="_top"><rect x="-79" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfefuncrelement</text></a></svg></div> a:hover text { ...
SVGFEGaussianBlurElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><
line x...
...1="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-base
line="middle">node</text></a><poly
line 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-base
line="middle"...
...>element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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/svgfegaussianblurelement" 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfegaussianblurelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_edgemode_unknown 0 the type is not one of predefined types.
SVGFEImageElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text...
...></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfeimageelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and implements properties of svgfilterprimitivestandardattributes and svgurireference.
SVGFEMergeElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text...
...></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfemergeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
SVGFEMergeNodeElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">eleme...
...nt</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfemergenodeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
SVGFEMorphologyElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><
line x1="1...
...21" 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">ele...
...ment</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfemorphologyelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_morphology_operator_unknown 0 the type is not one of predefined types.
SVGFEOffsetElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</te...
...xt></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfeoffsetelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
SVGFEPointLightElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><
line x1="1...
...21" 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">ele...
...ment</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfepointlightelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
SVGFESpecularLightingElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line=...
..."middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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" t...
...arget="_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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfespecularlightingelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
SVGFESpotLightElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">eleme...
...nt</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfespotlightelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
SVGFETileElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text><...
.../a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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" wi...
...dth="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfetileelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
SVGFETurbulenceElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><
line x1="1...
...21" 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">ele...
...ment</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfeturbulenceelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants turbulence types name value description svg_turbulence_type_unknown 0 the type is not one of predefined types.
SVGFilterElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-a...
...nchor="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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/a...
...pi/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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgfilterelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties svgfilterelement.filterunits read only an svganimatedenumeration that corresponds to the filterunits attribute of the given <filter> element.
SVGForeignObjectElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,2...
...0 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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:hre...
...f="/docs/web/api/svggraphicselement" target="_top"><rect x="301" y="65" width="180" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svggraphicselement</text></a><poly
line points="301,89 291,84 291,94 301,89" stroke="#d4dde4" fill="none"/><
line x1="291" y1="89" x2="261" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svgforeignobjectelement" target="_top"><rect x="31" y="65" width="230" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="146" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgforeignobject...
SVGGElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><
line x1="121" y1="25" x2="151" y...
...2="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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><polyli...
...ne 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-base
line="middle">svgelement</text></a><poly
line 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="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svggraphicselement</text></a><poly
line points="301,89 291,84 291,94 301,89" stroke="#d4dde4" fill="none"/><
line x1="291" y1="89" x2="261" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svggelement" target="_top"><rect x="151" y="65" width="110" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="206" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svggelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties ...
SVGGraphicsElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dd...
...e4" 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-base
line="middle">node</text></a><poly
line 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" ali...
...gnment-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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/svggraphicselem...
...ent" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svggraphicselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} note: this interface was introduced in svg 2 and replaces the svglocatable and svgtransformable interfaces from svg 1.1.
SVGImageElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a...
...><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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" wi...
...dth="180" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svggraphicselement</text></a><poly
line points="301,89 291,84 291,94 301,89" stroke="#d4dde4" fill="none"/><
line x1="291" y1="89" x2="261" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svgimageelement" target="_top"><rect x="111" y="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="186" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgimageelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} ...
SVGMPathElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a...
...><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgmpathelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
SVGMaskElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-ancho...
...r="middle" alignment-base
line="middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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/s...
...vgmaskelement" 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgmaskelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement.
SVGMetadataElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</te...
...xt></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgmetadataelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
SVGPatternElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text...
...></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgpatternelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement and implements the ones from svgfittoviewbox and svgurireference.
SVGRadialGradientElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><
line x...
...1="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-base
line="middle">node</text></a><poly
line 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-base
line="middle"...
...>element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svggradientelement</text></a><poly
line points="301,89 291,84 291,94 301,89" stroke="#d4dde4" fill="none"/><
line x1="291" y1="89" x2="261" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svgradialgradientelement" target="_top"><rect x="21" y="65" width="240" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="141" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgradialgradientelement</text></a></svg></div> a:hover text { fill...
SVGScriptElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</te...
...xt></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgscriptelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties svgscriptelement.type read only a domstring corresponding to the type attribute of the given <script> element.
SVGSetElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><
line x1="121" y1="25" x2="15...
...1" 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><po...
...ly
line 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-base
line="middle">svgelement</text></a><poly
line 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="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="386" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svganimationelement</text></a><poly
line points="291,89 281,84 281,94 291,89" stroke="#d4dde4" fill="none"/><
line x1="281" y1="89" x2="251" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svgsetelement" target="_top"><rect x="121" y="65" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="186" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgsetelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} pr...
SVGStopElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a><...
...poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="1...
...40" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgstopelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
SVGStyleElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="...
...middle">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgstyleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement and implements properties from linkstyle.
SVGSwitchElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text><...
.../a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svggraphicselement</text></a><poly
line points="301,89 291,84 291,94 301,89" stroke="#d4dde4" fill="none"/><
line x1="291" y1="89" x2="261" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svgswitchelement" target="_top"><rect x="101" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="181" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgswitchelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;...
SVGSymbolElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text><...
.../a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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" wi...
...dth="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgsymbolelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement, and implements properties from svgfittoviewbox.
SVGTitleElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">element</text></a...
...><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svgtitleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
SVGUseElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle...
...">element</text></a><poly
line 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-base
line="middle">svgelement</text></a><poly
line 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"><rec...
...t x="301" y="65" width="180" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svggraphicselement</text></a><poly
line points="301,89 291,84 291,94 301,89" stroke="#d4dde4" fill="none"/><
line x1="291" y1="89" x2="261" y2="89" stroke="#d4dde4"/><a xlink:href="/docs/web/api/svguseelement" target="_top"><rect x="131" y="65" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="196" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">svguseelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-e...
Using textures in WebGL - Web APIs
turn off mips and set // wrapping to clamp to edge gl.texparameteri(gl.texture_2d, gl.texture_wrap_s, gl.clamp_to_edge); gl.texparameteri(gl.texture_2d, gl.texture_wrap_t, gl.clamp_to_edge); gl.texparameteri(gl.texture_2d, gl.texture_min_filter, gl.
linear); } }; image.src = url; return texture; } function ispowerof2(value) { return (value & (value - 1)) == 0; } the loadtexture() routine starts by creating a webgl texture object texture by calling the webgl createtexture() function.
... webgl1 can only use non power of 2 textures with filtering set to nearest or
linear and it can not generate a mipmap for them.
... // gl.nearest is also allowed, instead of gl.
linear, as neither mipmap.
... gl.texparameteri(gl.texture_2d, gl.texture_min_filter, gl.
linear); // prevents s-coordinate wrapping (repeating).
Rendering and the WebXR frame animation callback - Web APIs
even if the hardware is actually 120 hz, though, you can get by with just refreshing 60 times per second anyway, and targeting that is usually a good base
line to follow.
...because each eye is offset to one side or the other of the head's center
line, and each eye sees about the same field of view, the result is that each eye sees a slightly different part of the world in front of it, and from a slightly different angle.
...this pseudocode out
lines that process: for each view in the pose's views list: get the webxr gl layer's viewport set the webgl viewport to match for each object in the scene bindprogram() bindvertices() bindmatrices() binduniforms() bindbuffers() bindtextures() drawmyobject() put simply, this form of renderer is using view-first order.
... limiting the frame rate if you need to intentionally cap your frame rate in order to establish a base
line frame rate to try to maintain while allowing more time for other code to run, you can do so by skipping frames intentionally, on a timed basis.
Starting up and shutting down a WebXR session - Web APIs
this can also be used to determine whether to use an immersive or an in
line presentation, for example.
... const immersiveok = await navigator.xr.issessionsupported("immersive-vr"); if (immersiveok) { // create and use an immersive vr session } else { // create an in
line session instead, or tell the user about the // incompatibility if in
line is required } creating and starting the session a webxr session is represented by an xrsession object.
... in
line an on-screen presentation of the xr imagery within the context of the document window.
... an unbounded reference space, you can specify that as a required feature in order to ensure that the session you get can use unbounded spaces: async function createimmersivesession(xr) { try { session = await xr.requestsession("immersive-vr", { requiredfeatures: [ "unbounded" ] }); return session; } catch(error) { throw error; } } on the other hand, if you need anin
line session and would prefer a local reference space, you can do this: async function createin
linesession(xr) { try { session = await xr.requestsession("in
line", { optionalfeatures: [ "local" ] }); return session; } catch(error) { throw error; } } this createin
linesession() function will try to create an in
line session that's compatible with the local reference space.
Using the Web Animations API - Web APIs
here’s the simplified css that controls alice’s animation: #alice { animation: alicetumbling infinite 3s
linear; } @keyframes alicetumbling { 0% { color: #000; transform: rotate(0) translate3d(-50%, -50%, 0); } 30% { color: #431236; } 100% { color: #000; transform: rotate(360deg) translate3d(-50%, -50%, 0); } } this changes alice’s color and her transform’s rotation over 3 seconds at a constant (
linear) rate and loops infinitely.
...we aren’t listing an easing value here because, unlike css animations where the default animation-timing-function is ease, in the web animations api the default easing is
linear — which is what we want here.
...we can divide her duration in half to get the midpoint for her animation’s time
line, setting her to be normal height.
...we can figure out whether she's on the large end or small end of her animation by getting her animation's currenttime and dividing it by her activeduration: var endgame = function() { // get alice's time
line's playhead location var aliceplayhead = alicechange.currenttime; var alicetime
line = alicechange.effect.getcomputedtiming().activeduration; // stops alice's and other animations stopplayingalice(); // depending on which third it falls into var aliceheight = aliceplayhead / alicetime
line; if (aliceheight <= .333){ // alice got smaller!
WheelEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">uievent</text></a><poly
line 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-base
line="middle">mouseevent</text></a><poly
line 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-base
line="middle">wheelevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-event...
... wheelevent.dom_delta_
line 0x01 the delta* values are specified in
lines.
XMLHttpRequest - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.076923076923077%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 650 150" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas...
...,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">xmlhttprequesteventtarget</text></a><poly
line 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="_to...
...p"><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-base
line="middle">xmlhttprequest</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} despite its name, xmlhttprequest can be used to retrieve any type of data, not just xml.
... note: according to the http/2 specification (8.1.2.4 response pseudo-header fields), http/2 does not define a way to carry the version or reason phrase that is included in an http/1.1 status
line.
XRPermissionDescriptor.mode - Web APIs
the mode property of the xrpermissiondescriptor dictionary is a string taken from the xrsessionmode enumerated type, specifying which web xr session mode (in
line, immersive-vr, or immersive-ar) the described permissions will be used for.
... in
line the output is presented in
line within the context of an element in a standard html document, rather than occupying the full visual space.
... in
line sessions can be presented in either mono or stereo mode, and may or may not have viewer tracking available.
... in
line sessions don't require special hardware and should be avalable on any user agent offering webxr api support.
XRSessionMode - Web APIs
in
line the output is presented in
line within the context of an element in a standard html document, rather than occupying the full visual space.
... in
line sessions can be presented in either mono or stereo mode, and may or may not have viewer tracking available.
... in
line sessions don't require special hardware and should be avalable on any user agent offering webxr api support.
...browsers may support either or both of these modes, but if webxr is available, the in
line mode is always supported.
XRSystem: requestSession() - Web APIs
while only one immersive vr session can be active at a time, multiple in
line sessions can be in progress at once.
... in
line the output is presented in
line within the context of an element in a standard html document, rather than occupying the full visual space.
... in
line sessions can be presented in either mono or stereo mode, and may or may not have viewer tracking available.
... in
line sessions don't require special hardware and should be avalable on any user agent offering webxr api support.
ARIA Test Cases - Accessibility
pera safari jaws 9 - - n/a n/a jaws 10 - - - - voiceover (leopard) n/a n/a - fail window-eyes - - - - nvda - n/a - - zoom (leopard) pass n/a pass pass zoomtext - - - - orca - - - - slider single slider slider using in-
line images for thumb dojo nightly build simple slider pretty slider mindtrove rating widget paciello group slider expected at behavior: the user can navigate to the slider control in all modes.
... jaws 9 - - n/a n/a jaws 10 - - - - voiceover (leopard) n/a n/a - fail window-eyes - - - - nvda - n/a - - zoom (leopard) pass n/a pass pass zoomtext - - - - orca - - - - multi-thumb slider multi-thumb slider example using in
line images for thumbs tpg double slider expected at behavior: jaws - on focus jaws announces the role and focus slider position.
... arrow keys should read by character or
line as usual.
...for example, what about reading the
line number if the user requests that info?
Keyboard-navigable JavaScript widgets - Accessibility
ndex="-1">sans-serif</li> <li id="serif" tabindex="-1">serif</li> <li id="monospace" tabindex="-1">monospace</li> <li id="fantasy" tabindex="-1">fantasy</li> </ul> </li> <li id="mb1_menu2" tabindex="-1"> style <ul id="stylemenu" title="style" tabindex="-1"> <li id="italic" tabindex="-1">italics</li> <li id="bold" tabindex="-1">bold</li> <li id="under
line" tabindex="-1">under
lined</li> </ul> </li> <li id="mb1_menu3" tabindex="-1"> justification <ul id="justificationmenu" title="justication" tabindex="-1"> <li id="left" tabindex="-1">left</li> <li id="center" tabindex="-1">centered</li> <li id="right" tabindex="-1">right</li> <li id="justify" tabindex="-1">justify</li> </ul> </li> </ul> disabled controls ...
... general guide
lines use onkeydown to trap key events, not onkeypress ie will not fire keypress events for non-alphanumeric keys.
... always draw the focus for tabindex="-1" items and elements that receive focus programatically ie will not automatically draw the focus out
line for items that programatically receive focus.
...in the dotted border case you will need to make sure those elements have an invisible 1px border to start with, so that the element doesn't grow when the border style is applied (borders take up space, and ie doesn't implement css out
lines).
Robust - Accessibility
this article provides practical advice on how to write your web content so that it conforms to the success criteria out
lined in the robust principle of the web content accessibility guide
lines (wcag) 2.0 and 2.1.
... note: to read the w3c definitions for robust and its guide
lines and success criteria, see principle 4: robust — content must be robust enough that it can be interpreted reliably by a wide variety of user agents, including assistive technologies.
... guide
line 4.1 — compatible: maximize compatibility with current and future user agents, including assistive technologies this guide
line focuses on making content as compatible as possible, not only with current user agents (e.g.
... understanding status messages note: also see the wcag description for guide
line 4.1: compatible: maximize compatibility with current and future user agents, including assistive technologies.
@media - CSS: Cascading Style Sheets
overflow-in
line can content that overflows the viewport along the in
line axis be scrolled?
...<mf-value>where <mf-name> = <ident><mf-value> = <number> | <dimension> | <ident> | <ratio> examples testing for print and screen media types @media print { body { font-size: 10pt; } } @media screen { body { font-size: 13px; } } @media screen, print { body {
line-height: 1.2; } } @media only screen and (min-width: 320px) and (max-width: 480px) and (resolution: 150dpi) { body {
line-height: 1.4; } } introduced in media queries level 4 is a new range syntax that allows for less verbose media queries when testing for any feature accepting a range, as shown in the below examples: @media (height > 600px) { body {
line-height: 1.4; } } @media...
... (400px <= width <= 700px) { body {
line-height: 1.4; } } for more examples, please see using media queries.
... adds scripting, pointer, hover, update, overflow-block, and overflow-in
line media features.
CSS Display - CSS: Cascading Style Sheets
reference css properties display css data types <display-outside> <display-inside> <display-listitem> <display-box> <display-internal> <display-legacy> guides css flow layout (display: block, display: in
line) block and in
line layout in normal flow flow layout and overflow flow layout and writing modes formatting contexts explained in flow and out of flow display: flex basic concepts of flexbox aligning items in a flex container controlling ratios of flex items along the main axis cross-browser flexbox mixins mastering wrapping of flex items ordering flex items relationship of flexbox to other layo...
...ut methods backwards compatibility of flexbox typical use cases of flexbox display: grid basic concepts of grid layout relationship to other layout methods
line-based placement grid template areas layout using named grid
lines auto-placement in grid layout box alignment in grid layout grids, logical values and writing modes css grid layout and accessibility css grid layout and progressive enhancement realizing common layouts using grids specifications specification status comment css display module level 3the definition of 'display' in that specification.
... recommendation added the table model values and in
line-block.
...basic values: none, block, in
line and list-item.
Overview of CSS Shapes - CSS: Cascading Style Sheets
if you then apply a circle shape, the text would then wrap round the
line of the circle.
...the specification defines four <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.
...this will further shorten the
line boxes of any content wrapping the shape, pushing it away from the shape itself.
...instead, you might simply want to cause some text to flow along a non-rectangular invisible
line.
CSS Text Decoration - CSS: Cascading Style Sheets
css text decoration is a module of css that defines features relating to text decoration, such as under
lines, text shadows, and emphasis 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: under
line red; } .over { text-decoration: wavy over
line lime; } .
line { text-decoration:
line-through; } .plain { text-decoration: none; } .underover { text-decoration: dashed under
line over
line; } .thick { text-decoration: solid under
line 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 under
lined</a>, as links generally are by default.
... be careful when removing the text decoration on anchors since users often depend on the under
line to denote hyperlinks.</p> <p class="underover">this text has
lines above <em>and</em> below it.</p> <p class="thick">this text has a really thick purple under
line in supporting browsers.</p> <p class="blink">this text might blink for you, depending on the browser you use.</p> specifications specification status comment css text decoration module level 4 working draft css text decoration module level 3 candidate recommendation css level 2 (revision 1) recommendation css level 1 recommendation initial definition ...
CSS values and units - CSS: Cascading Style Sheets
left | right | none | in
line-start | in
line-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.
... lh
line height of the element.
... rlh
line height of the root element.
... vi 1% of viewport's size in the root element's in
line axis.
List group with badges - CSS: Cascading Style Sheets
requirements our list items should be displayed with the badges
lined up on the right, no matter how much content the item has.
... the badge should always be centered vertically whether there is a single
line of content, or more than one.
... to ensure the text and badge
line up correctly i use the justify-content property with a value of space-between.
...in the live example, if you remove this property and you will see the badge move to the end of the text on items with text shorter than the one
line.
Pseudo-elements - CSS: Cascading Style Sheets
for example, ::first-
line can be used to change the font of the first
line of a paragraph.
... /* the first
line of every <p> element.
... */ p::first-
line { color: blue; text-transform: uppercase; } note: in contrast to pseudo-elements, pseudo-classes can be used to style an element based on its state.
... index of standard pseudo-elements ::after (:after) ::backdrop ::before (:before) ::cue ::cue-region ::first-letter (:first-letter) ::first-
line (:first-
line) ::grammar-error ::marker ::part() ::placeholder ::selection ::slotted() ::spelling-error browser lowest version support of internet explorer 8.0 :pseudo-element 9.0 :pseudo-element ::pseudo-element firefox (gecko) 1.0 (1.0) :pseudo-element 1.0 (1.5) :pseudo-element ::pseudo-element oper...
Using CSS custom properties (variables) - CSS: Cascading Style Sheets
ecifying your custom property name inside the var() function, in place of a regular property value: element { background-color: var(--main-bg-color); } first steps with custom properties let's start with this simple css that applies the same color to elements of different classes: .one { color: white; background-color: brown; margin: 10px; width: 50px; height: 50px; display: in
line-block; } .two { color: white; background-color: black; margin: 10px; width: 150px; height: 70px; display: in
line-block; } .three { color: white; background-color: brown; margin: 10px; width: 75px; } .four { color: white; background-color: brown; margin: 10px; width: 100px; } .five { background-color: brown; } we'll apply it to this html: <div> <div class="one"...
...by declaring a custom property on the :root pseudo-class and using it where needed throughout the document, a css author can reduce the need for repetition: :root { --main-bg-color: brown; } .one { color: white; background-color: var(--main-bg-color); margin: 10px; width: 50px; height: 50px; display: in
line-block; } .two { color: white; background-color: black; margin: 10px; width: 150px; height: 70px; display: in
line-block; } .three { color: white; background-color: var(--main-bg-color); margin: 10px; width: 75px; } .four { color: white; background-color: var(--main-bg-color); margin: 10px; width: 100px; } .five { background-color: var(--main-bg-color); } <div> ...
... note: while a syntax error in a css property / value pair will lead to the
line being ignored, using a cascaded value, invalid substitution -- using a custom property value that is invalid -- is not ignored, leading to the value to be inherited.
... // get variable from in
line style element.style.getpropertyvalue("--my-var"); // get variable from wherever getcomputedstyle(element).getpropertyvalue("--my-var"); // set variable on in
line style element.style.setproperty("--my-var", jsvar + 4); ...
conic-gradient() - CSS: Cascading Style Sheets
composition of a conic gradient the conic-gradient syntax is similar to the radial-gradient syntax, but the color-stops are placed around a gradient arc, the circumference of a circle, rather than on the gradient
line emerging from the center of the gradient.
...unlike
linear and radial gradients, whose color-stops are placed by specifying a length, the color-stops of a conic gradient are specified with an angle.
... conic-gradient(red 40grad, 80grad, blue 360grad); if two or more color stops are at the same location, the transition will be a hard
line between the first and last colors declared at that location.
... mdn understanding wcag, guide
line 1.1 explanations understanding success criterion 1.1.1 | w3c understanding wcag 2.0 examples gradient at 40-degrees div { width: 100px; height: 100px; } <div></div> div { background-image: conic-gradient(from 40deg, #fff, #000); } off-centered gradient div { width: 100px; height: 100px; } <div></div> div { background: conic-gradient(from 0deg at 0% 25%, blue, ...
<display-inside> - CSS: Cascading Style Sheets
syntax valid <display-inside> values: flow the element lays out its contents using flow layout (block-and-in
line layout).
... if its outer display type is in
line or run-in, and it is participating in a block or in
line formatting context, then it generates an in
line box.
... depending on the value of other properties (such as position, float, or overflow) and whether it is itself participating in a block or in
line formatting context, it either establishes a new block formatting context (bfc) for its contents or integrates its contents into its parent formatting context.
... ruby the element behaves like an in
line element and lays out its content according to the ruby formatting model.
<easing-function> - CSS: Cascading Style Sheets
syntax there are three types of easing function:
linear, cubic bézier curves, and staircase functions.
... easing functions css supports three kinds of easing functions:
linear, the subset of the cubic bézier curves that are functions, and staircase functions.
... the
linear class of easing functions
linear the animation moves from beginning to end at a constant rate.
... html <div> <div></div> </div> <ul> <li> <button class="animation-button">start animation</button> </li> <li> <label for="easing-select">choose an easing function:</label> <select id="easing-select"> <option selected>
linear</option> <option>ease</option> <option>ease-in</option> <option>ease-in-out</option> <option>ease-out</option> <option>cubic-bezier(0.1, -0.6, 0.2, 0)</option> <option>cubic-bezier(0, 1.1, 0.8, 4)</option> <option>steps(5, end)</option> <option>steps(3, start)</option> <option>steps(4)</option> </select> </li> </ul> css body > div { ...
flex-wrap - CSS: Cascading Style Sheets
the flex-wrap css property sets whether flex items are forced onto one
line or can wrap onto multiple
lines.
... if wrapping is allowed, it sets the direction that
lines are stacked.
... values the following values are accepted: nowrap the flex items are laid out in a single
line which may cause the flex container to overflow.
... wrap the flex items break into multiple
lines.
font-variant-position - CSS: Cascading Style Sheets
the glyphs are positioned relative to the base
line of the font, which remains unchanged.
... these alternate glyphs share the same em-box and the same base
line as the rest of the font.
... they are merely graphically enhanced, and have no effect on the
line-height and other box characteristics.
...it also applies to ::first-letter and ::first-
line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | sub | super examples setting superscript and subscript forms html <p class="normal">normal!</p> <p class="super">super!</p> <p class="sub">sub!</p> css p { display: in
line; } .normal { font-variant-position: normal; } .super { font-variant-position: super; } .sub { font-variant-position: sub; }...
font-weight - CSS: Cascading Style Sheets
400 100 400 700 100 500 700 100 600 900 400 700 900 400 800 900 700 900 900 700 common weight name mapping the numerical values 100 to 900 roughly correspond to the following common weight names (see the opentype specification): value common weight name 100 thin (hair
line) 200 extra light (ultra light) 300 light 400 normal (regular) 500 medium 600 semi bold (demi bold) 700 bold 800 extra bold (ultra bold) 900 black (heavy) 950 extra black (ultra black) variable fonts most fonts have a particular weight which corresponds to one of the numbers in commo...
... let sampletext = document.queryselector('.sample'); function update() { weightlabel.textcontent = `font-weight: ${weightinput.value};`; sampletext.style.fontweight = weightinput.value; } weightinput.addeventlistener('input', update); update(); accessibility concerns people experiencing low vision conditions may have difficulty reading text set with a font-weight value of 100 (thin/hair
line) or 200 (extra light), especially if the font has a low contrast color ratio.
... mdn understanding wcag, guide
line 1.4 explanations understanding success criterion 1.4.8 | w3c understanding wcag 2.0 formal definition initial valuenormalapplies toall elements.
... it also applies to ::first-letter and ::first-
line.inheritedyescomputed valuethe keyword or the numerical value as specified, with bolder and lighter transformed to the real valueanimation typea font weight formal syntax <font-weight-absolute> | bolder | lighterwhere <font-weight-absolute> = normal | bold | <number <a href="/docs/css/value_definition_syntax#brackets" title="brackets: enclose several entities, combinators, and multipliers to transform them as a single component">[1,1000]> examples setting font weights html <p> alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do: once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, "and what is the use of a book," thoug...
margin-bottom - CSS: Cascading Style Sheets
this property has no effect on non-replaced in
line elements, such as <span> or <code>.
... formal definition initial value0applies toall elements, except elements with table display types other than table-caption, table and in
line-table.
... it also applies to ::first-letter and ::first-
line.inheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length formal syntax <length> | <percentage> | auto examples setting positive and negative bottom margins html <div class="container"> <div class="box0">box 0</div> <div class="box1">box 1</div> <div class="box2">box one's negative margin pulls me up</div> </div> css css for divs to set margin-bottom and height .box0 { margin-bottom:1em; height:3em; } .box1 { margin-bottom:-1.5em; height:4em; } .box2 { border:1px dashed black; border-width:1px 0; margin-bottom:2em; } some definitions for container and divs so margins' effects can be seen more clearly .container...
... recommendation removes its effect on in
line elements.
margin-top - CSS: Cascading Style Sheets
this property has no effect on non-replaced in
line elements, such as <span> or <code>.
... formal definition initial value0applies toall elements, except elements with table display types other than table-caption, table and in
line-table.
... it also applies to ::first-letter and ::first-
line.inheritednopercentagesrefer to the width of the containing blockcomputed valuethe percentage as specified or the absolute lengthanimation typea length formal syntax <length> | <percentage> | auto examples setting positive and negative top margins .content { margin-top: 5%; } .sidebox { margin-top: 10px; } .logo { margin-top: -5px; } #footer { margin-top: 1em; } specifications specification status comment css basic box modelthe definition of 'margin-top' in that specification.
... recommendation removes its effect on in
line elements.
margin - CSS: Cascading Style Sheets
the top and bottom margins have no effect on non-replaced in
line elements, such as <span> or <code>.
... recommendation removes the effect of top and bottom margins on in
line elements.
... initial valueas each of the properties of the shorthand:margin-bottom: 0margin-left: 0margin-right: 0margin-top: 0applies toall elements, except elements with table display types other than table-caption, table and in
line-table.
... it also applies to ::first-letter and ::first-
line.inheritednopercentagesrefer to the width of the containing blockcomputed valueas each of the properties of the shorthand:margin-bottom: the percentage as specified or the absolute lengthmargin-left: the percentage as specified or the absolute lengthmargin-right: the percentage as specified or the absolute lengthmargin-top: the percentage as specified or the absolute lengthanimation typea length ...
orphans - CSS: Cascading Style Sheets
the orphans css property sets the minimum number of
lines in a block container that must be shown at the bottom of a page, region, or column.
... /* <integer> values */ orphans: 2; orphans: 3; /* global values */ orphans: inherit; orphans: initial; orphans: unset; in typography, an orphan is the first
line of a paragraph that appears alone at the bottom of a page.
... (the paragraph continues on a following page.) syntax values <integer> the minimum number of
lines that can stay by themselves at the bottom of a fragment before a fragmentation break.
... formal definition initial value2applies toblock container elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax <integer> examples setting a minimum orphan size of three
lines html <div> <p>this is the first paragraph containing some text.</p> <p>this is the second paragraph containing some more text than the first one.
repeating-conic-gradient() - CSS: Cascading Style Sheets
syntax /* starburst: a a blue on blue starburst: the gradient is a starburst of lighter and darker blue, centered in the upper left quandrant, offset by 3degrees so there is no up/down straight
line */ background: repeating-conic-gradient( from 3deg at 25% 25%, hsl(200, 100%, 50%) 0deg 15deg, hsl(200, 100%, 60%) 10deg 30deg); ); values <angle> preceded by the from keyterm, and taking an angle as its value, defines the gradient rotation in clockwise direction.
... like the non-repeating conic gradient, the color-stops are placed around a gradient arc -- the circumference of a circle, rather than on the gradient
line emerging from the center of the gradient.
... if two or more color stops are at the same location, the transition will be a hard
line between the first and last colors declared at that location.
... mdn understanding wcag, guide
line 1.1 explanations understanding success criterion 1.1.1 | w3c understanding wcag 2.0 examples black and white starburst div { width: 200px; height: 200px; } <div></div> div { background-image: repeating-conic-gradient(#fff 0 9deg, #000 9deg 18deg); } off-centered gradient this gradient repeats 18 times, but since we only see the right half, we only see 9 repeats.
repeating-radial-gradient() - CSS: Cascading Style Sheets
it is similar to radial-gradient() and takes the same arguments, but it repeats the color stops infinitely in all directions so as to cover its entire container, similar to repeating-
linear-gradient() .
...percentage values in between are
linearly positioned on the virtual gradient ray.
... at <position> , <color-stop-list> ) \---------------------------------------------------------------/\-----------------/ contour, size and position of the ending shape list of color stops where <extent-keyword> = closest-corner | closest-side | farthest-corner | farthest-side and <color-stop-list> = [ <
linear-color-stop> [, <color-hint>?
...]#, <
linear-color-stop> and <
linear-color-stop> = <color> [ <color-stop-length> ]?
resize - CSS: Cascading Style Sheets
syntax /* keyword values */ resize: none; resize: both; resize: horizontal; resize: vertical; resize: block; resize: in
line; /* global values */ resize: inherit; resize: initial; resize: unset; the resize property is specified as a single keyword value from the list below.
... in
line the element displays a mechanism for allowing the user to resize it in the in
line direction (either horizontally or vertically, depending on the writing-mode and direction value).
... resize does not apply to the following: in
line 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 | in
line examples disabling resizability of textareas in many browsers, <textarea> elements are resizable by default.
... editor's draft adds the values block and in
line.
<string> - CSS: Cascading Style Sheets
to output new
lines, you must escape them with a
line feed character such as \a or \00000a.
... in your code, however, strings can span multiple
lines, in which case each new
line must be escaped with a \ as the last character of the
line.
... however, to get new
lines, you must also set the white-space property to appropriate value.
...imple strings */ "this string is demarcated by double quotes." 'this string is demarcated by single quotes.' /* character escaping */ "this is a string with \" an escaped double quote." "this string also has \22 an escaped double quote." 'this is a string with \' an escaped single quote.' 'this string also has \27 an escaped single quote.' "this is a string with \\ an escaped backslash." /* new
line in a string */ "this string has a \a
line break in it." /* string spanning two
lines of code (these two strings will have identical output) */ "a really long \ awesome string" "a really long awesome string" specifications specification status comment css values and units module level 3the definition of '<string>' in that specification.
word-break - CSS: Cascading Style Sheets
the word-break css property sets whether
line breaks appear wherever the text would otherwise overflow its content box.
... values normal use the default
line break rule.
... note: in contrast to word-break: break-word and overflow-wrap: break-word (see overflow-wrap), word-break: break-all will create a break at the exact place where text would otherwise overflow its container (even if putting an entire word on its own
line would negate the need for a break).
...akword narrow">this is a long and honorificabilitudinitatibus califragilisticexpialidocious taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu グレートブリテンおよび北アイルランド連合王国という言葉は本当に長い言葉</p> css .narrow { padding: 10px; border: 1px solid; width: 500px; margin: 0 auto; font-size: 20px;
line-height: 1.5; letter-spacing: 1px; } .normal { word-break: normal; } .breakall { word-break: break-all; } .keepall { word-break: keep-all; } .breakword { word-break: break-word; } specifications specification status comment css text module level 3the definition of 'word-break' in that specification.
HTML5 Parser - Developer guides
the new parser introduces these major improvements: you can now use svg and mathml in
line in html5 pages, without xml namespace syntax.
... in an in
line script, in order to use the literal strings <script, </script>, and <!--, you should prevent them from being parsed literally by expressing them as \u003cscript,\u003c/script>, and \u003c!--.
...are not valid javascript escapes; the character code strategy is more general-purpose.) in
line svg and mathml support as a completely new parsing feature, html5 introduced support for in
line svg and mathml in text/html.
... this means that you can now use svg and mathml in
line in text/html similarly to what has previously been possible in application/xhtml+xml.
<a>: The Anchor element - HTML: Hypertext Markup Language
(if content-disposition: in
line, firefox prefers the header while chrome prefers download.) href the url that the hyperlink points to.
... <a href="" download="my_painting.png">download my painting</a> </p> <canvas width="300" height="300"></canvas> css html { font-family: sans-serif; } canvas { background: #fff; border: 1px dashed; } a { display: in
line-block; background: #69c; color: #fff; padding: 5px 10px; } javascript var canvas = document.queryselector('canvas'), c = canvas.getcontext('2d'); c.fillstyle = 'hotpink'; function draw(x, y) { if (isdrawing) { c.beginpath(); c.arc(x, y, 10, 0, math.pi*2); c.closepath(); c.fill(); } } canvas.addeventlistener('mousemove', event => draw(event.offsetx, event.offset...
...oint) </a> if an icon is used to signify link behavior, make sure it has alt text: <a target="_blank" href="https://www.wikipedia.org"> wikipedia <img alt="(opens in new tab)" src="newtab.svg"> </a> <a href="2017-annual-report.ppt"> 2017 annual report <img alt="(powerpoint file)" src="ppt-icon.svg"> </a> webaim: links and hypertext - hypertext links mdn / understanding wcag, guide
line 3.2 g200: opening new windows and tabs from a link only when necessary g201: giving users advanced warning when opening a new window skip links a skip link is a link placed as early as possible in <body> content that points to the beginning of the page's main content.
... webaim: "skip navigation" links how-to: use skip navigation links mdn / understanding wcag, guide
line 2.4 explanations understanding success criterion 2.4.1 size and proximity size interactive elements, like links, should provide an area large enough that it is easy to activate them.
<input type="image"> - HTML: Hypertext Markup Language
in addition to the actual names of tabs, windows, or in
line 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 is a name of, or keyword for, a browsing context (for example, tab, window, or in
line frame).
... <label for="pwd">password</label> <input type="password" id="pwd" name="pwd"> </div> <div> <input id="image" type="image" src="/static/external/62/62ac2ecddbec0e0b540098c28451e57203e5cab46dfed7ab0115d5a659fcfb7b.png" alt="login" width="100"> </div> </form> css and now some simple css to make the basic elements sit more neatly: div { margin-bottom: 10px; } label { display: in
line-block; width: 70px; text-align: right; padding-right: 10px; } adjusting the image position and scaling in this example, we adapt the previous example to set aside more space for the image and then adjust the actual image's size and positioning using object-fit and object-position.
..."userid" name="userid"> </div> <div> <label for="pwd">password</label> <input type="password" id="pwd" name="pwd"> </div> <div> <input id="image" type="image" src="/static/external/62/62ac2ecddbec0e0b540098c28451e57203e5cab46dfed7ab0115d5a659fcfb7b.png" alt="login" width="200" height="100"> </div> </form> css div { margin-bottom: 10px; } label { display: in
line-block; width: 70px; text-align: right; padding-right: 10px; } #image { object-position: right top; object-fit: contain; background-color: #ddd; } here, object-position is configured to draw the image at the top-right corner of the element, while object-fit is set to contain, which indicates that the image should be drawn at the largest size that will fit within the element's box wi...
<input type="password"> - HTML: Hypertext Markup Language
the element is presented as a one-
line plain text editor control in which the text is obscured so that it cannot be read, usually by replacing each character with a symbol such as the asterisk ("*") or a dot ("•").
... note: the
line feed (u+000a) and carriage return (u+000d) characters are not permitted in a password value.
... when setting the value of a password control,
line feed and carriage return characters are stripped out of the value.
...the text must not include carriage returns or
line feeds.
<input type="text"> - HTML: Hypertext Markup Language
<input> elements of type text create basic single-
line text fields.
...the text must not include carriage returns or
line feeds.
... using text inputs <input> elements of type text create basic, single-
line inputs.
... you should use them anywhere you want the user to enter a single-
line value and there isn't a more specific input type available for collecting that value (for example, if it's a date, url, email, or search term, you've got better options available).
<script>: The Script element - HTML: Hypertext Markup Language
for in
line scripts), in this case it would have no effect.
... integrity this attribute contains in
line metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation.
... notes scripts without async , defer or type="module" attributes, as well as in
line scripts, are fetched and executed immediately, before the browser continues to parse the page.
... <script src="javascript.js"></script> and the following examples show how to put (an in
line) script inside the <script> element.
<select>: The HTML Select element - HTML: Hypertext Markup Language
when multiple is specified, most browsers will show a scrolling list box instead of a single
line dropdown.
...the "focused" select option is highlighted with a dotted out
line, in the same way as a keyboard-focused link.
... however, these properties don't produce a consistent result across browsers, and it is hard to do things like
line different types of form element up with one another in a column.
... the size attribute causes only 4
lines to display at a time; you can scroll to view all the options.
<sup>: The Superscript element - HTML: Hypertext Markup Language
the html superscript element (<sup>) specifies in
line text which is to be displayed as superscript for solely typographical reasons.
... superscripts are usually rendered with a raised base
line using smaller text.
... for example, to style the wordmark of a business or product which uses a raised base
line should be done using css (most likely vertical-align) rather than <sup>.
... this would be done using, for example, vertical-align: super or, to shift the base
line up 50%, vertical-align: 50%.
Data URLs - HTTP
data urls, urls prefixed with the data: scheme, allow content creators to embed small files in
line in documents.
...also, for csv data (mime type "text/csv"), percent-encoding is needed to preserve the
line endings that delimit rows of the spreadsheet.
... encoding on a unix system base64 encoding of a file or string on linux and mac os x systems can be achieved using the command-
line base64 (or, as an alternative, the uuencode utility with -m argument).
...as a url, the data should be formatable with whitespace (
linefeed, tab, or spaces), but there are practical issues that arise when using base64 encoding.
Evolution of HTTP - HTTP
the http protocol used in those early phases was very simple, later dubbed http/0.9, and sometimes as the one-
line protocol.
... http/0.9 – the one-
line protocol the initial version of http had no version number; it has been later called 0.9 to differentiate it from the later versions.
... http/0.9 is extremely simple: requests consist of a single
line and start with the only possible method get followed by the path to the resource (not the url as both the protocol, server, and port are unnecessary once connected to the server).
... http/1.0 – building extensibility http/0.9 was very limited and both browsers and servers quickly extended it to be more versatile: versioning information is now sent within each request (http/1.0 is appended to the get
line) a status code
line is also sent at the beginning of the response, allowing the browser itself to understand the success or failure of the request and to adapt its behavior in consequence (like in updating or using its local cache in a specific way) the notion of http headers has been introduced, both for the requests and the responses, allowing metadata to be transmitted and making the protoco...
Content-Security-Policy - HTTP
script-src-attr specifies valid sources for javascript in
line event handlers.
... style-src-attr specifies valid sources for in
line styles applied to individual dom elements.
... content-security-policy: default-src 'self' http://example.com; connect-src 'none'; content-security-policy: connect-src http://example.com/; script-src http://example.com/ examples example: disable unsafe in
line/eval, only allow loading of resources (images, fonts, scripts, etc.) over https: // header content-security-policy: default-src https: // meta tag <meta http-equiv="content-security-policy" content="default-src https:"> example: pre-existing site that uses too much in
line code to fix but wants to ensure resources are loaded only over https and to disable plugins: content-security-policy: def...
...ault-src https: 'unsafe-eval' 'unsafe-in
line'; object-src 'none' example: do not implement the above policy yet; instead just report violations that would have occurred: content-security-policy-report-only: default-src https:; report-uri /csp-violation-report-endpoint/ see mozilla web security guide
lines for more examples.
HTTP Public Key Pinning (HPKP) - HTTP
apache adding a
line similar to the following to your webserver's config will enable hpkp on your apache.
... header always set public-key-pins "pin-sha256=\"base64+primary==\"; pin-sha256=\"base64+backup==\"; max-age=5184000; includesubdomains" nginx adding the following
line and inserting the appropriate pin-sha256="..." values will enable hpkp on your nginx.
... add_header public-key-pins 'pin-sha256="base64+primary=="; pin-sha256="base64+backup=="; max-age=5184000; includesubdomains' always; lighttpd the following
line with your relevant key information (pin-sha256="..." fields) will enable hpkp on lighttpd.
... server.modules += ( "mod_setenv" ) iis add the following
line to the web.config file to send the public-key-pins header: <system.webserver> ...
A re-introduction to JavaScript (JS tutorial) - JavaScript
} var input; do { input = get_input(); } while (inputisnotvalid(input)); javascript's for loop is the same as that in c and java: it lets you provide the control information for your loop on a single
line.
... the named parameters turn out to be more like guide
lines than anything else.
...javascript lets you modify something's prototype at any time in your program, which means you can add extra methods to existing objects at runtime: var s = new person('simon', 'willison'); s.firstnamecaps(); // typeerror on
line 1: s.firstnamecaps is not a function person.prototype.firstnamecaps = function() { return this.first.touppercase(); }; s.firstnamecaps(); // "simon" interestingly, you can also add things to the prototype of built-in javascript objects.
... let's add a method to string that returns that string in reverse: var s = 'simon'; s.reversed(); // typeerror on
line 1: s.reversed is not a function string.prototype.reversed = function() { var r = ''; for (var i = this.length - 1; i >= 0; i--) { r += this[i]; } return r; }; s.reversed(); // nomis our new method even works on string literals!
Text formatting - JavaScript
multi-
line template literals template literals are string literals allowing embedded expressions.
... you can use multi-
line strings and string interpolation features with them.
... multi-
lines any new
line characters inserted in the source are part of the template literal.
... using normal strings, you would have to use the following syntax in order to get multi-
line strings: console.log('string text
line 1\n\ string text
line 2'); // "string text
line 1 // string text
line 2" to get the same effect with multi-
line strings, you can now write: console.log(`string text
line 1 string text
line 2`); // "string text
line 1 // string text
line 2" embedded expressions in order to embed expressions within normal strings, you would use the following syntax: const five = 5; const ten = 10; console.log('fifteen is ' + (five + ten) + ' and not ' + (2 * five + ten) + '.'); // "fifteen is 15 and not 20." now, with template literals, you are able to make use of the syntactic sugar making substitutions like this more readable: const five = 5; const ten = 10; console.log(`f...
EvalError() constructor - JavaScript
syntax new evalerror([message[, filename[,
linenumber]]]) parameters message optional.
...the name of the file containing the code that caused the exception
linenumber optional.
... the
line number of the code that caused the exception examples evalerror is not used in the current ecmascript specification and will thus not be thrown by the runtime.
... creating an evalerror try { throw new evalerror('hello', 'somefile.js', 10); } catch (e) { console.log(e instanceof evalerror); // true console.log(e.message); // "hello" console.log(e.name); // "evalerror" console.log(e.filename); // "somefile.js" console.log(e.
linenumber); // 10 console.log(e.columnnumber); // 0 console.log(e.stack); // "@scratchpad/2:2:9\n" } specifications specification ecmascript (ecma-262)the definition of 'nativeerror constructor' in that specification.
ReferenceError - JavaScript
referenceerror.prototype.
linenumber
line number in file that raised this error.
... referenceerror.prototype.columnnumber column number in
line that raised this error.
... examples catching a referenceerror try { let a = undefinedvariable } catch (e) { console.log(e instanceof referenceerror) // true console.log(e.message) // "undefinedvariable is not defined" console.log(e.name) // "referenceerror" console.log(e.filename) // "scratchpad/1" console.log(e.
linenumber) // 2 console.log(e.columnnumber) // 6 console.log(e.stack) // "@scratchpad/2:2:7\n" } creating a referenceerror try { throw new referenceerror('hello', 'somefile.js', 10) } catch (e) { console.log(e instanceof referenceerror) // true console.log(e.message) // "hello" console.log(e.name) ...
... // "referenceerror" console.log(e.filename) // "somefile.js" console.log(e.
linenumber) // 10 console.log(e.columnnumber) // 0 console.log(e.stack) // "@scratchpad/2:2:9\n" } specifications specification ecmascript (ecma-262)the definition of 'referenceerror' in that specification.
TypeError() constructor - JavaScript
syntax new typeerror([message[, filename[,
linenumber]]]) parameters message optional optional.
...the name of the file containing the code that caused the exception
linenumber optional optional.
... the
line number of the code that caused the exception examples catching a typeerror try { null.f() } catch (e) { console.log(e instanceof typeerror) // true console.log(e.message) // "null has no properties" console.log(e.name) // "typeerror" console.log(e.filename) // "scratchpad/1" console.log(e.
linenumber) // 2 console.log(e.columnnumber) // 2 console.log(e.stack) // "@scratchpad/2:2:3\n" } creating a typeerror try { throw new typeerror('hello', "somefile.js", 10) } catch (e) { console.log(e instanceof typeerror) // true console.log(e.message) // "hello" console.log(e.name) // "typeerror" console.log(e.filename) // "somefile.js" co...
...nsole.log(e.
linenumber) // 10 console.log(e.columnnumber) // 0 console.log(e.stack) // "@scratchpad/2:2:9\n" } specifications specification ecmascript (ecma-262)the definition of 'nativeerror constructor' in that specification.
TypeError - JavaScript
typeerror.prototype.
linenumber
line number in file that raised this error.
... typeerror.prototype.columnnumber column number in
line that raised this error.
... examples catching a typeerror try { null.f() } catch (e) { console.log(e instanceof typeerror) // true console.log(e.message) // "null has no properties" console.log(e.name) // "typeerror" console.log(e.filename) // "scratchpad/1" console.log(e.
linenumber) // 2 console.log(e.columnnumber) // 2 console.log(e.stack) // "@scratchpad/2:2:3\n" } creating a typeerror try { throw new typeerror('hello', "somefile.js", 10) } catch (e) { console.log(e instanceof typeerror) // true console.log(e.message) // "hello" console.log(e.name) // "typeerror" console.log(e.filename) ...
... // "somefile.js" console.log(e.
linenumber) // 10 console.log(e.columnnumber) // 0 console.log(e.stack) // "@scratchpad/2:2:9\n" } specifications specification ecmascript (ecma-262)the definition of 'typeerror' in that specification.
URIError() constructor - JavaScript
syntax new urierror([message[, filename[,
linenumber]]]) parameters message optional optional.
...
linenumber optional optional.
... the
line number of the code that caused the exception.
... examples catching an urierror try { decodeuricomponent('%') } catch (e) { console.log(e instanceof urierror) // true console.log(e.message) // "malformed uri sequence" console.log(e.name) // "urierror" console.log(e.filename) // "scratchpad/1" console.log(e.
linenumber) // 2 console.log(e.columnnumber) // 2 console.log(e.stack) // "@scratchpad/2:2:3\n" } creating an urierror try { throw new urierror('hello', 'somefile.js', 10) } catch (e) { console.log(e instanceof urierror) // true console.log(e.message) // "hello" console.log(e.name) // "urierror" console.log(e.filename) // "somefile.js" console.log(e.
linenumber) // 10 console.log...
URIError - JavaScript
urierror.prototype.
linenumber
line number in file that raised this error.
... urierror.prototype.columnnumber column number in
line that raised this error.
... examples catching an urierror try { decodeuricomponent('%') } catch (e) { console.log(e instanceof urierror) // true console.log(e.message) // "malformed uri sequence" console.log(e.name) // "urierror" console.log(e.filename) // "scratchpad/1" console.log(e.
linenumber) // 2 console.log(e.columnnumber) // 2 console.log(e.stack) // "@scratchpad/2:2:3\n" } creating an urierror try { throw new urierror('hello', 'somefile.js', 10) } catch (e) { console.log(e instanceof urierror) // true console.log(e.message) // "hello" console.log(e.name) // "urierror" console.log(e.filename) ...
... // "somefile.js" console.log(e.
linenumber) // 10 console.log(e.columnnumber) // 0 console.log(e.stack) // "@scratchpad/2:2:9\n" } specifications specification ecmascript (ecma-262)the definition of 'urierror' in that specification.
<math> - MathML
it can have one of the following values: block, which means that this element will be displayed outside the current span of text, as a block that can be positioned anywhere without changing the meaning of the text; in
line, which means that this element will be displayed inside the current span of text, and cannot be moved out of it without changing the meaning of that text.
... if not present, its default value is in
line.
... possible values are: display (which has the same effect as display="block") and in
line.
... possible values are:
linebreak (default), scroll, elide, truncate, scale.
Performance budgets - Web Performance
a default base
line to reduce bounce rate is to achieve time to interactive under 5 seconds in 3g/4g, and under 2 seconds for subsequent loads.
... bundlesize, allows you to define and run file size checks in your ci pipe
line.
... file size checks are the first
line of defense against regressions but translating size back into time metrics can be difficult since development environments could be missing 3rd party scripts, and optimizations commonly provided by a cdn.
... the first step is to define a development base
line for each branch to compare to and the precision of the difference between development and production can be used as a goal towards better match the live environment.
Mobile first - Progressive web apps (PWAs)
first things first — mobile as a default you may think that concentrating on the mobile experience first sounds pointless, as we are more used to dealing with desktop sites, and we surely need to consider the full gamut of features for the overall experience across desktop, mobile, etc., before then paring it down to a mobile experience that is simpler, more stream
lined, or whatever.
...i installed the volo automation tool by running the following on the command
line sudo npm install -g volo (you'll also need to get node.js too if you don't already have it) i then created my sample project using volo create myapp mozilla/mortar-app-stub this creates a sample project inside a directory called myapp.
...to create something more suitable for desktop, i put in the following media queries: @media (min-width: 480px) { #bottom, #top { display: none; } article, nav { display: block; } nav ul { text-align: center; } nav li { display: in
line; } nav li a { border-right: 1px solid #ad66d5; border-bottom: none; display: in
line-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-o...
...s.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 first one cancels out the css display: table behaviour, hides the links to jump to and from the navigation, as they are not needed anymore in the wider layout, and changes the vertical menu to a horizontal menu that makes better use of the horizontal space available.
The building blocks of responsive design - Progressive web apps (PWAs)
we've also altered the width of the images inside the third container (no longer a column — this is the gallery) so that now you get five per
line (it was previously three per
line).
... x-card:nth-child(3) img { width: 50%; } this rule simply changes the width of the gallery images so now there are two per
line.
...all buttons in the app have been set to have a
line-height of 2.5, in the default css at the top of the stylesheet (check if you don't believe me.) and 6.8 x 2.5 = 17.
... last, we have used flex: 1; to make the buttons always take up the same proportion of space on the
line.
Structural overview of progressive web apps - Progressive web apps (PWAs)
the most popular approach is the app shell concept, which mixes ssr and csr in exactly the way described above, and in addition follows the "off
line first" methodology which we will explain in detail in upcoming articles and use in our example application.
... the app shell concept the app shell concept is concerned with loading a minimal user interface and content as soon as possible, caching it so it's available off
line for subsequent visits before then loading the remainder of the app's contents.
...it also allows the website to be accessible off
line if the network connection is not available.
...for example, an off
line mode with the help of service workers is just an extra trait that makes the website experience better, but it's still perfectly usable without it.
color-interpolation-filters - SVG: Scalable Vector Graphics
color-interpolation-filters has an initial value of
linearrgb, whereas color-interpolation has an initial value of srgb.
... thus, in the default case, filter effects operations occur in the
linearrgb color space, whereas all other color interpolations occur by default in the srgb color space.
...lement but it only has an effect on the following eighteen elements: <fespotlight>, <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <feflood>, <fegaussianblur>, <feimage>, <femerge>, <femorphology>, <feoffset>, <fespecularlighting>, <fetile>, <feturbulence> usage notes value auto | srgb |
linearrgb default value
linearrgb animatable yes auto indicates that the user agent can choose either the srgb or
linearrgb spaces for color interpolation.
...
linearrgb indicates that color interpolation should occur in the
linearized rgb color space as described in the srgb specification.
color-interpolation - SVG: Scalable Vector Graphics
the color-interpolation property chooses between color operations occurring in the srgb color space or in a (light energy
linear)
linearized rgb color space.
... having chosen the appropriate color space, component-wise
linear interpolation is used.
... as a presentation attribute, it can be applied to any element but it only has an effect on the following 29 elements: <a>, <animate>, <animatecolor>, <circle>, <clippath>, <defs>, <ellipse>, <foreignobject>, <g>, <glyph>, <image>, <
line>, <
lineargradient>, <marker>, <mask>, <missing-glyph>, <path>, <pattern>, <polygon>, <poly
line>, <radialgradient>, <rect>, <svg>, <switch>, <symbol>, <text>, <textpath>, <tspan>, and <use> usage notes value auto | srgb |
linearrgb default value srgb animatable yes auto indicates that the user agent can choose either the srgb or
linearrgb spaces for ...
...
linearrgb indicates that color interpolation should occur in the
linearized rgb color space as described in the srgb specification.
gradientTransform - SVG: Scalable Vector Graphics
two elements are using this attribute: <
lineargradient> and <radialgradient> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <radialgradient id="gradient1" gradientunits="userspaceonuse" cx="100" cy="100" r="100" fx="100" fy="100"> <stop offset="0%" stop-color="darkblue" /> <stop offset="50%" stop-color="skyblue" /> <stop offset="100%" stop-color="darkblue" /> </r...
... scalable vector graphics (svg) 2the definition of 'gradienttransformation for <
lineargradient>' in that specification.
... candidate recommendation no change scalable vector graphics (svg) 1.1 (second edition)the definition of 'gradienttransformation for <
lineargradient>' in that specification.
... recommendation initial definition for <
lineargradient> scalable vector graphics (svg) 1.1 (second edition)the definition of 'gradienttransformation for <radialgradient>' in that specification.
requiredFeatures - SVG: Scalable Vector Graphics
twentynine elements are using this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <circle>, <clippath>, <cursor>, <defs>, <ellipse>, <foreignobject>, <g>, <image>, <
line>, <mask>, <path>, <pattern>, <polygon>, <poly
line>, <rect>, <set>, <svg>, <switch>, <text>, <textpath>, <tref>, <tspan>, <use> html, body, svg { height: 100%; } text { fill: white; } <svg viewbox="0 0 250 45" xmlns="http://www.w3.org/2000/svg"> <g> <rect fill="forestgreen" x="10" y="10" height="25" width="230" /> <text x="20" y="27">requiredfeatures supported</text> </g> ...
... http://www.w3.org/tr/svg11/feature#shape the browser supports the <rect>, <circle>, <
line>, <poly
line>, <polygon>, <ellipse> and <path> elements.
... http://www.w3.org/tr/svg11/feature#basictext the browser supports the <text> element http://www.w3.org/tr/svg11/feature#paintattribute the browser supports the color, fill, fill-rule, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-width, color-interpolation and color-rendering attributes http://www.w3.org/tr/svg11/feature#basicpaintattribute the browser supports the color, fill, fill-rule, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-width and color-rendering attributes http://www.w3.org/tr/svg11/feature#opaci...
...ributes http://www.w3.org/tr/svg11/feature#basicgraphicsattribute the browser supports the display and visibility attributes http://www.w3.org/tr/svg11/feature#marker the browser supports the <marker> element http://www.w3.org/tr/svg11/feature#colorprofile the browser supports the <color-profile> element http://www.w3.org/tr/svg11/feature#gradient the browser supports the <
lineargradient>, <radialgradient> and <stop> elements http://www.w3.org/tr/svg11/feature#pattern the browser supports the <pattern> element http://www.w3.org/tr/svg11/feature#clip the browser supports the <clippath> element and the clip-path, clip-rule attributes http://www.w3.org/tr/svg11/feature#basicclip the browser supports the <clippath> element and the clip-path attribute ht...
<feComponentTransfer> - SVG: Scalable Vector Graphics
example svg <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 600 300"> <defs> <
lineargradient id="rainbow" gradientunits="userspaceonuse" x1="0" y1="0" x2="100%" y2="0"> <stop offset="0" stop-color="#ff0000"></stop> <stop offset="0.2" stop-color="#ffff00"></stop> <stop offset="0.4" stop-color="#00ff00"></stop> <stop offset="0.6" stop-color="#00ffff"></stop> <stop offset="0.8" stop-color="#0000ff"></stop> <stop offset="1" stop-color="#800080"><...
.../stop> </
lineargradient> <filter id="identity" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="identity"></fefuncr> <fefuncg type="identity"></fefuncg> <fefuncb type="identity"></fefuncb> <fefunca type="identity"></fefunca> </fecomponenttransfer> </filter> <filter id="table" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="table" tablevalues="0 0 1 1"></fefuncr> <fefuncg type="table" tablevalues="1 1 0 0"></fefuncg> <fefuncb type="table" tablevalues="0 1 1 0"></fefuncb> </fecomponenttransfer> </filter> <filter id="discrete" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="discrete" tablevalues=...
..."0 0 1 1"></fefuncr> <fefuncg type="discrete" tablevalues="1 1 0 0"></fefuncg> <fefuncb type="discrete" tablevalues="0 1 1 0"></fefuncb> </fecomponenttransfer> </filter> <filter id="
linear" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="
linear" slope="0.5" intercept="0"></fefuncr> <fefuncg type="
linear" slope="0.5" intercept="0.25"></fefuncg> <fefuncb type="
linear" slope="0.5" intercept="0.5"></fefuncb> </fecomponenttransfer> </filter> <filter id="gamma" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="gamma" amplitude="4" exponent="7" offset="0"></fefuncr> <fefuncg type="gamma" amplitude="4" exponent="4" offset="0"></fefuncg> <fefunc...
...="70">identity</text> <rect x="0" y="80" width="100%" height="20" style="filter:url(#identity)"></rect> <text x="0" y="120">table lookup</text> <rect x="0" y="130" width="100%" height="20" style="filter:url(#table)"></rect> <text x="0" y="170">discrete table lookup</text> <rect x="0" y="180" width="100%" height="20" style="filter:url(#discrete)"></rect> <text x="0" y="220">
linear function</text> <rect x="0" y="230" width="100%" height="20" style="filter:url(#
linear)"></rect> <text x="0" y="270">gamma function</text> <rect x="0" y="280" width="100%" height="20" style="filter:url(#gamma)"></rect> </g> </svg> css rect { fill: url(#rainbow); } result specifications specification status comment filter effects module level 1t...
<marker> - SVG: Scalable Vector Graphics
the <marker> element defines the graphic that is to be used for drawing arrowheads or polymarkers on a given <path>, <
line>, <poly
line> or <polygon> element.
...="6" markerheight="6" orient="auto-start-reverse"> <path d="m 0 0 l 10 5 l 0 10 z" /> </marker> <!-- simple dot marker definition --> <marker id="dot" viewbox="0 0 10 10" refx="5" refy="5" markerwidth="5" markerheight="5"> <circle cx="5" cy="5" r="5" fill="red" /> </marker> </defs> <!-- coordinate axes with a arrowhead in both direction --> <poly
line points="10,10 10,90 90,90" fill="none" stroke="black" marker-start="url(#arrow)" marker-end="url(#arrow)" /> <!-- data
line with polymarkers --> <poly
line points="15,80 29,50 43,60 57,30 71,40 85,15" fill="none" stroke="grey" marker-start="url(#dot)" marker-mid="url(#dot)" marker-end="url(#dot)" /> </svg> attributes markerheight this attribute defines the height of the marker...
...bly: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriescontainer elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, <mask>, <pattern>, <...
<polygon> - SVG: Scalable Vector Graphics
the <polygon> element defines a closed shape consisting of a set of connected straight
line segments.
... for open shapes, see the <poly
line> element.
...sing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriesbasic shape element, graphics element, shape elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elements specifications specification status comment scalable vector graphics (svg) 2the definition of '<polygon>' in that specification.
<radialGradient> - SVG: Scalable Vector Graphics
html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <radialgradient id="mygradient"> <stop offset="10%" stop-color="gold" /> <stop offset="95%" stop-color="red" /> </radialgradient> </defs> <!-- using my
linear gradient --> <circle cx="5" cy="5" r="4" fill="url('#mygradient')" /> </svg> attributes cx this attribute defines the x coordinate of the end circle of the radial gradient.
... 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: pad|reflect|repeat ; default value: pad; animatable: yes xlink:href an <iri> reference to another <
lineargradient> element that will be used as a template.
...ibutes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility xlink attributes xlink:href, xlink:title usage notes categoriesgradient elementpermitted contentany number of the following elements, in any order:descriptive elements<animate>, <animatetransform>, <set>, <stop> specifications specification status comment s...
<text> - SVG: Scalable Vector Graphics
* * fill property, the color property is for html only */ .rrrrr { font: italic 40px serif; fill: red; } </style> <text x="20" y="35" class="small">my</text> <text x="40" y="35" class="heavy">cat</text> <text x="55" y="55" class="small">is</text> <text x="65" y="55" class="rrrrr">grumpy!</text> </svg> attributes x the x coordinate of the starting point of the text base
line.
... value type: <length>|<percentage> ; default value: 0; animatable: yes y the y coordinate of the starting point of the text base
line.
...lass, style, font-family, font-size, font-size-adjust, font-stretch, font-style, font-variant, font-weight conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, dominant-base
line, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-c...
...olspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriesgraphics element, text content elementpermitted contentcharacter data and any number of the following elements, in any order:animation elementsdescriptive elemen...
<tspan> - SVG: Scalable Vector Graphics
</text> </svg> attributes x the x coordinate of the starting point of the text base
line.
... value type: <length>|<percentage> ; default value: none; animatable: yes y the y coordinate of the starting point of the text base
line.
...: yes global attributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, dominant-base
line, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-c...
...olspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriestext content element, text content child elementpermitted contentcharacter data and any number of the following elements, in any order:descriptive elements<a>, <...
SVG element reference - SVG: Scalable Vector Graphics
feconvolvematrix> <fediffuselighting> <fedisplacementmap> <fedistantlight> <fedropshadow> <feflood> <fefunca> <fefuncb> <fefuncg> <fefuncr> <fegaussianblur> <feimage> <femerge> <femergenode> <femorphology> <feoffset> <fepointlight> <fespecularlighting> <fespotlight> <fetile> <feturbulence> <filter> <foreignobject> g <g> h <hatch> <hatchpath> i <image> l <
line> <
lineargradient> m <marker> <mask> <mesh> <meshgradient> <meshpatch> <meshrow> <metadata> <mpath> p <path> <pattern> <polygon> <poly
line> r <radialgradient> <rect> s <script> <set> <solidcolor> <stop> <style> <svg> <switch> <symbol> t <text> <textpath> <title> <tspan> u <unknown> <use> v <view> svg elements by category animation eleme...
...nts <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <discard>, <mpath>, <set> basic shapes <circle>, <ellipse>, <
line>, <polygon>, <poly
line>, <rect> container elements <a>, <defs>, <g>, <marker>, <mask>, <missing-glyph>, <pattern>, <svg>, <switch>, <symbol>, <unknown> descriptive elements <desc>, <metadata>, <title> filter primitive elements <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <feflood>,<fefunca>, <fefuncb>, <fefuncg>, <fefuncr>,<fegaussianblur>, <feimage>, <femerge>, <femergenode>, <femorphology>, <feoffset>, <fespecularlighting>, <fetile>, <feturbulence> font elements <font>, <font-face>, <font-face-format>, <font-face-name>, <font-face-src>, <font-face-uri>...
..., <hkern>, <vkern> gradient elements <
lineargradient>, <meshgradient>, <radialgradient>, <stop> graphics elements <circle>, <ellipse>, <image>, <
line>, <mesh>, <path>, <polygon>, <poly
line>, <rect>, <text>, <use> graphics referencing elements <mesh>, <use> light source elements <fedistantlight>, <fepointlight>, <fespotlight> never-rendered elements <clippath>, <defs>, <hatch>, <
lineargradient>, <marker>, <mask>, <meshgradient>, <metadata>, <pattern>, <radialgradient>, <script>, <style>, <symbol>, <title> paint server elements <hatch>, <
lineargradient>, <meshgradient>, <pattern>, <radialgradient>, <solidcolor> renderable elements <a>, <circle>, <ellipse>, <foreignobject>, <g>, <image>, <
line>, <mesh>, <path>, <polygon>, <poly
line>, <rect>, <svg>, <switch>, <symbol>, <text>, <textp...
...ath>, <tspan>, <unknown>, <use> shape elements <circle>, <ellipse>, <
line>, <mesh>, <path>, <polygon>, <poly
line>, <rect> structural elements <defs>, <g>, <svg>, <symbol>, <use> text content elements <altglyph>, <altglyphdef>, <altglyphitem>, <glyph>, <glyphref>, <textpath>, <text>, <tref>, <tspan> text content child elements <altglyph>, <textpath>, <tref>, <tspan> uncategorized elements <clippath>, <color-profile>, <cursor>, <filter>, <foreignobject>, <hatchpath>, <meshpatch>, <meshrow>, <script>, <style>, <view> obsolete and deprecated elements warning: these are old svg elements which are deprecated and should not be used.
SVG In HTML Introduction - SVG: Scalable Vector Graphics
overview this article and its associated example shows how to use in
line svg to provide a background picture for a form.
... source here is the source to the example: <html> <head> <title>xtech svg demo</title> <style> stop.begin { stop-color:yellow; } stop.end { stop-color:green; } body.invalid stop.end { stop-color:red; } #err { display:none; } body.invalid #err { display:in
line; } </style> <script> function signalerror() { document.getelementbyid('body').setattribute("class", "invalid"); } </script> </head> <body id="body" style="position:absolute; z-index:0; border:1px solid black; left:5%; top:5%; width:90%; height:90%;"> <form> <fieldset> <legend>html form</legend> <p><label>enter something:</label> <input type="text"> <span id="err">incorrect value!</sp...
...an></p> <p><input type="button" value="activate!" onclick="signalerror();"></p> </fieldset> </form> <svg viewbox="0 0 100 100" preserveaspectratio="xmidymid slice" style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:-1;"> <
lineargradient id="gradient"> <stop class="begin" offset="0%"/> <stop class="end" offset="100%"/> </
lineargradient> <rect x="0" y="0" width="100" height="100" style="fill:url(#gradient)" /> <circle cx="50" cy="50" r="30" style="fill:url(#gradient)" /> </svg> </body> </html> discussion the page is mainly regular html, css and javascript.
...(for in
line svg to work in both firefox and internet explorer it is necessary to serve documents with a different content-type to each browser.
request - Archive of obsolete content
examples out
lined in this document are no longer relevent in regards to the twitter api calls and need to be updated make simple network requests.
... the example below shows how to use request to get the most recent tweet from the @mozhacks account: var request = require("sdk/request").request; var latesttweetrequest = request({ url: "https://api.twitter.com/1.1/statuses/user_time
line.json?screen_name=mozhacks&count=1", oncomplete: function (response) { var tweet = response.json[0]; console.log("user: " + tweet.user.screen_name); console.log("tweet: " + tweet.text); } }); // be a good consumer and check for rate limiting before doing more.
... statustext the http response status
line (e.g.
lang/functional - Archive of obsolete content
in this example, we'll fabricate a function // that takes a string of first and last names that // somehow computes the
lineage of that name.
... our hash // function will just parse the last name, as our naive // implementation assumes that they will share the same
lineage let get
lineage = memoize(function (name) { // computes
lineage return data; }, hasher); // hashing function takes a string of first and last name // and returns the last name.
... function hasher (input) { return input.split(" ")[1]; } get
lineage("homer simpson"); // computes and returns information for "simpson" get
lineage("lisa simpson"); // returns cached for "simpson" parameters fn : function the function that becomes memoized.
loader/sandbox - Archive of obsolete content
evaluate code module provides evaluate function that lets you execute code in the given sandbox: evaluate(scope, 'var a = 5;'); evaluate(scope, 'a + 2;'); //=> 7 more details about evaluated script may be passed via optional arguments that may improve exception reporting: // evaluate code as if it was loaded from 'http://foo.com/bar.js' and // start from 2nd
line.
... evaluate(sandbox, code, uri,
line, version) evaluate code in sandbox, and return the result.
...
line : number evaluate the code starting at this
line.
Label and description - Archive of obsolete content
line breaking under normal conditions, a description will not break long-running text and the text may be cropped or hidden.
...this reduces all whitespace chunks (including new
lines) to single spaces.
...absolutely nothing!</description> with white-space: pre; all whitespace, including new
lines, is rendered literally.
Miscellaneous - Archive of obsolete content
event.detail contains the number of
lines to scroll.
...</div> <script type="text/javascript"> var elm = document.getelementbyid("scrollarea"); elm.addeventlistener("dommousescroll", function scroll(event){ //event.detail is positive for a downward scroll, negative for an upward scroll alert("scrolling " + event.detail + "
lines"); }, false); </script> if you do not receive a dommousescroll event while holding any of the modifier keys (ctrl,shift,alt,meta) you should check the mousewheel.withcontrolkey.action and related preferences.
... the meaning of the action preference is shown in the following table mousewheel.withxxxkey.action result 0 scroll by
lines.
Preferences - Archive of obsolete content
you should do the following: add this
line to some .properties file (for all of your locales), say to chrome://myext/locale/defaults.properties: extensions.myext.welcomemessage=localized default value add the default value for extensions.myext.welcomemessage, pointing to that properties file, by adding the following
line to your file with default preferences (see below).
...to add a default value for a preference, you should add a
line like this to your default preferences file: pref("extensions.extensionname.preferencename", false); how to install an extension's defaults files for mozilla suite (not firefox and thunderbird), copy them to (appdir)/defaults/pref in your install script.
...ces system - an easy way to create a xul options window for your extension or application syncing preferences across clients using sync lxr pages for libpref, the source code module that implements the preferences system a javascript wrapper for preferences api adding preferences to an extension — a simple tutorial with a working extension that illustrates the use of preference observers in
line options - how to use the new preference ui that appears in
line in the add-on manager window starting in firefox 7 .
How to convert an overlay extension to restartless - Archive of obsolete content
step 2a: load your jsm from chrome:// now with that preface out of the way, this part is easy: drop support for firefox 3.x if you haven't already, move your jsm files to wherever you've got your chrome mapping to for your xul overlay and/or windows, import your files from that new chrome mapped path instead of the old resource one, and remove your "resource"
line from your chrome.manifest file.
...branch : services.prefs; branch.setcomplexvalue(prefname, components.interfaces.nsisupportsstring, string); } just grab the above, move your default preferences file to your chrome mapping, and then do the following
line once during your startup: services.scriptloader.loadsubscript("chrome://myaddon/content/defaultprefs.js", {pref:setdefaultpref} ); that's it.
... once you've got the machinery to load and save preferences without having to jump through the various pref type hoops the actual preferences api sends you through, loading the actual preferences file is one
line.
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
components developed in
line with that framework are referred to as xpcom components, and sometimes the components are simply referred to as xpcoms.
... permit by dialog try adding the contents of listing 2 to test.xul, before the
line var ioservice = …, and re-open it in firefox.
...ta\roaming\mozilla\firefox\profiles\random number.default\ ; on windows xp or 2000, it will be c:\documents and settings\username\application data\mozilla\firefox\profiles\random number.default\ ; on linux, it will be ~/.mozilla/firefox/random number.default/ ; on mac os x, it will be ~/library/application support/firefox/profiles/random number.default/ in the interests of security, delete these
lines from prefs.js after finishing these tests.
Appendix D: Loading Scripts - Archive of obsolete content
flexibility: the evalinsandbox method accepts several parameters, including the url,
line number, and javascript version of the file from which the code being evaluated was extracted.
...in stack traces, the script will appear to have been loaded from the file "zz-9://plural/zed/alpha",
line 42.
... that will be executed: let script = string(); // evaluate the script: components.utils.evalinsandbox(script, sandbox, // the javascript version "1.8", // the apparent script filename: "zz-9://plural/zed/alpha", // the apparent script starting
line number: 42); the following code will execute a simple script loaded from a local file in the same directory as the current script.
Custom XUL Elements with XBL - Archive of obsolete content
bindings tend to require many
lines of code, and having more than one ends up making gigantic, unbrowsable files.
...inherits="value=name" /> <xul:description xbl:inherits="value=greeting" /> </xul:vbox> <xul:vbox> <xul:button label="&xulshoolhello.remove.label;" accesskey="&xulshoolhello.remove.accesskey;" oncommand="document.getbindingparent(this).remove(event);" /> </xul:vbox> </xul:hbox> </content> our element is very simple, displaying an image, a couple of text
lines and a button.
...we use the shorthand version of the property tag: <property name="name" onget="return this.getattribute('name');" onset="this.setattribute('name', val);" /> there's a less compact version of the property tag that should be used if the getter or setter code involves more than one
line of code: <property name="name"> <getter><![cdata[ return this.getattribute('name'); ]]></getter> <setter><![cdata[ this.setattribute('name', val); ]]></setter> </property> properties can be accessed just the same as fields, and they're the ones we prefer for public members.
JavaScript Object Management - Archive of obsolete content
the general guide
line we follow is this: whenever you have to set a callback function parameter, wrap it in an anonymous function.
... module files can be imported to a chrome script or to other code modules with the following
line: components.utils.import("resource://xulschoolhello/messagecount.js"); when using components.utils.import, code modules must be loaded using a file: or resource: url pointing to a file on the disk.
... as a general guide
line, we keep all of our business logic in jsm, available through service objects, and chrome scripts are limited to handle presentation logic.
Source code directories overview - Archive of obsolete content
it can be used to draw rectangles,
lines, images, etc.
... xpcom contains the low-level c interfaces, c code, c code, a bit of assembly code and command
line tools for implementing the basic machinery of xpcom components (which stands for "cross platform component object model").
... components contains the alerts, autocomplete, command
line interface, console, cookies, download manager, filepicker, history, password manager, typeaheadfind, view source, etc.
Making it into a static overlay - Archive of obsolete content
or/content/tinderstatus.css" type="text/css"?> <overlay id="tinderstatusoverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript" src="chrome://navigator/content/tinderstatus.js" /> <statusbar id="status-bar"> <statusbarpanel class="statusbarpanel-iconic" id="tinderbox-status" insertbefore="off
line-status" status="none"/> </statusbar> </overlay> tinderstatusoverlay.xul starts with an xml processing instruction that identifies the file as xml (all xul files need to include this).
... its next
line is the stylesheet reference we previously added to navigator.xul.
...panel id="statusbar-display" label="&statustext.label;" flex="1"/> <statusbarpanel class="statusbarpanel-progress"> <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/> </statusbarpanel> <statusbarpanel class="statusbarpanel-iconic" id="tinderbox-status" status="none"/> <statusbarpanel class="statusbarpanel-iconic" id="off
line-status"/> <statusbarpanel class="statusbarpanel-iconic" id="security-button" onclick="browserpageinfo(null, 'securitytab')"/> </statusbar> ...
Dehydra Object Reference - Archive of obsolete content
often, the best way to become familiar with the dehydra objects is to print out the objects: dehydra example code an on
line tool for pretty-printing dehydra data understanding properties dehydra only sets properties that are applicable.
...they convert to a string of the form "file:
line:column".
... they have the following properties: property type .file string .
line integer .column integer (optional) ...
Style System Overview - Archive of obsolete content
style attribute changes we handle style attribute (“in
line style”) changes in a different way from other changes to style rules.
... as for other style changes, we have to “walk” the rule tree and clear all the style data coming from the old in
line style nsistylerule, since there could be an !important rule that overrides it, which would allow dynamic changes to put the style attribute in multiple places in the rule tree.
... however, we maintain a hashtable just for in
line style rules so that we don't have to walk the whole tree to find the nodes.
Nanojit - Archive of obsolete content
this chain of lirwriter objects forms a pipe
line for the instructions to pass through.
... 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 the first parameter // to the constant 2.
...the function is created here on
lines 57-69: // compile the fragment.
Bundles - Archive of obsolete content
webapp bundle in addition to passing simple command
line parameters, prism can use a zipped bundle package to install a webapp.
...when prism is launched with a "-webapp [bundle]" command
line, the bundle must first be unpacked before the web application is launched.
...this is why the preferred method of launching is to use the "-webapp [webapp-id]" command
line, which looks for the previously installed (unpacked) web application in the prism webapps/{webapp-id} folder.
Tamarin build documentation - Archive of obsolete content
note that additional command-
line arguments are only available in the debug configuration.
... - change the variable android_device in the makefile (near
line 65) to point to your sdk/ndk top folder.
... preparing your eclipse workspace and perspective open the c/c++ perspective open the 'c/c++ projects' view (window >> show view >> c/c++ projects) add view filter 'non-c elements' (in the top-right of the 'c/c++ projects' view, click the down-arrow, click 'filters...', check 'non-c elements') increase the threshold for 'editor scalability mode' to 20000
lines.
Tamarin mercurial commit hook - Archive of obsolete content
the hook is located in the tamarin-redux repository in the file utils/hooks/tamarin-commit-hook.py this is a simple mercurial hook that checks the following filetypes ('.cpp', '.h', '.as', '.abs', '.py') for the following: tabs anywhere in the
line trailing whitespace windows
line endings (\r\n) "mark_security_change" - looks for this text and warns user as security changes should not be checked into the public tamarin-redux repository.
... any untouched
lines of code that violate the check will be ignored.
...[n]: note that the prompt gives you the options to abort the commit (no), allow the tab (or other violation) on that particular
line, or allow the violation for all
lines in that file.
accesskey - Archive of obsolete content
on non-macintosh platforms, the character on the element's label matching the accesskey is under
lined.
...on the macintosh, labels are never under
lined, however accesskeys can still be used by pressing the letter combined with the command key.
...otherwise, if the label has two or more characters which are same as its accesskey, the first of those characters in the label will be under
lined.
Building accessible custom components in XUL - Archive of obsolete content
a better approach is to use the css out
line property, which does maintains the element's dimensions.
... (technically, it draws the border inside the element instead of outside.) <code> grid.spreadsheet description:focus, grid.spreadsheet label:focus { out
line: 1px dotted black; out
line-offset: -2px; } </code> however, neither of those are our biggest problem.
...t.addeventlistener('click', spreadsheet_click, true); } function spreadsheet_focus(e) { if (e.target.tagname == 'grid') { if (!gfocuscell) { gfocuscell = e.target.getelementsbytagname('label')[0]; } gfocuscell.focus(); } else { gfocuscell = e.target; } } function spreadsheet_click(e) { e.target.focus(); } </code> finally, we'll add two
lines to our .xul file to link in the javascript file (accjax.js) and call the install_handlers function when the spreadsheet is loaded.
List of commands - Archive of obsolete content
type) nsdomwindowcontroller commands (generally legal when there is a selection): cmd_copy - copy a selection to the clipboard cmd_cut - cut a selection into the clipboard cmd_paste - paste a selection from the clipboard cmd_selectall cmd_selectnone cmd_copylink cmd_copyimagelocation cmd_copyimagecontents cmd_scrolltop cmd_scrollbottom cmd_scrollpageup cmd_scrollpagedown cmd_scroll
lineup cmd_scroll
linedown cmd_scrollleft cmd_scrollright cmd_selectcharprevious cmd_selectcharnext cmd_wordprevious cmd_wordnext cmd_selectwordprevious cmd_selectwordnext cmd_begin
line cmd_end
line cmd_selectbegin
line cmd_selectend
line cmd_select
lineprevious cmd_select
linenext cmd_selectpageprevious cmd_selectpagenext cmd_selectmovetop cmd_selectmovebottom editor commands (legal wh...
...en the focus is anywhere where you can type text): cmd_paste - paste a selection from the clipboard cmd_pastequote cmd_delete cmd_deletecharbackward cmd_deletecharforward cmd_deletewordbackward cmd_deletewordforward cmd_deletetobeginningof
line cmd_deletetoendof
line cmd_scrolltop cmd_scrollbottom cmd_movetop cmd_movebottom cmd_selecttop cmd_selectbottom cmd_
linenext cmd_
lineprevious cmd_select
linenext cmd_select
lineprevious cmd_charprevious cmd_charnext cmd_selectcharprevious cmd_selectcharnext cmd_begin
line cmd_end
line cmd_selectbegin
line cmd_selectend
line cmd_wordprevious cmd_wordnext cmd_selectwordprevious cmd_selectwordnext cmd_scrollpageup cmd_scrollpagedown cmd_scroll
lineup cmd_scroll
linedown cmd_movepageup cmd_movepagedown cmd_selectpageup cmd_sel...
...innewtab cmd_bm_openinnewwindow cmd_bm_paste cmd_bm_properties cmd_bm_rename cmd_bm_selectall cmd_bm_setnewbookmarkfolder cmd_bm_setnewsearchfolder cmd_bm_setpersonaltoolbarfolder cmd_bm_sortfolder cmd_bm_sortfolderbyname cmd_close cmd_closeothertabs cmd_closewindow cmd_copy cmd_copyimage cmd_copylink cmd_cut cmd_delete cmd_editpage cmd_findtypelinks cmd_findtypetext cmd_goto
line cmd_handlebackspace cmd_handleshiftbackspace cmd_minimizewindow cmd_neweditor cmd_neweditordraft cmd_neweditortemplate cmd_newnavigator cmd_newnavigatortab cmd_newtabwithtarget cmd_openhelp cmd_paste - paste a selection from the clipboard cmd_printsetup cmd_quit cmd_redo cmd_savepage cmd_scrollpagedown cmd_scrollpageup cmd_selectall cmd_switchdocumentdirection cmd_switchtextdi...
scrollByIndex - Archive of obsolete content
« xul reference home scrollbyindex(
lines ) return type: no return value scrolls the contents of the arrowscrollbox by a certain number of
lines.
... a
line is a single element.
... use a positive value as the
lines argument to scroll forward that many
lines, or a negative value to scroll backward that many
lines.
Menus - Archive of obsolete content
on some platforms, adding an access key will under
line a letter in the menu label indicating the key to press.
...although the access keys are not case sensitive, the under
lined letter will always be the one with matching case if available.
...for example, to have a tools menu that is shared between all windows, just create a menu in the overlay, and include it in each window with a single
line: <menu id="menu-tools"/> the overlay should have a menu with the same id 'menu-tools' containing the complete definition of the menu.
reftest opportunities files - Archive of obsolete content
302 http://dbaron.org/css/test/sec100303 http://dbaron.org/css/test/sec100304 http://dbaron.org/css/test/sec100305 http://dbaron.org/css/test/sec100307 http://dbaron.org/css/test/sec1004 http://dbaron.org/css/test/sec1004b http://dbaron.org/css/test/sec100604 http://dbaron.org/css/test/sec1007 http://dbaron.org/css/test/sec1007b http://dbaron.org/css/test/abspos_inherit http://dbaron.org/css/test/
linebox1 http://dbaron.org/css/test/
linebox2 http://dbaron.org/css/test/
linebox3 http://dbaron.org/css/test/
linebox4 http://dbaron.org/css/test/in
linetest http://dbaron.org/css/test/sec1101 http://dbaron.org/css/test/sec110102 http://dbaron.org/css/test/sec110102b http://dbaron.org/css/test/sec1102a http://dbaron.org/css/test/sec1102b http://dbaron.org/css/test/sec1201 http://dbaron.org/css/test/sec12...
...170501a http://dbaron.org/css/test/sec170501b http://dbaron.org/css/test/sec170502 http://dbaron.org/css/test/sec170503 http://dbaron.org/css/test/sec170504 http://dbaron.org/css/test/tborder1 http://dbaron.org/css/test/tborder2 http://dbaron.org/css/test/sec1706c http://dbaron.org/css/test/sec1801 http://dbaron.org/css/test/sec1802 http://dbaron.org/css/test/sec1803 http://dbaron.org/css/test/out
line http://dbaron.org/css/test/sq_small http://dbaron.org/css/test/sq_large tests from mozilla source tree parser/htmlparser/tests/html/xmp005.html parser/htmlparser/tests/html/value001.html parser/htmlparser/tests/html/utf8001.html parser/htmlparser/tests/html/usascii.html parser/htmlparser/tests/html/title01.html parser/htmlparser/tests/html/title.html parser/htmlparser/tests/html/tiny.html parse...
...htmlparser/tests/html/pre002.html parser/htmlparser/tests/html/pre001.html parser/htmlparser/tests/html/param002.html parser/htmlparser/tests/html/param001.html parser/htmlparser/tests/html/option.html parser/htmlparser/tests/html/obj003.html parser/htmlparser/tests/html/obj002.html parser/htmlparser/tests/html/obj001.html parser/htmlparser/tests/html/nulltest.html parser/htmlparser/tests/html/new
lines.html parser/htmlparser/tests/html/list003.html parser/htmlparser/tests/html/list002.html parser/htmlparser/tests/html/list001.html parser/htmlparser/tests/html/layer01.html parser/htmlparser/tests/html/layer003.html parser/htmlparser/tests/html/layer002.html parser/htmlparser/tests/html/layer001.html parser/htmlparser/tests/html/java.html parser/htmlparser/tests/html/insdel02.html parser/htmlpar...
Archived Mozilla and build documentation - Archive of obsolete content
it also includes tools for looking at checkin logs (and comments); doing diffs between various versions of a file; and finding out which person is responsible for changing a particular
line of code ("cvsblame").
... space manager high level design the space manager and associated classes and structures are used by block and
line layout to manage rectangular regions that are occupied and available, for correct handling of floated elements and the elements that flow around them.
...it’s a simple editor that can preview xul in
line or in a separate popup window.
2006-09-29 - Archive of obsolete content
discussions discussion on how the firefox 1.5.0.7 dom generates xhtml in
line elements using wordpress.
... it was determined that the generated elements from wordpress do not follow the wc3 guide
lines in appendix c of xhtml 1.0.
... * @param ashrinkwrap whether the frame is in a context where * non-replaced blocks should shrink-wrap (e.g., * it's floating, absolutely positioned, or * in
line-block).
NPN_Status - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary lets a plug-in display a message on the browser's status
line.
...the browser always displays the last status
line message it receives, regardless of the message source.
... your message is always displayed, but you have no control over how long it stays in the status
line before another message replaces it.
Create Your Own Firefox Background Theme - Archive of obsolete content
on
line image editor resources pixlr — pixlr offers professional and easy-to-use tools for creating and editing images within a browser.
... photoshop — tweak, rotate and touch up photos with photoshop® express, a free on
line photo editor.
... tip: to ensure that your theme is approved for the gallery, be sure it complies with the content guide
lines and terms of service!
Using IO Timeout And Interrupt On NT - Archive of obsolete content
due to a limitation of the present implementation of nspr io on nt, programs must follow the following guide
line: if a thread calls an nspr io function on a file descriptor and the io function fails with <tt>pr_io_timeout_error</tt> or <tt>pr_pending_interrupt_error</tt>, the file descriptor must be closed before the thread exits.
... in this memo we explain the problem this guide
line is trying to work around and discuss its limitations.
... conclusions as long as we need to support nt 3.51, we need to program under the guide
line that after an io timeout or interrupt error, the thread must make sure the file descriptor is closed before it exits.
display-outside - Archive of obsolete content
/* keyword values */ display-outside: block-level; display-outside: in
line-level; display-outside: run-in; display-outside: contents; display-outside: none; display-outside: table-row-group; display-outside: table-header-group; display-outside: table-footer-group; display-outside: table-row; display-outside: table-cell; display-outside: table-column-group; display-outside: table-column; display-outside: table-caption; display-outside: ruby-base; display-outside: ruby-text; display-outside: ruby-base-container; display-outside: ruby-text-container; /* global values */ display-outside: inherit; display-outside:...
... in
line-level the element generates an in
line-level box, and participates in an in
line formatting context.
...run-in elements act like in
lines or blocks, depending on the surrounding elements.
Debug.writeln - Archive of obsolete content
the debug.writeln function sends strings to the script debugger, followed by a new
line character.
... remarks the debug.writeln function sends strings, followed by a new
line character, to the immediate window of the microsoft script debugger at run time.
...the only difference is that the debug.write function does not send a new
line character after sending the strings.
XForms Label Element - Archive of obsolete content
the label text can be specified in instance data, in a remote document, or as in
line text.
... if more than one source of label text is specified for this element, the order of precedence is: single node binding attributes, linking attributes, in
line text.
... representations the xforms label element is represented by the text retrieved from instance data, a document or the label element's own in
line content.
XForms Repeat Element - Archive of obsolete content
example <model> <instance> <my:
lines> <my:
line name="a"> <my:price>3.00</my:price> </my:
line> <my:
line name="b"> <my:price>32.25</my:price> </my:
line> </my:
lines> </instance> </model> <repeat id="
lineset" nodeset="/my:
lines/my:
line"> <input ref="my:price"> <label>
line item</label> </input> <input ref="@name"> <label>name</label> </input> </repeat> <trigger> <label>in...
...sert a new item after the current one</label> <action ev:event="domactivate"> <insert nodeset="/my:
lines/my:
line" at="index('
lineset')" position="after"/> <setvalue ref="/my:
lines/my:
line[index('
lineset')]/@name"/> <setvalue ref="/my:
lines/my:
line[index('
lineset')]/price">0.00</setvalue> </action> </trigger> <trigger> <label>remove current item</label> <delete ev:event="domactivate" nodeset="/my:
lines/my:
line" at="index('
lineset')"/> </trigger> attribute based repeat when using xforms within host languages like xhtml, it is often necessary to create repeating structures within constructs such as html:table.
...orms:model id="i_model"> <xforms:instance xmlns=""> <data xmlns:html="http://www.w3.org/1999/xhtml" xmlns=""> <val id="1"> <nest>nest 1.1</nest> <nest>nest 1.2</nest> </val> <val id="2"> <nest>nest 2.1</nest> <nest>nest 2.2</nest> </val> </data> </xforms:instance> </xforms:model> <div xforms:repeat-nodeset="val"> this is the in
line content, just text.
XForms Textarea Element - Archive of obsolete content
introduction serves to show/change multi
line text (see the spec).
... representations the xforms textarea element is represented by a multi
line text field (xhtml/xul).
... characteristics analogous widgets are <xhtml:textarea/> and <xul:textbox multi
line="true"/> if the incremental attribute has the value true, then the bound instance node is updated on every user input.
Using the Right Markup to Invoke Plugins - Archive of obsolete content
its use is subject to a few caveats that this section out
lines.
...however, there are a few caveats that developers ought to bear in mind when using the object element with mozilla-based browsers such as netscape 7 and in ie: caveats if you use one single object element for both browsers (as in the above example), it is not possible to provide a cross-browserobtainment mechanism for stream
lined download.
...the pluginurl attribute is another attribute that can be used, and it can be used to point directly to an xpinstall file for a more stream
lined download.
Index - Game development
18 building up a basic demo with playcanvas 3d, animation, beginner, canvas, games, playcanvas, tutorial, webgl, camera, lighting, rendering of course, it depends on your approach — designers may favor the on
line editor while programmers will prefer having the full control over the coding environment and will probably use the engine's source files.
... 19 building up a basic demo with playcanvas editor 3d, animation, beginner, canvas, games, lightning, on
line, playcanvas, tutorial, webgl, camera, editor, rendering now you can check the playcanvas engine article if you haven't seen it yet, go back to the building up a basic demo with playcanvas page, or go back a level higher to the main 3d games on the web page.
...glsl is executed directly by the graphics pipe
line.
Game distribution - Game development
this includes hosting it yourself on
line, submitting it to open marketplaces, and submitting it to closed ones like google play or the ios app store.
...another good measure to take is to provide an on
line demo if you're planning on packaging it and selling it in a closed store like itunes or steam.
... the chrome web store is also an attractive option — again, having a manifest file ready, zipping your game and filling in the on
line submission form is about all that's required.
Game promotion - Game development
you'll get bonus points for allowing your users to directly play your games on
line — at least in demo form.
... tutorials it's good to share your knowledge with other devs — after all you probably learned a thing or two from on
line articles, so you take the time to pay that knowledge forward.
...sending out weekly newsletters and organizing on
line competitions or local meetups will show others that you're passionate about what you do and that they can rely on you.
Audio for Web games - Game development
background music with the web audio api although we can use the <audio> element to deliver
linear background music that doesn't change in reaction to the game environment, the web audio api is ideal for implementing a more dynamic musical experience.
... element to deliver
linear background music that doesn't change in reaction to the game environment, the web audio api is ideal for implementing a more dynamic musical experience.
...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 = 'in
line-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 this demo in action here and view the source code here.
Buttons - Game development
add these
lines below your other variable definitions: var playing = false; var startbutton; loading the button spritesheet we can load the button spritesheet the same way we loaded the ball's wobble animation.
...add the following
lines to the bottom of your create() function: startbutton = game.add.button(game.world.width*0.5, game.world.height*0.5, 'button', startgame, this, 1, 0, 2); startbutton.anchor.set(0.5); the button() method's parameters are as follows: the button's x and y coordinates the name of the graphic asset to be displayed for the button a callback function that will be executed when the button is pres...
... finally for this section, go back into your create() function, find the ball.body.velocity.set(150, -150);
line, and remove it.
Load the assets and print them on screen - Game development
add the following
line between the game initialization code (our var game...
...add the following new
line just inside the preload() function, at the bottom: function preload() { // ...
... now, to show it on the screen we will use another phaser method called add.sprite(); add the following new code
line inside the create() function as shown: function create() { ball = game.add.sprite(50, 50, 'ball'); } this will add the ball to the game and render it on the screen.
Physics - Game development
add the physics.startsystem() method at the beginning of the create function (make it the first
line inside the function), as shown below: game.physics.startsystem(phaser.physics.arcade); next, we need to enable our ball for the physics system — phaser object physics is not enabled by default.
... add the following
line at the bottom of the create() function: game.physics.enable(ball, phaser.physics.arcade); next, if we want to move our ball on the screen, we can set velocity on its body.
... add the following
line, again at the bottom of create(): ball.body.velocity.set(150, 150); removing our previous update instructions remember to remove our old method of adding values to x and y from the update() function: function update() { ball.x += 1; ball.y += 1; } we are now handling this properly, with a physics engine.
Visual-js game engine - Game development
inserting new code will be always at current
line selected intro editor .
... adding new script explanation : after adding new script and save script if you have extra changes , open starter/run.js and you will found
line : sys.script.load("scripts/new_script.js") ctrl+s use from menu run->choose browser for testing .
... on
line demo examples at : https://jsfiddle.net/user/zlatnaspirala/fiddles/ demo slot mashine basic demo at : https://jsfiddle.net/zlatnaspirala/7d0d8v6d/ help about new 2d part - implementation of matter.js based typescript .
Plug-in Development Overview - Gecko Plugin API Reference
displaying messages on the status
line functionally, your plug-in is seamlessly integrated into the browser and operates as an addition to current browser capabilities.
... to make the user feel that the plug-in is part of the the browser user interface, your plug-in can emulate the browser behavior by providing status
line messages.
... use the npn_status method to display a message on the status
line.
Block (CSS) - MDN Web Docs Glossary: Definitions of Web-related terms
a block on a webpage is an html element that appears on a new
line, i.e.
...for example, <p> is by default a block-level element, whereas <a> is an in
line element — you can put several links next to one another in your html source and they will sit on the same
line as one another in the rendered output.
... using the display property you can change whether an element displays in
line or as a block (among many other options); blocks are also subject to the effects of positioning schemes and use of the position property.
Control flow - MDN Web Docs Glossary: Definitions of Web-related terms
code is run in order from the first
line in the file to the last
line, unless the computer runs across the (extremely frequent) structures that change the control flow, such as conditionals and loops.
...looking back at the code in the if and else sections, the
lines promptuser and submitform could also be calls to other functions in the script.
... as you can see, control structures can dictate complex flows of processing even with only a few
lines of code.
WCAG - MDN Web Docs Glossary: Definitions of Web-related terms
web content accessibility guide
lines (wcag) are a recommendation published by the web accessibility initiative group at the w3c.
... they out
line a set of guide
lines for making content accessible primarily for people with disabilities but also for limited-resource devices such as mobile phones.
...it consists of 12 guide
lines organized under 4 principles (perceivable, operable, understandable, and robust) and each guide
line has testable success criteria.
Backgrounds and borders - Learn web development
.box { background:
linear-gradient(105deg, rgba(255,255,255,.2) 39%, rgba(51,56,57,1) 96%) center center / 400px 200px no-repeat, url(big-star.png) center no-repeat, rebeccapurple; } we'll return to how the shorthand works later in the tutorial, but first let's have a look at the different things you can do with backgrounds in css, by looking at the individual background properties.
...in the two boxes respectively, we have a
linear gradient that is stretched over the whole box, and a radial gradient with a set size, which therefore repeats.
...typically when we add borders to an element with css we use a shorthand property that sets the color, width, and style of the border in one
line of css.
CSS building blocks - Learn web development
the aim here is to provide you with a toolkit for writing competent css and help you understand all the essential theory, before moving on to more specific discip
lines like text styling and css layout.
... note: if you are working on a computer/tablet/another device where you don't have the ability to create your own files, you could try out (most of) the code examples in an on
line coding program such as jsbin or glitch.
...in this assessment, we'll challenge you to create an on
line template to achieve such a look.
Test Your Skills: Fundamental layout comprehension - Learn web development
note: you can try out solutions in the interactive editors below, however it may be helpful to download the code and use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... if you would like your work assessed, or are stuck and want to ask for help: put your work into an on
line shareable editor such as codepen, jsfiddle, or glitch.
... a link to the example you want assessed or need help with, in an on
line shareable editor (as mentioned in step 1 above).
Beginner's guide to media queries - Learn web development
perhaps the
line lengths become far too long, or a boxed out sidebar gets squashed and hard to read.
... from this point, start to drag the responsive design mode view wider until you can see that the
line lengths are becoming quite long, and we have space for the navigation to display in a horizontal
line.
...we'll use ems, as this will mean that if the user has increased their text size, the breakpoint will happen at a similar
line-length but wider viewport, than someone with a smaller text size.
Practical positioning examples - Learn web development
next, we'll style the horizontal tabs — the list items are all floated left to make them sit in a
line together, their list-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 in
line-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: in
line-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.
Test your skills: Media Queries and Responsive Design - Learn web development
download the code and work locally, or use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... if you would like your work assessed, or are stuck and want to ask for help: put your work into an on
line shareable editor such as codepen, jsfiddle, or glitch.
... a link to the example you want assessed or need help with, in an on
line shareable editor (as mentioned in step 1 above).
How CSS works - Learn web development
all of the other css have been applied however; only the invalid
line is ignored.
...old browsers will use the pixel version, ignoring the
line about calc() as they don't understand it.
... new browsers will interpret the
line using pixels, but then override it with the
line using calc() as that
line appears later in the cascade.
Using your new knowledge - Learn web development
alternatively use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... assessment or further help if you would like your work assessed, or are stuck and want to ask for help: put your work into an on
line shareable editor such as codepen, jsfiddle, or glitch.
... a link to the example you want assessed or need help with, in an on
line shareable editor (as mentioned in step 1 above).
Styling text - Learn web development
here we look at text styling fundamentals including setting font, boldness, italics,
line and letter spacing, drop shadows, and other text features.
... note: if you are working on a computer/tablet/other device where you don't have the ability to create your own files, you could try out (most of) the code examples in an on
line coding program such as jsbin, codepen or glitch.
... fundamental text and font styling in this article we go through all the basics of text/font styling in detail, including setting font weight, family and style, font shorthand, text alignment and other effects, and
line and letter spacing.
How do I start to design my website? - Learn web development
rather than go through a long explanation, let's go back to our example with this table: goals things to do let people hear your music record music prepare some audio files usable on
line (could you do this with existing web services?) give people access to your music on some part of your website talk about your music write a few articles to start the discussion define how articles should look publish those articles on the website (how to do this?) meet other musicians provide ways for people to contact you (ema...
...l?) define how people will find those contact channels from your website sell goodies create the goodies store the goodies find a way to handle shipping find a way to handle payment make a mechanism on your site for people to place orders teach music through videos record video lessons prepare video files viewable on
line (again, could you do this with existing web services?) give people access to your videos on some part of your website two things to notice.
...often those off
line activities matter even more than the web side of the project.
UI pseudo-classes - Learn web development
tent is placed relative to an element's formatting box, but form inputs work more like replaced elements and therefore don't have one), we will add an empty <span> to hang the generated content on: <div> <label for="fname">first name: </label> <input id="fname" name="fname" type="text" required> <span></span> </div> the immediate problem with this was that the span was dropping onto a new
line below the input because the input and label are both set with width: 100%.
... to fix this we style the parent <div> to become a flex container, but also tell it to wrap its contents onto new
lines if the content becomes too long: fieldset > div { margin-bottom: 20px; display: flex; flex-flow: row wrap; } the effect this has is that the label and input sit on separate
lines because they are both width: 100%, but the <span> has a width of 0 so can sit on the same
line as the input.
...we style the indeterminate radio buttons with the following css: input[type="radio"]:indeterminate { border: 2px solid red; animation: 0.4s
linear infinite alternate border-pulse; } @keyframes border-pulse { from { border: 2px solid red; } to { border: 6px solid red; } } this creates a fun little animated border on the radio buttons, which hopefully indicates that you need to select one of them!
Structuring a page of content - Learn web development
create the example on your local computer, or alternatively use an on
line tool such as codepen, jsfiddle, or glitch to work on the tasks.
... assessment or further help if you would like your work assessed, or are stuck and want to ask for help: put your work into an on
line shareable editor such as codepen, jsfiddle, or glitch.
... a link to the example you want assessed or need help with, in an on
line shareable editor (as mentioned in step 1 above).
What’s in the head? Metadata in HTML - Learn web development
the <h1> element appears on the page when loaded in the browser — generally this should be used once per page, to mark up the title of your page content (the story title, or news head
line, or whatever is appropriate to your usage.) the <title> element is metadata that represents the title of the overall html document (not the document's content.) active learning: inspecting a simple example to start off this active learning, we'd like you to go to our github repo and download a copy of our title-example.html page.
... specifying your document's character encoding in the example we saw above, this
line was included: <meta charset="utf-8"> this element simply specifies the document's character encoding — the character set that the document is permitted to use.
... a favicon can be added to your page by: saving it in the same directory as the site's index page, saved in .ico format (most browsers will support favicons in more common formats like .gif or .png, but using the ico format will ensure it works as far back as internet explorer 6.) adding the following
line into your html's <head> block to reference it: <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> here is an example of a favicon in a bookmarks panel: there are lots of other icon types to consider these days as well.
Mozilla splash page - Learn web development
alternatively, you could use an on
line tool such as glitch to create your example.
... assessment or further help if you would like your work assessed, or are stuck and want to ask for help: put your work into an on
line shareable editor such as codepen, jsfiddle, or glitch.
... a link to the example you want assessed or need help with, in an on
line editor.
Introducing asynchronous JavaScript - Learn web development
let's look at a simple example (see it live here, and see the source): const btn = document.queryselector('button'); btn.addeventlistener('click', () => { alert('you clicked me!'); let pelem = document.createelement('p'); pelem.textcontent = 'this is a newly-added paragraph.'; document.body.appendchild(pelem); }); in this block, the
lines are executed one after the other: we grab a reference to a <button> element that is already available in the dom.
...that means that the following (pseudocode) wouldn't work: let response = fetch('myimage.png'); let blob = response.blob(); // display your image blob in the ui somehow that's because you don't know how long the image will take to download, so when you come to run the second
line it will throw an error (possibly intermittently, possibly every time) because the response is not yet available.
... it will then move to the next
line and begin executing the fetch() block but, because fetch() executes asynchronously without blocking, code execution continues after the promise-related code, thereby reaching the final console.log() statement (all done!) and outputting it to the console.
Measuring performance - Learn web development
the performance api, which provides access to performance-related information for the current page, includes the performance time
line api, the navigation timing api, the user timing api, and the resource timing api.
... the performanceentry object is part of the performance time
line.
... the performanceobserver api can be used to observe performance measurement events and it can notify you of new performance entries as they are recorded in the browser's performance time
line.
Routing in Ember - Learn web development
prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
...it contains the following contents: import emberrouter from '@ember/routing/router'; import config from './config/environment'; export default class router extends emberrouter { location = config.locationtype; rooturl = config.rooturl; } router.map(function() { this.route('completed'); this.route('active'); }); the highlighted
lines were added when the 2nd and 3rd commands above were run.
... creating the "index" route did not add a route definition
line to router.js, because like with url navigation and javascript module loading, "index" is a special word that indicates the default route to render, load, etc.
React interactivity: Editing, filtering, conditional rendering - Learn web development
prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command
line.
...add the following
line just inside the top of your todo(props) { … } component definition: const [isediting, setediting] = usestate(false); next, we're going to rethink the <todo /> component — from now on, we want it to display one of two possible “templates", rather than the single template it's used so far: the "view" template, when we are just viewing a todo; this is what we’ve used in rest of the tuto...
...when you press a filter button, you should see its text take on a new out
line — this tells you it has been selected.
Componentizing our Svelte app - Learn web development
prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
...first of all, we need to import it — add the following
line at the top of the todos.svelte <script> section: import filterbutton from './filterbutton.svelte' now, replace the filters <div> with a call to the filterbutton component, which takes the current filter as a prop — the below
line is all you need: <filterbutton {filter} /> note: remember that when the html attribute name and variable matches, they can be replaced with {variable}...
... first of all, add the following
lines to the top of the todo component's <script> section: import { createeventdispatcher } from 'svelte' const dispatch = createeventdispatcher() now update the delete button in the markup section of the same file to look like so: <button type="button" class="btn btn__danger" on:click={() => dispatch('remove', todo)}> delete <span class="visually-hidden">{todo.name}</span> </button> ...
Dynamic behavior in Svelte: working with variables and props - Learn web development
prerequisites: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command
line.
..., name: 'create a svelte starter app', completed: true }, { id: 2, name: 'create your first component', completed: true }, { id: 3, name: 'complete the rest of the tutorial', completed: false } ] </script> <todos todos={todos} /> when the attribute and the variable have the same name, svelte allows you to just specify the variable as a handy shortcut, so we can rewrite our last
line like this.
...add the following snippet to the <script> section: let newtodoid $: { if (totaltodos === 0) { newtodoid = 1; } else { newtodoid = math.max(...todos.map(t => t.id)) + 1; } } note: as you can see, reactive statements are not limited to one-
liners.
Creating our first Vue component - Learn web development
prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command
line.
...go to your browser's devtools and you’ll see a warning along these
lines in the console: [vue warn]: missing required prop: "label" found in ---> <todoitem> at src/components/todoitem.vue <app> at src/app.vue <root> this is because we marked the label as a required prop, but we never gave the component that prop — we've defined where inside the template we want it used, but we haven't passed it into the component when calling it.
...add the following
line at the top of todoitem.vue’s <script> element: import uniqueid from 'lodash.uniqueid'; next, add add an id field to our data property, so the component object ends up looking like so (uniqueid() returns the specified prefix — todo- — with a unique string appended to it): import uniqueid from 'lodash.uniqueid'; export default { props: { label: { required: true, type: string }, ...
Rendering a list of Vue components - Learn web development
prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command
line.
... add a few sample to-do items, along the
lines of those seen below.
... you are no longer using uniqueid, so you need to remove the import uniqueid from 'lodash.uniqueid';
line, otherwise your app will throw an error.
Understanding client-side web development tools - Learn web development
client-side tooling can be intimidating, but this series of articles aims to illustrate the purpose of some of the most common client-side tool types, explain the tools you can chain together, how to install them using package managers, and control them using the command
line.
...command
line crash course in your development process you'll undoubtedly be required to run some command in the terminal (or on the "command
line" — these are effectively the same thing).
... this article provides an introduction to the terminal, the essential commands you'll need to enter into it, how to chain commands together, and how to add your own command
line interface (cli) tools.
Simple Instantbird build
building instantbird what you need to do to build instantbird rather than firefox is: echo 'ac_add_options --enable-application=im' >> .mozconfig to start the build, cd into the comm-central subdirectory (created automatically by the hg clone command), and run: ./mozilla/mach build mach is our command-
line tool to stream
line common developer tasks.
... building purplexpcom and libpurple first download the purplexpcom code: hg clone http://hg.mozilla.org/users/florian_queze.net/purple mozilla/extensions/purple if you've set up your build environment as above, then all you need to do is: echo 'ac_add_options --enable-extensions=purple' >> .mozconfig in the comm-central directory, or just add the ac_add_options --enable-extensions=purple
line to your .mozconfig with your favorite editor.
... running to run your build, you can use ./mozilla/mach run there are various command
line parameters you can add, e.g.
Experimental features in Firefox
nightly 78 yes developer edition 78 yes beta 78 yes release 78 no preference name network.preload css display stray control characters in css as hex boxes this feature renders control characters (unicode category cc) other than tab (u+0009),
line feed (u+000a), form feed (u+000c), and carriage return (u+000d) as a hexbox when they are not expected.
... nightly 43 yes developer edition 43 no beta 43 no release 43 no preference name layout.css.control-characters.enabled or layout.css.control-characters.visible property: initial-letter the initial-letter css property is part of the css in
line layout specification and allows you to specify how dropped, raised, and sunken initial letters are displayed.
... nightly 72 no developer edition 72 no beta 72 no release 72 no preference name devtools.inspector.color-scheme-simulation.enabled execution context selector this feature displays a button on the console's command
line that lets you change the context in which the expression you enter will be executed.
Multiple Firefox profiles
options work off
line choosing this option loads the selected profile, and starts firefox off
line.
... if you want to have the profile manager to pop up each time you start firefox, so you can choose a profile, you will need to set the command
line for your new launcher.
... if you want individual icons to launch specific profiles, you will need to set the command
line for your new launcher.
How Mozilla determines MIME Types
unknown decoder located at netwerk/streamconv/converters/nsunknowndecoder.cpp, the interesting part starts at
line 287, the ssnifferentries array together with the determinecontenttype function.
...d 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 a hardcoded list of extensions is checked (containing currently 13 entries, nsexternalhelperappservice.cpp
line 463 (this is done for speed – it is faster to find data in the hardcoded list than asking the os or looking in preferences) if the extension is not listed there, it becomes interesting.
...see
line 507 for the complete list.
PromiseWorker.jsm
here is a simple demo showing how to transfer the second argument to a worker: github:: promiseworker transfer data
line 23.
... the command out
line below this shows how to do the same with meta syntax.
...domyfuncfalse - ', areason); } ).catch( function(acaught) { console.error('caught - promise_domyfuncfalse - ', acaught); } ); result running the code above will log the following information to the console: "fullfilled - promise_domyfunctrue - " "you sent to promiseworker argument of: `true`" bootstrap.js
line 8 "rejected - promise_domyfuncfalse - " "you passed in a non-true value for shouldresolve argument and therefore this will reject the main thread promise" bootstrap.js
line 25 other examples github :: promiseworker with backward compatability - this example is of a firefox addon that copies and pastes in the contents of promiseworker.js and promiseworker.jsm so that it works all the way ba...
Localization technical reviews
make sure that the the text content is wrapped with empty
lines.
... leading comments are ok, but watch out for #filter empty
lines #define ...
...#unfilter empty
lines in toolkit/defines.inc, the native name of the language is specified, which is used as description for the built language packs.
Extras
dialgradient> </defs> <g> <animatemotion path="m0,0 l3,0 l2,5 l5,5 l0,4 l5,2 z" begin="0s" dur="0.5s" repeatcount="indefinite"/> <circle fill="url(#radgrad2)" r="5px" cx="5px" cy="5px"/> </g> </svg> </mtext> </msup> <mrow> <mo>ⅆ</mo> <mi>θ</mi> </mrow> </math> <div style="width: 300px; margin-left: auto; margin-right: auto;"> <svg width="300px" height="250px"> <defs> <
lineargradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%"> <stop offset="0%" style="stop-color:rgb(0,0,255);stop-opacity:1"/> <stop offset="100%" style="stop-color:rgb(0,255,0);stop-opacity:1"/> </
lineargradient> <
lineargradient id="grad2" x1="0%" y1="0%" x2="0%" y2="100%"> <stop offset="0%" style="stop-color:rgb(255,0,0);stop-opacity:1"/> <stop offset="100%" style="stop-color:rgb(255,255,0);stop-o...
...pacity:1"/> </
lineargradient> <radialgradient id="grad3" cx="50%" cy="50%" r="50%" fx="50%" fy="50%"> <stop offset="0%" style="stop-color:rgb(0,255,255);stop-opacity:1"/> <stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:.8"/> </radialgradient> </defs> <rect width="300" height="250" fill="url(#grad1)"/> <g transform="translate(150,125)"> <g> <animatetransform attributename="transform" attributetype="xml" type="rotate" from="0" to="360" dur="6s" repeatcount="indefinite"/> <g transform="translate(-50,-35)"> <rect width="100" height="70" fill="url(#grad2)"/> <switch> <foreignobject width="100" height="70" requiredextensions="http://www.w3.org/1998/math/mathml"> <math display="block"> <mrow> <mo>(<...
...equiredextensions="http://www.w3.org/1998/math/mathml"> <math display="block"> <mrow> <munderover> <mo>∑</mo> <mrow> <mi>n</mi> <mo>=</mo> <mn>0</mn> </mrow> <mrow> <mo>+</mo> <mi>∞</mi> </mrow> </munderover> <mfrac> <msup> <mi>α</mi> <mi>n</mi> </msup> <mrow> <mi>n</mi> <mo>!</mo> </mrow> </mfrac> </mrow> </math> </foreignobject> <text>exp(α)</text> </switch> </g> </g> </svg> </div> in
line javascript html content <math display="block"> <mfrac> <mtext id="num">mouse</mtext> <mtext id="denum">over</mtext> </mfrac> </math> javascript content function whoistherealert(evt) { alert("who is there?"); } function attachlistener(id) { document.getelementbyid(id).addeventlistener("mouseover", whoistherealert); } function init() { attachlistener("num"); attachlistener("denum")...
Mozilla MathML Status
mo -
linebreaking attributes, indentation attributes not implemented.
... mspace -
linebreak not implemented.
... ms
line not implemented.
Mozilla Development Strategies
smaller patches get reviewed faster if you find that you spend a lot of time waiting for reviews, keep in mind that patch size is not
linear to time to review.
... a twenty
line patch doesn't take twice as long to review as a ten
line patch, it usually takes much more time.
...obviously, when doing it the "right" way means re-engineering large amounts of code, then incremental work is better; it's a fine
line.
Refcount tracing and balancing
xpcom_mem_alloc_log for platforms that don't have stack-crawl support, xpcom supports logging at the call site to addref/release using the usual cpp __file__ and __
line__ number macro expansion hackery.
... perl -w tools/rb/filter-log.pl --object 0x00253ab0 < ./refcounts.log > my-leak.log linux users the log file generated on linux system often lack function names, file names and
line numbers.
...make-tree.pl has an option --exclude [file], where [file] is a new
line-separated list of function names that will be excluded from consideration while building the tree.
Profile Manager
these cause firefox to be launched with various command-
line arguments.
... see command
line options for a description of these.
... launch option command
line argument run firefox in off
line mode -off
line run firefox in safe mode -safe-mode start firefox with a console -console start new instance -no-remote note: it isn't possible to start a second instance of firefox without passing it the -no-remote command
line argument.
McCoy
signing from command
line currently there is no support to run mccoy from command
line under windows, but it is planned to add this support in the future.
... however, there are several external and unofficial tools which enable signing from command
line: uhura - part of the mxtools package from softlights http://www.softlights.net/projects/mxtools/uhura.html signonthe
line - an extension to mccoy - important: you have to checkout rev 222, later revisions are not working in mccoy!
... https://fireclipse.svn.sourceforge.net/svnroot/fireclipse/trunk/fireclipseextensions/chromebug/mccoy/signonthe
line/ bug 396525 - patch to mccoy https://bugzilla.mozilla.org/show_bug.cgi?id=396525 signing update manifests before you release your add-on in order to verify the update manifests applications need to already have information from you for how to verify it.
Date and Time
absolute time representation treats time instants as points along the time
line.
... a time instant is represented by its position on the time
line relative to the origin, called the epoch.
...in this form, time is just a point on the time
line.
NSS Code Coverage
nss - code coverage results link 2007-08-14 - solaris/sparc platform results explanation files results from every c file are on new
line.
... 31 - total
lines in file (by wc -l command).
... 878 - total
lines in file (by wc -l command).
NSS Key Log Format
this key log file is a series of
lines.
... comment
lines begin with a sharp character ('#') and are ignored.
... the tls 1.3
lines are supported since nss 3.34 (bug 1287711) and wireshark 2.4 (early_exporter_secret exists since nss 3.35, bug 1417331).
NSS Sample Code Sample_1_Hashing
if the name is not a supported algorithm */ static secoidtag hashnametooidtag(const char *hashname) { int i, nhashes = sizeof(hash_names); secoidtag hashtag = sec_oid_unknown; for (i = 0; i < nhashes; i++) { if (port_strcasecmp(hashname, hash_names[i].hashname) == 0) { hashtag = hash_names[i].oid; break; } } return hashtag; } /* * new
line */ static void new
line(prfiledesc* out) { pr_fprintf(out, "\n"); } /* * printashex */ void printashex(prfiledesc* out, unsigned char *data, unsigned int len) { unsigned i; int column; unsigned int limit = 15; unsigned int level = 1; column = level; if (!len) { pr_fprintf(out, "(empty)\n"); return; } for (i = 0; i < len; i++) { if (i !
...= len - 1) { pr_fprintf(out, "%02x:", data[i]); column += 3; } else { pr_fprintf(out, "%02x", data[i]); column += 2; break; } if (column > 76 || (i % 16 == limit)) { new
line(out); column = level; limit = i % 16; } } if (column != level) { new
line(out); } } /* * prints a usage message and exits */ static void usage(const char *progname) { int htype; int hash_algtotal = sizeof(hash_names) / sizeof(hash_names[0]); fprintf(stderr, "usage: %s -t type [ < input ] [ > output ]\n", progname); fprintf(stderr, "%-20s specify the digest method (must be one of\n", "-t type"); fprintf(stderr, "%-20s ", ""); for (htype = ...
...progname + 1 : argv[0]; rv = nss_nodb_init("/tmp"); if (rv != secsuccess) { fprintf(stderr, "%s: nss_init failed in directory %s\n", progname, "/tmp"); return -1; } /* parse command
line arguments */ optstate = pl_createoptstate(argc, argv, "t:"); while ((status = pl_getnextopt(optstate)) == pl_opt_ok) { switch (optstate->option) { case 't': require_arg(optstate->option, optstate->value); hashname = strdup(optstate->value); break; } } if (!hashname) usage(progname); /* convert and validate *...
Hashing - sample 1
if the name if not a supported algorithm */ static secoidtag hashnametooidtag(const char *hashname) { int i, nhashes = sizeof(hash_names); secoidtag hashtag = sec_oid_unknown; for (i = 0; i < nhashes; i++) { if (port_strcasecmp(hashname, hash_names[i].hashname) == 0) { hashtag = hash_names[i].oid; break; } } return hashtag; } /* * new
line */ static void new
line(prfiledesc* out) { pr_fprintf(out, "\n"); } /* * printashex */ void printashex(prfiledesc* out, unsigned char *data, unsigned int len) { unsigned i; int column; unsigned int limit = 15; unsigned int level = 1; column = level; if (!len) { pr_fprintf(out, "(empty)\n"); return; } for (i = 0; i < len; i++) { if ...
...(i != len - 1) { pr_fprintf(out, "%02x:", data[i]); column += 3; } else { pr_fprintf(out, "%02x", data[i]); column += 2; break; } if (column > 76 || (i % 16 == limit)) { new
line(out); column = level; limit = i % 16; } } if (column != level) { new
line(out); } } /* * prints a usage message and exits */ static void usage(const char *progname) { int htype; int hash_algtotal = sizeof(hash_names) / sizeof(hash_names[0]); fprintf(stderr, "usage: %s -t type [ < input ] [ > output ]\n", progname); fprintf(stderr, "%-20s specify the digest method (must be one of\n", "-t type"); fprintf(stderr, "%-20s ", ""); for (hty...
...progname + 1 : argv[0]; rv = nss_nodb_init("/tmp"); if (rv != secsuccess) { fprintf(stderr, "%s: nss_init failed in directory %s\n", progname, "/tmp"); return -1; } /* parse command
line arguments */ optstate = pl_createoptstate(argc, argv, "t:"); while ((status = pl_getnextopt(optstate)) == pl_opt_ok) { switch (optstate->option) { case 't': require_arg(optstate->option, optstate->value); hashname = strdup(optstate->value); break; } } if (!hashname) usage(progname); /* convert and validate *...
sample1
not a supported algorithm */ static secoidtag hashnametooidtag(const char *hashname) { int i, nhashes = sizeof(hash_names); secoidtag hashtag = sec_oid_unknown; for (i = 0; i < nhashes; i++) { if (port_strcasecmp(hashname, hash_names[i].hashname) == 0) { hashtag = hash_names[i].oid; break; } } return hashtag; } /* new
line */ static void new
line(prfiledesc* out) { pr_fprintf(out, "\n"); } /* printashex */ void printashex(prfiledesc* out, unsigned char *data, unsigned int len) { unsigned i; int column; unsigned int limit = 15; unsigned int level = 1; column = level; if (!len) { pr_fprintf(out, "(empty)\n"); return; } for (i = 0; i < len; i...
...++) { if (i != len - 1) { pr_fprintf(out, "%02x:", data[i]); column += 3; } else { pr_fprintf(out, "%02x", data[i]); column += 2; break; } if (column > 76 || (i % 16 == limit)) { new
line(out); column = level; limit = i % 16; } } if (column != level) { new
line(out); } } /* prints a usage message and exits */ static void usage(const char *progname) { int htype; int hash_algtotal = sizeof(hash_names) / sizeof(hash_names[0]); fprintf(stderr, "usage: %s -t type [ < input ] [ > output ]\n", progname); fprintf(stderr, "%-20s specify the digest method (must be one of\n", "-t type"); ...
...progname + 1 : argv[0]; rv = nss_nodb_init("/tmp"); if (rv != secsuccess) { fprintf(stderr, "%s: nss_init failed in directory %s\n", progname, "/tmp"); return -1; } /* parse command
line arguments */ optstate = pl_createoptstate(argc, argv, "t:"); while ((status = pl_getnextopt(optstate)) == pl_opt_ok) { switch (optstate->option) { case 't': require_arg(optstate->option, optstate->value); hashname = strdup(optstate->value); break; } } if (!hashname) usage(progname); /* convert ...
nss tech note1
if kind contains the sec_asn1_in
line or sec_asn1_pointer modifiers, then it must point to the required subtemplate.
... sec_asn1_in
line: recurse into the specified subtemplate to continue processing.
... sec_asn1_pointer: similar to sec_asn1_in
line, except that the memory in the target will be allocated dynamically and a pointer to the dynamically allocated memory will be stored in the dest struct at the offset.
PKCS #11 Module Specs
a single
line, terminated by a '\n', '\r\n', or '\r' represents a single pkcs #11 library.
... if the library is not specified, the
line represents some application specific meta configuration data.
... other applications and libraries can safely ignore this
line.
NSS Tools modutil
using the security module database (modutil) newsgroup: mozilla.dev.tech.crypto the security module database tool is a command-
line utility for managing pkcs #11 module information within secmod.db files or within hardware tokens.
...if so, the metainfo file for the netscape signing tool would include a
line such as this: + pkcs11_install_script: pk11install the sample script file could contain the following: forwardcompatible { irix:6.2:mips sunos:5.5.1:sparc }platforms { winnt::x86 { modulename { "fortezza module" } modulefile { win32/fort32.dll } defaultmechanismflags{0x0001} defaultcipherflags{0x0001} files { win32/setup.exe { executable ...
...a complex string must notinclude new
lines or carriage returns.) outside of complex strings, all white space (for example, spaces, tabs, and carriage returns) is considered equal and is used only to delimit tokens.
Rhino Examples
sample scripts the unique.js script allows printing unique
lines from a file.
...controlling the javascript engine the runscript class runscript.java is a simple program that executes a script from the command
line.
...the programs may be specified as files on the command
line or by typing interactively while the shell is running.
Invariants
"are we in a request on cx?", where cx is any variable of type jscontext *, is a static yes for most
lines of code where such a variable exists.
... locks "are we holding the runtime-wide gc lock?" is a static yes or no for almost every
line of code.
...js_setwatchpoint violates this rule.) whether a property is locked, and which one, is static information for almost every
line of code.
Running Parsemark
parsemark is a command-
line testing utility for measuring parse/emit performance of the spidermonkey front-end.
... generally you'll want to capture json results for your base
line and compare them to the results for the "current" version of your shell.
... a typical run can be done like so: cd js/src/tests python parsemark.py /path/to/base
line/js /path/to/parse-tests-dir/ -q > /tmp/base
line.json python parsemark.py /path/to/current/js /path/to/parse-tests-dir/ -q > /tmp/current.json python compare_bench.py /tmp/current.json /tmp/base
line.json note: unfortunately the comparisons done are very noisy and not reliable!
Thread Sanitizer
# if it's not already in your $path, then uncomment this next
line: #export llvm_symbolizer="/path/to/llvm-symbolizer" # add tsan to our compiler flags export cflags="-fsanitize=thread -fpic -pie" export cxxflags="-fsanitize=thread -fpic -pie" # additionally, we need the tsan flag during linking.
...ort ldflags="-fsanitize=thread -fpic -pie" # these three are required by tsan ac_add_options --disable-jemalloc ac_add_options --disable-crashreporter ac_add_options --disable-elf-hack # keep symbols to symbolize tsan traces export moz_debug_symbols=1 ac_add_options --enable-debug-symbols ac_add_options --disable-install-strip # settings for an opt build ac_add_options --enable-optimize="-o2 -g
line-tables-only" ac_add_options --disable-debug starting the build process now you start the build process using the regular make -f client.mk command.
... then echo "directory $1 already exists" else autoconf2.13 mkdir $1 cd $1 llvm_root="/path/to/llvm" cc="$llvm_root/build/bin/clang" \ cxx="$llvm_root/build/bin/clang++" \ cflags="-fsanitize=thread -fpic -pie" \ cxxflags="-fsanitize=thread -fpic -pie" \ ldflags="-fsanitize=thread -fpic -pie" \ ../configure --disable-debug --enable-optimize="-o2 -g
line-tables-only" --enable-llvm-hacks --disable-jemalloc make -j 8 fi using llvm symbolizer for faster/better traces by default, tsan traces are symbolized because otherwise, the runtime suppression list wouldn't work.
XForms Accessibility
textarea serves to show/change multi
line text (see the spec, the docs).
... this element is represented by multi
line text field.
...the alert element has role_alert role for both usual and in
line alert elements.
Mork
except when parsing values, whitespace ('\b', '\t', '\r', '\n', '\f', ' ', and '\x7f'),
line continuations ('\\' followed by a new
line), and comments (c++ or c style) can be ignored.
... hex = [0-9a-fa-f]+ name = [a-za-z_?:] [a-za-z_?:+-]* value is a string terminated by ')' (not consumed) where '\' quotes the next metacharacter and '$' quotes the next two hexadecimal digits as a value (e.g., $20 is a space) the first
line in the file is the header.
...using the '\' character quotes the next character; at the end of the
line, it represents a continuation such as that found in c\c++ code.
XPCOM array guide
array guide
lines here are a few simple rules which will keep your code clean and your developers happy: use typesafe arrays like nscomarray<t> nstarray<t> wherever possible.
...it is also usually declared as an in
line member rather than a pointer.
...it is also usually declared as an in
line member rather than a pointer.
How to build an XPCOM component in JavaScript
to begin, include a
line at the top of your interface to import the xpcomutils library: components.utils.import("resource://gre/modules/xpcomutils.jsm"); then implement your interface the same way you did above, except with a few modifications so that xpcomutils can set it up properly: /*********************************************************** class definition *******************************************************...
...****/ //class constructor function helloworld() { // if you only need to access your component from javascript, uncomment the following
line: //this.wrappedjsobject = this; } // class definition helloworld.prototype = { // properties required for xpcom registration: classdescription: "my hello world javascript xpcom component", classid: components.id("{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"), contractid: "@dietrich.ganx4.com/helloworld;1", // [optional] custom factory (an object implementing nsifactory).
...you skipped the sections "defining the interface" and "compiling the typelib" above, you uncommented the "wrappedjsobject"
line in the class constructor, and you removed the "[components.interfaces.nsihelloworld]" argument for the call to xpcomutils.generateqi() in queryinterface, then you can access your component like this: try { var mycomponent = components.classes['@dietrich.ganx4.com/helloworld;1'] .getservice().wrappedjsobject; alert(mycomponent.hello()); } catch...
Creating the Component Code
when it is copied there, run regxpcom from the command
line to register that component and all the others in that directory.
... digging in: required includes and constants let's take a look at the first several
lines of code in the component and discuss what they mean in xpcom.
...uuidgen is a command-
line tool that returns a unique 128-bit number when you call it with no arguments: $ uuidgen ce32e3ff-36f8-425f-94be-d85b26e634ee on windows, a program called guidgen.exe does the same thing and also provides a graphical user interface if you'd rather point and click.
Profiling XPCShell
a profile will look like this: file:///users/michiel/mozilla/tree1/...js/calutils.js [2,25420] createdatetime() {60-62} 579 {min 0, max 3, avg 0, sum 427, self 427} [2,56810] cp_qi() {860-866} 835 {min 0, max 1, avg 0, sum 950, self 950} the first
line tells which file was profiled.
... then, the next
lines shows the amount of time spend in the functions in that file.
... the
line consists of: the compile count of the function; the call count of the function; the functions name; the starting
line number; the ending
line number; the function's size; the amount of time (in milliseconds) the fastest call took; the time of the slowest call; the average time spend; the total time; the time spend in the function itself is given (that is the total time excluding the time spend in functions called from this function).
nsIApplicationCache
netwerk/base/public/nsiapplicationcache.idlscriptable this interface represents an application cache, which stores resources for off
line use.
...clients can open a session with nsicacheservice.createsession() using this client id and a storage policy of store_off
line to access this cache.
... see also off
line resources in firefox nsiapplicationcachenamespace nsiapplicationcachecontainer nsiapplicationcachechannel nsiapplicationcacheservice nsidomoff
lineresourcelist ...
nsICacheService
netwerk/cache/public/nsicacheservice.idlscriptable handles visiting and evicting entries operations along with the creating of cache sessions and creation of temporary client ids operations for off
line caching.
... this is used by the off
line cache.
... the off
line cache lets clients accumulate entries in a temporary client and merge them in as a group using nsioff
linecachesession.mergetemporaryclient().
nsIDOMWindow
method overview nsidomcssstyledeclaration getcomputedstyle(in nsidomelement elt, [optional] in domstring pseudoelt); nsiselection getselection(); void scrollby(in long xscrolldif, in long yscrolldif); void scrollby
lines(in long num
lines); void scrollbypages(in long numpages); void scrollto(in long xscroll, in long yscroll); void sizetocontent(); attributes attribute type description applicationcache nsidomoff
lineresourcelist get the application cache object for this window.
... scrollby
lines() scrolls the window by the specified number of
lines.
... void scrollby
lines( in long num
lines ); parameters num
lines the number of
lines by which to scroll.
nsIEditor
nundo); void redo(in unsigned long count); void canredo(out boolean isenabled, out boolean canredo); void begintransaction(); void endtransaction(); void beginplaceholdertransaction(in nsiatom name); void endplaceholdertransaction(); boolean shouldtxnsetselection(); void setshouldtxnsetselection(in boolean should); in
line spellchecking methods nsiin
linespellchecker getin
linespellchecker(in boolean autocreate); void syncrealtimespell(); void setspellcheckuseroverride(in boolean enable); clipboard methods void cut(); boolean cancut(); void copy(); boolean cancopy(); void paste(in long aselectiontype); boolean canpaste(in long a...
...ing(in astring formattype, in unsigned long flags); example: // flags are declared in base/public/nsidocumentencoder.idl // outputselectiononly = 1, outputformatted = 2, // outputraw = 4, outputbodyonly = 8, // outputpreformatted = 16, outputwrap = 32, // outputformatflowed = 64, outputabsolutelinks = 258, // outputencodew3centities = 256, outputcr
linebreak = 512, // outputlf
linebreak = 1024, outputnoscriptcontent = 2048, // outputnoframescontent = 4096, outputnoformattinginpre = 8192, // outputencodebasicentities=16384, outputencodelatin1entities=32768, // outputencodehtmlentities=65536, outputpersistnbsp=131072 editorapi.outputtostring('text/html', 2); editorapi.outputtostring('text/plain', 4); // output the body tag, body childr...
...content() ; void debugunittests(out long outnumtests, out long outnumtestsfailed); [notxpcom] boolean ismodifiablenode(in nsidomnode anode); constants load flags constant value description enone 0 enext 1 eprevious 2 enextword 3 epreviousword 4 etobeginningof
line 5 etoendof
line 6 attributes attribute type description contentsmimetype string the mime type of the document.
nsIEditorIMESupport
handles the start of in
line 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 in
line input composition.
...sets the in
line input composition string.
nsIEditorMailSupport
edobjects(); nsidomnode insertascitedquotation(in astring aquotedtext, in astring acitation, in boolean ainserthtml); nsidomnode insertasquotation(in astring aquotedtext); void inserttextwithquotations(in domstring astringtoinsert); void pasteascitedquotation(in astring acitation, in long aselectiontype); void pasteasquotation(in long aselectiontype); void rewrap(in boolean arespectnew
lines); void stripcites(); methods getembeddedobjects() get a list of img and object tags in the current document.
...inserttextwithquotations() inserts a plain text string at the current location, with special processing for
lines beginning with ">", which will be treated as mail quotes and inserted as plain text quoted blocks.
...void rewrap( in boolean arespectnew
lines ); parameters arespectnew
lines try to maintain new
lines in the original?
nsIFeedProgressListener
duced gecko 1.8 inherits from: nsifeedresultlistener last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void handleentry(in nsifeedentry entry, in nsifeedresult result); void handlefeedatfirstentry(in nsifeedresult result); void handlestartfeed(in nsifeedresult result); void reporterror(in astring errortext, in long
linenumber, in boolean bozo); methods handleentry() called after each entry or item is processed.
... void reporterror( in astring errortext, in long
linenumber, in boolean bozo ); parameters errortext a short description of the error.
...
linenumber the
line on which the error occurred.
nsIMsgDBHdr
linecount unsigned long indicates the size of the message body in number of
lines.
... messageoffset unsigned long indicates the position of the off
line copy of an imap or news messages within the off
line store.
... off
linemessagesize unsigned long indicates the size of the off
line copy of an imap or news message.
nsIProcess
args an array of count arguments, using the native character set, to be passed to the executable on its command
line.
... args an array of count arguments, using utf-16, to be passed to the executable on its command
line.
...// second and third params are used to pass command-
line arguments // to the process.
nsIScriptableIO
amode a space-de
lineated string of mode terms controlling the manner in which the stream is accessed.
... amode a space-de
lineated string of mode terms controlling the manner in which the stream is accessed.
...ppend("myobject.json"); if (!file.exists()) file.create(ci.nsifile.normal_file_type, 0600); var stream = io.newoutputstream(file, "text write create truncate"); stream.writestring(json); stream.close(); example: reading from a file var file = io.getfile("profile", null); file.append("localstore.json"); if (file.exists()) { var stream = io.newinputstream(file, "text"); var json = stream.read
line(); stream.close(); } see also nsifile, nsiinputstream, nsioutputstream ...
nsITaskbarTabPreview
method overview void ensureregistration(); violates the xpcom interface guide
lines nativewindow gethwnd(); violates the xpcom interface guide
lines void move(in nsitaskbartabpreview anext); attributes attribute type description icon imgicontainer the icon displayed next to the title in the preview.
... methods violates the xpcom interface guide
lines ensureregistration() used internally to ensure that the taskbar knows about this preview.
... violates the xpcom interface guide
lines gethwnd() used internally to obtain the handle to the proxy window for the preview.
nsITreeBoxObject
erface("components.interfaces.nsitreeboxobject"); or simply: let boxobject = tree.treeboxobject; method overview long getfirstvisiblerow(); long getlastvisiblerow(); long getpagelength(); void ensurerowisvisible(in long index); void ensurecellisvisible(in long row, in nsitreecolumn col); void scrolltorow(in long index); void scrollby
lines(in long num
lines); void scrollbypages(in long numpages); void scrolltocell(in long row, in nsitreecolumn col); void scrolltocolumn(in nsitreecolumn col); void scrolltohorizontalposition(in long horizontalposition); void invalidate(); void invalidatecolumn(in nsitreecolumn col); void invalidaterow(in long index); void invalid...
... void scrolltorow(in long index); parameters index the index of the row scrollby
lines() scroll the tree up or down by num
lines
lines.
... void scrollby
lines(in long num
lines); parameters num
lines the number of
lines to scroll.
Reference Manual
nscomptr<nsifoo> foo = bar; // ns_assertion: "queryinterface needed" // ...even assuming you can get the
line to compile // (either by casting, or because the types are related by c ) this invariant is relaxed for nscomptr<nsisupports>.
...however, the routines that would normally be factored into a base class now must become template-specific in
lines.
...all nscomptrs constructors and assignment operators are in
line.
Using the clipboard
trans.settransferdata("text/unicode", supportsstring(str), str.length * 2); the first
line gets the transferring component which implements nsitransferable.
... you can repeat the last two
lines and call adddataflavor and settransferdata for multiple flavors.
...next, we need to get the data from the clipboard: services.clipboard.getdata(trans, services.clipboard.kglobalclipboard); var str = {}; var strlength = {}; trans.gettransferdata("text/unicode", str, strlength); the first
line performs the opposite of setdata.
Working with Multiple Versions of Interfaces
to do this i used the accessibility framework: hwnd gethwnd(nsidomnode *node){ hwnd self = null; nsresult rv; nscomptr<nsiaccessibleretrieval> refp; refp = do_createinstance( "@mozilla.org/accessibleretrieval;1", &rv); if (ns_failed(rv)){ return self; } //
line 6.
... the optimist's solution the first thing we do is replace
line 6 above by our plan b: if (ns_failed(rv)){ return gethwndb(node); } //new
line 6.
...i did have to delve into my old versions and change: ns_define_static_iid_accessor(...) to ns_declare_static_iid_accessor(...) this ug
liness aside, my plan b routine now looks like: hwnd gethwndb(nsidomnode *node){ hwnd self = null; nsresult rv; nscomptr<nsicomponentmanager> compmgr; rv = ns_getcomponentmanager(getter_addrefs(compmgr)); if (ns_failed(rv)){ return self; } nscomptr<nsiaccessibleretrieval_old> refp; //n.b.
Xptcall Porting Guide
in
line assembly language is used here, but it is equally valid to use separate assembly language source files.
...both of these examples use in
line assembly language.
...i opted to use in
line assembler for the gcc linux x86 port.
Testing Mozilla code
fuzzing interfacethe fuzzing interface is glue code living in mozilla-central in order to make it easier for developers and security researchers to test c/c++ code with either libfuzzer or afl-fuzz.measuring code coverage on firefoxcode coverage essentially is about measuring how often certain
lines are hit, branches taken or conditions met in a program, given some test that you run on it.
... there are different types of coverage metrics (see also the wikipedia entry), but when we speak of code coverage here, we usually mean
line and branch coverage.
... this type of coverage is only concerned with hit counts for
lines and branches.the valgrind test jobthe valgrind test job builds the browser and runs it under valgrind, which can detect various common memory-related errors.
The libmime module
there is one header file and one source file for each class (for example, the mimein
linetext class is defined in "mimetext.h" and "mimetext.c".) each header file follows the following boiler-plate form: typedefs these come first to avoid circular dependencies.
...| | | |--- mimemultipartrelated | | | | | |--- mimemultipartappledouble | | | | | |--- mimesunattachment | | | | | |--- mimemultipartsigned (abstract) | | | |--- mimemessage | | | |--- mimeuntypedtext | |--- mimeleaf (abstract) | | | |--- mimein
linetext (abstract) | | | | | |--- mimein
linetextplain | | | | | |--- mimein
linetexthtml | | | | | |--- mimein
linetextrichtext | | | | | | | |--- mimein
linetextenriched | | | | | |--- mimein
linetextvcard | | | | | |--- mimein
linetextcalendar |...
... | | |--- mimein
lineimage | | | |--- mimeexternalobject | |--- mimeexternalbody ...
customDBHeaders Preference
in addition to the preference out
lined in setting up extension development environment, you'll want to add the following preferences: // this allows you to add extra headers while composing messages user_pref("mail.compose.other.header", "x-superfluous,x-other,x-whatever"); // this enables the preservation of custom headers as incoming mail is processed user_pref( "mailnews.customdbheaders", "x-superfluous,x-other"); important: pl...
...when using the latest releases, the
line should look like: // space-delimited list in the latest code!
...' encoding='utf-8'?> <rdf xmlns='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:em='http://www.mozilla.org/2004/em-rdf#'> <description about='urn:mozilla:install-manifest'> <em:id>superfluous@yoursite.com</em:id> <em:version>0.1.1</em:version> <em:type>2</em:type> <!-- 2 is type 'extension' --> <em:targetapplication> <description> <!-- this next
line identifies tbird as target --> <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id> <em:minversion>2*</em:minversion> <em:maxversion>3.0.0.*</em:maxversion> </description> </em:targetapplication> <em:name>superfluous</em:name> <em:description>test superfluous extension</em:description> <em:creator>garrett comeaux</em:creator> </description>...
Using the Mozilla symbol server
troubleshooting: symbols will not download if symbols will not download no matter what you do, the problem may be that internet explorer has been set to the work off
line mode.
...even using the command
line with symchk.exe to download symbols will fail.
...check the file menu of internet explorer to ensure "work off
line" is unchecked.
Working with data
arrays of pointers if you need to work with c functions that accept arrays of pointers as inputs, you can construct an array of pointers like this: var ptrarraytype = ctypes.char.ptr.array(5); var myarray = ptrarraytype(); var somecfunction = library.declare("somecfunction", ctypes.default_abi, ctypes.void_t, ctypes.char.ptr.array() /*same as ctypes.char.ptr.ptr*/); somecfunction(myarray);
line 1 declares a new array type, capable of containing 5 arrays of pointers to c characters.
...the next
line instantiates an object of that type, creating a new array.
...
line 4 declares the c function that accepts the array as an input, and the last
line calls that function.
Plug-in Basics - Plugins
for more information about helper applications, refer to the netscape on
line help.
... the following stages out
line the life of a plug-in from loading to deletion: when gecko encounters data of a mime type registered for a plug-in (either embedded in an html page or in a separate file), it dynamically loads the plug-in code into memory, if it hasn't been loaded already, and it creates a new instance of the plug-in.
... var plugin = mimetype.enabledplugin; if (plugin) { // yes, so show the data in-
line document.writeln("here\'s a movie: <object data='mymovie.swf' height='100' width='100'></object>"); } else { // no, so provide a link to the data document.writeln("<a href='mymovie.swf'>click here</a> to see a movie."); } } else { // no, so tell them so document.writeln("sorry, can't show you this movie."); } overview of plug-in structure this section is an overvi...
Plug-in Development Overview - Plugins
displaying messages on the status
line functionally, your plug-in is seamlessly integrated into the browser and operates as an addition to current browser capabilities.
... to make the user feel that the plug-in is part of the the browser user interface, your plug-in can emulate the browser behavior by providing status
line messages.
... use the npn_status method to display a message on the status
line.
Gecko Plugin API Reference - Plugins
te attributes using the embed element for plug-in display using custom embed attributes plug-in references plug-in development overview writing plug-ins registering plug-ins ms windows unix mac os x drawing a plug-in instance handling memory sending and receiving streams working with urls getting version and ui information displaying messages on the status
line making plug-ins scriptable building plug-ins building, platforms, and compilers building carbonized plug-ins for mac os x type libraries installing plug-ins native installers xpi plug-ins installations plug-in installation and the windows registry initialization and destruction initialization instance creation instance destruction shutdown initialize an...
...to the stream deleting the stream example of sending a stream urls getting urls getting the url and displaying the page posting urls posting data to an http server uploading files to an ftp server sending mail memory allocating and freeing memory mac os flushing memory (mac os only) version, ui, and status information displaying a status
line message getting agent information getting the current version finding out if a feature exists reloading a plug-in plug-in side plug-in api this chapter describes methods in the plug-in api that are available from the plug-in object.
... npn_status displays a message on the status
line of the browser window.
Debugging service workers - Firefox Developer Tools
registration is done with a block of code along these
lines, using the register() method: if('serviceworker' in navigator) { navigator.serviceworker .register('sw.js') .then(function() { console.log('service worker registered'); }); } if you get the path wrong, for example, you'll get an error in the web console giving you a hint as to what's wrong, which depends on what exactly is wrong with the code.
... testing a service worker cache if you are using your service worker to store your site assets in cache storage (using the cache api), which is essential for creating off
line apps, it can be annoying to test the cache.
... it is also worth knowing that if you are testing an app's off
line capabilities, you'll be able to see whether requests are being retrieved from a service worker-initiated cache rather than from the network by looking at network monitor.
Use watchpoints - Firefox Developer Tools
by setting a watchpoint on the property, rather than a breakpoint at a particular
line, you can discover where that access occurs.
... view a watchpoint when the watched property is accessed in the way specified by the watchpoint type (get or set), the debugger pauses, enabling you to see
line of code responsible, and to inspect anything else you wish at that time.
... in the following screenshot, the debugger pauses at
line 7, where obj.a is set.
Set an XHR breakpoint - Firefox Developer Tools
click on an item in the call stack to jump to the associated
line in the code display.
... in
line variable preview new in firefox 71, the source pane now gives you an instant preview of the variables on each
line of code you've stepped through.
... see set a breakpoint > in
line variable preview for more information.
Debugger.Frame - Firefox Developer Tools
"base
line": a frame running in the unoptimizing, base
line jit.
... "wasm": a frame running in webassembly base
line jit.
...
linenumber the
line number at which the evaluated code should be claimed to begin withinurl.
Reposition elements in the page - Firefox Developer Tools
if the element is absolutely positioned, dashed
lines are shown representing the offset parent.
... for relatively positioned elements the dashed
lines indicate the original position of the node.
... the offsets are indicated by a
line and a tooltip for each side.
Animating CSS properties - Firefox Developer Tools
there are a number of elements, and we've added a
linear-gradient background and a box-shadow to each element, because they are both relatively expensive effects to paint.
...exactly what you'll see depends a lot on your machine and system load, but it will be something like this: this is showing three distinct views: (a) an overview of the waterfall, (b) the frame rate, and (c) the time
line details.
... waterfall the time
line view shows the reason for the improved frame rate.
Tips - Firefox Developer Tools
right-click a node and click "use in console" to command
line as tempn variable.
... web console in all panels: esc opens the split console; useful when debugging, or inspecting nodes in the command
line: $0 references the currently selected node.
... press ctrl+l to go to a specific
line.
Web Console Helpers - Firefox Developer Tools
the commands the javascript command
line provided by the web console offers a few built-in helper functions that make certain tasks easier.
... $_ stores the result of the last expression executed in the console's command
line.
... clearhistory() just like a normal command
line, the console command
line remembers the commands you've typed.
Web console keyboard shortcuts - Firefox Developer Tools
command windows macos linux open the web console ctrl + shift + k cmd + opt + k ctrl + shift + k search in the message display pane ctrl + f cmd + f ctrl + f open the object inspector pane ctrl + click ctrl + click ctrl + click clear the object inspector pane esc esc esc focus on the command
line ctrl + shift + k cmd + opt + k ctrl + shift + k clear output ctrl + shift + l ctrl + l from firefox 67: cmd + k ctrl + shift + l command
line interpreter these shortcuts apply when you're in the command
line interpreter.
... command windows macos linux scroll to start of console output (only if the command
line is empty) home home home scroll to end of console output (only if the command
line is empty) end end end page up through console output page up page up page up page down through console output page down page down page down go backward through command history up arrow up arrow up arrow go forward through command history down arrow down arrow down arrow initiate reverse search through command history/step backwards through matching commands f9 ctrl + r f9 step forward through matching command history (after initiating reverse search) shift + f9 ctrl +...
... s shift + f9 move to the beginning of the
line home ctrl + a ctrl + a move to the end of the
line end ctrl + e ctrl + e execute the current expression enter return enter add a new
line, for entering multi
line expressions shift + enter shift + return shift + enter autocomplete popup these shortcuts apply while the autocomplete popup is open: command windows macos linux choose the current autocomplete suggestion tab tab tab cancel the autocomplete popup esc esc esc move to the previous autocomplete suggestion up arrow up arrow up arrow move to the next autocomplete suggestion down arrow down arrow down arrow page u...
Web Console UI Tour - Firefox Developer Tools
message display pane this is where the messages appear, both those generated by the code in the page, and those generated by the commands entered on the command
line.
... command
line the command
line starts with double angle brackets (>>).
... in firefox 71 onwards, there is a new "split pane" icon on the right hand side of the command
line — clicking this will open the new console multi-
line mode.
AddressErrors - Web APIs
properties address
line a domstring which, if present, indicates that the address
line property of the paymentaddress could not be validated.
...a description of the total amount being requested (including a label and the currency used), a list of the
line items (in this case only one, "original donation amount"), and a list of shipping options available; in this case only one.
... note: if you have content blocking features enabled in your browser, the example may not work in
line below.
AnalyserNode.fftSize - Web APIs
for more complete applied examples/information, check out our voice-change-o-matic demo (see app.js
lines 128–205 for relevant code).
...yser.frequencybincount ; var dataarray = new uint8array(bufferlength); analyser.getbytetimedomaindata(dataarray); // draw an oscilloscope of the current audio source function draw() { drawvisual = requestanimationframe(draw); analyser.getbytetimedomaindata(dataarray); canvasctx.fillstyle = 'rgb(200, 200, 200)'; canvasctx.fillrect(0, 0, width, height); canvasctx.
linewidth = 2; canvasctx.strokestyle = 'rgb(0, 0, 0)'; canvasctx.beginpath(); var slicewidth = width * 1.0 / bufferlength; var x = 0; for(var i = 0; i < bufferlength; i++) { var v = dataarray[i] / 128.0; var y = v * height/2; if(i === 0) { canvasctx.moveto(x, y); } else { canvasctx.
lineto(x, y); } x...
... += slicewidth; } canvasctx.
lineto(canvas.width, canvas.height/2); canvasctx.stroke(); }; draw(); specifications specification status comment web audio apithe definition of 'fftsize' in that specification.
Attr - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco...
...,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="#f4f7f...
...8" stroke="#d4dde4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">attr</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: starting in gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4), a number of deprecated properties and methods output warning messages to the console.
AudioBufferSourceNode - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" ...
.../><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">audionode</text></a><poly
line 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-base
line="middle">audioscheduledsourcenode</text></a><poly
line 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-base
line="middle">audiobuffersourcenode</...
AudioContext - Web APIs
it's recommended to create one audiocontext and reuse it instead of initializing a new one each time, and it's ok to use a single audiocontext for several different audio source and pipe
line concurrently.
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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/audio...
...context" 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-base
line="middle">audiocontext</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor audiocontext() creates and returns a new audiocontext object.
BaseAudioContext.createAnalyser() - Web APIs
for more complete applied examples/information, check out our voice-change-o-matic demo (see app.js
lines 128–205 for relevant code).
...lyser.frequencybincount; var dataarray = new uint8array(bufferlength); analyser.getbytetimedomaindata(dataarray); // draw an oscilloscope of the current audio source function draw() { drawvisual = requestanimationframe(draw); analyser.getbytetimedomaindata(dataarray); canvasctx.fillstyle = 'rgb(200, 200, 200)'; canvasctx.fillrect(0, 0, width, height); canvasctx.
linewidth = 2; canvasctx.strokestyle = 'rgb(0, 0, 0)'; canvasctx.beginpath(); var slicewidth = width * 1.0 / bufferlength; var x = 0; for(var i = 0; i < bufferlength; i++) { var v = dataarray[i] / 128.0; var y = v * height/2; if(i === 0) { canvasctx.moveto(x, y); } else { canvasctx.
lineto(x, y); } x...
... += slicewidth; } canvasctx.
lineto(canvas.width, canvas.height/2); canvasctx.stroke(); }; draw(); specifications specification status comment web audio apithe definition of 'createanalyser()' in that specification.
Blob() - Web APIs
endings optional how to interpret new
line characters (\n) within the contents, if the data is text.
... the default value, transparent, copies new
line characters into the blob without changing them.
... to convert new
lines to the host system's native convention, specify the value native.
Using dynamic styling information - Web APIs
however, this property only returns style attributes that have been set in-
line (e.g, <td style="background-color: lightblue"> returns the string "background-color:lightblue", or directly for that element using element.style.propertyname, even though there may be other styles on the element from a stylesheet).
...it represents the in-
line styles on a particular element.
...if the some-element element above had an in–
line style attribute of say style="font-size: 18px", that value would be removed by the use of setattribute.
Using the CSS properties and values API - Web APIs
in this example, the custom property --registered has been registered using the syntax <color> and then used in a
linear gradient.
... .registered { --registered: #c0ffee; background-image:
linear-gradient(to right, #fff, var(--registered)); transition: --registered 1s ease-in-out; } .registered:hover, .registered:focus { --registered: #b4d455; } .unregistered { --unregistered: #c0ffee; background-image:
linear-gradient(to right, #fff, var(--unregistered)); transition: --unregistered 1s ease-in-out; } .unregistered:hover, .unregistered:focus { --unregistered: #b4d455; } <button class="registered">background registered</button> <button class="unregistered">background not registered</button> .registered { --registe...
...red: #c0ffee; background-image:
linear-gradient(to right, #fff, var(--registered)); transition: --registered 1s ease-in-out; } .registered:hover, .registered:focus { --registered: #b4d455; } .unregistered { --unregistered: #c0ffee; background-image:
linear-gradient(to right, #fff, var(--unregistered)); transition: --unregistered 1s ease-in-out; } .unregistered:hover, .unregistered:focus { --unregistered: #b4d455; } button { height: 40vh; display: block; width: 100%; font-size: 3vw; } window.css.registerproperty({ name: '--registered', syntax: '<color>', inherits: false, initialvalue: 'red', }); while not functionally accurate, a good way to think about the difference between the unregistered property in the above example and the registered property is t...
CanvasRenderingContext2D.beginPath() - Web APIs
syntax void ctx.beginpath(); examples creating distinct paths this example creates two paths, each of which contains a single
line.
... html <canvas id="canvas"></canvas> javascript the beginpath() method is called before beginning each
line, so that they may be drawn with different colors.
... const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); // first path ctx.beginpath(); ctx.strokestyle = 'blue'; ctx.moveto(20, 20); ctx.
lineto(200, 20); ctx.stroke(); // second path ctx.beginpath(); ctx.strokestyle = 'green'; ctx.moveto(20, 20); ctx.
lineto(120, 120); ctx.stroke(); result specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d.beginpath' in that specification.
CanvasRenderingContext2D.fillText() - Web APIs
the text is rendered using the font and text layout configuration as defined by the font, textalign, textbase
line, and direction properties.
... to draw the out
lines of the characters in a string, call the context's stroketext() method.
...the text is rendered using the settings specified by font, textalign, textbase
line, and direction.
CanvasRenderingContext2D.moveTo() - Web APIs
html <canvas id="canvas"></canvas> javascript the first
line begins at (50, 50) and ends at (200, 50).
... the second
line begins at (50, 90) and ends at (280, 120).
... var canvas = document.getelementbyid('canvas'); var ctx = canvas.getcontext('2d'); ctx.beginpath(); ctx.moveto(50, 50); // begin first sub-path ctx.
lineto(200, 50); ctx.moveto(50, 90); // begin second sub-path ctx.
lineto(280, 120); ctx.stroke(); result specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d.moveto' in that specification.
CanvasRenderingContext2D.stroke() - Web APIs
the canvasrenderingcontext2d.stroke() method of the canvas 2d api strokes (out
lines) the current or given path with the current stroke style.
... const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); // first sub-path ctx.
linewidth = 26; ctx.strokestyle = 'orange'; ctx.moveto(20, 20); ctx.
lineto(160, 20); ctx.stroke(); // second sub-path ctx.
linewidth = 14; ctx.strokestyle = 'green'; ctx.moveto(20, 80); ctx.
lineto(220, 80); ctx.stroke(); // third sub-path ctx.
linewidth = 4; ctx.strokestyle = 'pink'; ctx.moveto(20, 140); ctx.
lineto(280, 140); ctx.stroke(); result stroking and filling if you want to both stroke a...
... html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.
linewidth = 16; ctx.strokestyle = 'red'; // stroke on top of fill ctx.beginpath(); ctx.rect(25, 25, 100, 100); ctx.fill(); ctx.stroke(); // fill on top of stroke ctx.beginpath(); ctx.rect(175, 25, 100, 100); ctx.stroke(); ctx.fill(); result specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d.stroke' in that specification.
CanvasRenderingContext2D.textAlign - Web APIs
"start" the text is aligned at the normal start of the
line (left-aligned for left-to-right locales, right-aligned for right-to-left locales).
... "end" the text is aligned at the normal end of the
line (right-aligned for left-to-right locales, left-aligned for right-to-left locales).
... html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); canvas.width = 350; const ctx = canvas.getcontext('2d'); const x = canvas.width / 2; ctx.beginpath(); ctx.moveto(x, 0); ctx.
lineto(x, canvas.height); ctx.stroke(); ctx.font = '30px serif'; ctx.textalign = 'left'; ctx.filltext('left-aligned', x, 40); ctx.textalign = 'center'; ctx.filltext('center-aligned', x, 85); ctx.textalign = 'right'; ctx.filltext('right-aligned', x, 130); result direction-dependent text alignment this example demonstrates the two direction-dependent values of the textalign property: "start" a...
Compositing and clipping - Web APIs
function draw() { var ctx = document.getelementbyid('canvas').getcontext('2d'); ctx.fillrect(0, 0, 150, 150); ctx.translate(75, 75); // create a circular clipping path ctx.beginpath(); ctx.arc(0, 0, 60, 0, math.pi * 2, true); ctx.clip(); // draw background var lingrad = ctx.create
lineargradient(0, -75, 0, 75); lingrad.addcolorstop(0, '#232256'); lingrad.addcolorstop(1, '#143778'); ctx.fillstyle = lingrad; ctx.fillrect(-75, -75, 150, 150); // draw stars for (var j = 1; j < 50; j++) { ctx.save(); ctx.fillstyle = '#fff'; ctx.translate(75 - math.floor(math.random() * 150), 75 - math.floor(math.random() * 150)); drawstar(ctx, math.flo...
...or(math.random() * 4) + 2); ctx.restore(); } } function drawstar(ctx, r) { ctx.save(); ctx.beginpath(); ctx.moveto(r, 0); for (var i = 0; i < 9; i++) { ctx.rotate(math.pi / 5); if (i % 2 === 0) { ctx.
lineto((r / 0.525731) * 0.200811, 0); } else { ctx.
lineto(r, 0); } } ctx.closepath(); ctx.fill(); ctx.restore(); } <canvas id="canvas" width="150" height="150"></canvas> draw(); in the first few
lines of code, we draw a black rectangle the size of the canvas as a backdrop, then translate the origin to the center.
...you can see this clearly in the
linear gradient that's drawn next.
Drawing text - Web APIs
textbase
line = value base
line alignment setting.
... the following diagram from the whatwg demonstrates the various base
lines supported by the textbase
line property.
... a textbase
line example edit the code below and see your changes update live in the canvas: ctx.font = '48px serif'; ctx.textbase
line = 'hanging'; ctx.stroketext('hello world', 0, 100); playable code <canvas id="canvas" width="400" height="200" class="playable-canvas"></canvas> <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"> ctx.font = "48px serif"; ctx.textbase
line = "hanging"; ctx.stroketext("hello world", 0, 100);</textarea> var canvas = document.getelementbyid('canvas'); var ctx = canvas.getcontext('2d'); var textarea = document.getelementbyid('code'); var reset = document.getelementbyid('reset'); var edit = document.getelementbyid('edit'); var code ...
CharacterData - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,...
...andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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" fil...
...l="#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-base
line="middle">characterdata</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, node, and implements the childnode and nondocumenttypechildnode interface.
Comment - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size=...
..."12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="26...
...6" 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-base
line="middle">characterdata</text></a><poly
line 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-base
line="middle">comment</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} proper...
Document.writeln() - Web APIs
writes a string of text followed by a new
line character to a document.
... syntax document.writeln(
line); parameters
line is string containing a
line of text.
... example document.writeln("<p>enter password:</p>"); notes document.writeln is the same as document.write but adds a new
line.
DocumentFragment - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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...
...fragment" 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-base
line="middle">documentfragment</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor documentfragment() creates and returns a new documentfragment object.
ErrorEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="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-base
line="middle">event</text></a><poly
line points="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><
line x1="86" y...
...1="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-base
line="middle">errorevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits properties from its parent event.
... errorevent.
lineno read only is an integer containing the
line number of the script file on which the error occurred.
Using files from web applications - Web APIs
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; clip: rect(1px, 1px, 1px, 1px); } /* separate rule for compatibility, :focus-within is required on modern firefox and chrome */ input.visually-hidden:focus + label { out
line: thin dotted; } input.visually-hidden:focus-within + label { out
line: thin dotted; } there is no need to add javascript code to call fileelem.click().
...you need to provide a visual cue for the focus status of the hidden input field on its label, be it an out
line as shown above, or background-color or box-shadow.
...this allows us to select all of the images the user has chosen for uploading using document.queryselectorall(), like this: function sendfiles() { const imgs = document.queryselectorall(".obj"); for (let i = 0; i < imgs.length; i++) { new fileupload(imgs[i], imgs[i].file); } }
line 2 fetches a nodelist, called imgs, of all the elements in the document with the css class obj.
FocusEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line points="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><li...
...ne 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-base
line="middle">uievent</text></a><poly
line 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-bas...
...e
line="middle">focusevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor focusevent() creates a focusevent event with the given parameters.
Frame Timing API - Web APIs
the observer (callback) will be notified when new "frame" events are added to the browser's performance time
line and the frame's duration (length of time) will be available.
...when one of those event types is recorded in the browser's performance time
line, the application is notified of the event via the observer's callback function that was specified when the observer was created.
...when the browser adds a new frame to the performance time
line, the specified observer callback will be invoked.
HTMLDocument - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line...
...="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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="12p...
...x" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">document</text></a><poly
line 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-base
line="middle">htmldocument</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} for the purposes of web development, you can generally think of htmldocument as an alias for document, upon which htmldoc...
Recommended Drag Types - Web APIs
to drag multiple links, separate each link inside the text/uri-list data with a crlf
linebreak.
...
lines that begin with a number sign (#) are comments, and should not be considered urls.
...it holds the urls of links followed by their titles, separated by a
linebreak.
IDBObjectStore.add() - Web APIs
dataerror any of the following conditions apply: the object store uses in-
line keys or has a key generator, and a key parameter was provided.
... the object store uses out-of-
line keys and has no key generator, and no key parameter was provided.
... the object store uses in-
line keys but no key generator, and the object store's key path does not yield a valid key.
IDBObjectStore.put() - Web APIs
dataerror any of the following conditions apply: the object store uses in-
line keys or has a key generator, and a key parameter was provided.
... the object store uses out-of-
line keys and has no key generator, and no key parameter was provided.
... the object store uses in-
line keys but no key generator, and the object store's key path does not yield a valid key.
InstallEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 8.571428571428571%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 60" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">extendableevent</text></a><poly
line 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/inst...
...allevent" 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-base
line="middle">installevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor installevent.installevent() creates a new installevent object.
KeyboardEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">uievent</text></a><poly
line 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" tar...
...get="_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-base
line="middle">keyboardevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor keyboardevent() creates a new keyboardevent object.
MouseEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">uievent</text></a><poly
line 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-base
line="middle">mouseevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor mouseevent() creates a mouseevent object.
Navigator.mozIsLocallyAvailable() - Web APIs
syntax navigator.mozislocallyavailable(uri, ifoff
line); parameters uri the uri of the resource whose availability is to be checked, as a string.
... ifoff
line allows you to specify whether or not the off
line resources cache should be checked; specify true to consider the off
line resources cache.
... example var available = navigator.mozislocallyavailable("my-image-file.png", true); if (available) { /* the off
line resource is present */ } else { console.log("certain needed resources are not available off
line"); } specifications not part of any specifications.
Node - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties in addition to the properties below, node inherits properties from its parent, eventt...
.../span> <span>bar</span> <span>baz</span> </div> const box = document.getelementbyid("box") eachnode(box, function(node) { if (null != node.textcontent) { console.log(node.textcontent) } }) the above will result in the following strings printing to the user's console: "\n\t", "foo", "\n\t", "bar", "\n\t", "baz" note: whitespace forms part of a text node, meaning indentation and new
lines form separate text between the element nodes.
OES_texture_float - Web APIs
limitation:
linear filtering
linear filtering on floating-point textures is not allowed with this extension.
... if you set the magnification or minification filter in the webglrenderingcontext.texparameter() method to one of gl.
linear, gl.
linear_mipmap_nearest, gl.nearest_mipmap_
linear, or gl.
linear_mipmap_
linear, and use floating-point textures, the texture will be marked as incomplete.
... to use
linear filtering on floating-point textures, enable the oes_texture_float_
linear extension in addition to this extension.
OES_texture_half_float - Web APIs
limitation:
linear filtering
linear filtering on half floating-point textures is not allowed with this extension.
... if you set the magnification or minification filter in the webglrenderingcontext.texparameter() method to one of gl.
linear, gl.
linear_mipmap_nearest, gl.nearest_mipmap_
linear, or gl.
linear_mipmap_
linear, and use half floating-point textures, the texture will be marked as incomplete.
... to use
linear filtering on half floating-point textures, enable the oes_texture_half_float_
linear extension in addition to this extension.
Path2D - Web APIs
it tries to draw a straight
line from the current point to the start.
... path2d.
lineto() connects the last point in the subpath to the (x, y) coordinates with a straight
line.
... path2d.arcto() adds a circular arc to the path with the given control points and radius, connected to the previous point by a straight
line.
Performance - Web APIs
it's part of the high resolution time api, but is enhanced by the performance time
line api, the navigation timing api, the user timing api, and the resource timing api.
... performance time
line level 2the definition of 'performance extensions' in that specification.
... performance time
linethe definition of 'performance extensions' in that specification.
PerformanceEntry - Web APIs
the performanceentry object encapsulates a single performance metric that is part of the performance time
line.
... performance time
line level 2the definition of 'performanceentry' in that specification.
... performance time
linethe definition of 'performanceentry' in that specification.
PerformanceMark - Web APIs
entries of this type are created by calling performance.mark() to add a named domhighrestimestamp (the mark) to the browser's performance time
line.
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink: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-base
line="middle">performanceentry</text></a><poly
line 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-base
line="middle">performancemark</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but it extends the following performanceentry properties by qualifying/constraining the properties as follows: performanceentry.entrytype returns "mark".
PerformanceMeasure - Web APIs
entries of this type are created by calling performance.measure() to add a named domhighrestimestamp (the measure) between two marks to the browser's performance time
line.
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink: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-base
line="middle">performanceentry</text></a><poly
line 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-base
line="middle">performancemeasure</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but it extends the following performanceentry properties by qualifying/constrainting the properties as follows: performanceentry.entrytype returns "measure".
PerformanceResourceTiming - Web APIs
the interface's properties create a resource loading time
line with high-resolution timestamps for network events such as redirect start and end times, fetch start, dns lookup start and end times, response start and end times, etc..
... <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink: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-base
line="middle...
...">performanceentry</text></a><poly
line 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-base
line="middle">performanceresourcetiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} note: this feature is available in web workers.
ProcessingInstruction - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 10%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 700 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y...
...="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">characterdata</text></a><poly
line 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-base
line="middle">processinginstruction</text></a></svg></div> a:hover text { fill: ...
RTCError - Web APIs
sdp
linenumber read only if errordetail is sdp-syntax-error, this property is a long integer identifying the
line number of the sdp on which the syntax error occurred.
... datachannel.addeventlistener("error", (event) => { let error = event.error; if (error.errordetail === "sdp-syntax-error") { let err
line = error.sdp
linenumber; let errmessage = error.message; let alertmessage = `a syntax error occurred interpreting
line ${err
line} of the sdp: ${errmessage}`; showmyalertmessage("data channel error", alertmessage); } else { terminatemyconnection(); } }); if the error is an sdp syntax error—indicated by its errordetail property being sdp-syntax-error—, a message string is c...
...onstructed to present the error message and the
line number within the sdp at which the error occurred.
RTCErrorEvent.error - Web APIs
sdp
linenumber read only if errordetail is sdp-syntax-error, this property is a long integer identifying the
line number of the sdp on which the syntax error occurred.
... datachannel.addeventlistener("error", (event) => { let error = event.error; if (error.errordetail === "sdp-syntax-error") { let err
line = error.sdp
linenumber; let errmessage = error.message; let alertmessage = `a syntax error occurred interpreting
line ${err
line} of the sdp: ${errmessage}`; showmyalertmessage("data channel error", alertmessage); } else { terminatemyconnection(); } }); if the error is an sdp syntax error—indicated by its errordetail property being sdp-syntax-error—, a message string is c...
...onstructed to present the error message and the
line number within the sdp at which the error occurred.
RTCIceCandidate.component - Web APIs
usage notes consider this sdp attribute
line (a-
line): a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host this is an ice candidate a-
line, whose foundation is 4234997325.
... the next field on the a-
line, "1", is the component id.
...if this value were instead "2", the a-
line would be describing an rtcp candidate, and compoment would be "rtcp".
RTCIceCandidate.port - Web APIs
as is the case with most of rtcicecandidate's properties, the value of port is extracted from the candidate a-
line string specified when creating the rtcicecandidate.
... the a-
line string is obtained either from the rtcicecandidateinit property candidate or from a-
line string passed into the constructor upon using new rtcicecandidate().
... usage notes consider this sdp attribute
line (a-
line) which describes an ice candidate: a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host the port number is found in the sixth field, which is "44323".
RTCIceCandidate.relatedAddress - Web APIs
you can't specify the value of relatedaddress in the options object, but the address is automatically extracted from the candidate a-
line, if it's formatted properly, being taken from its rel-address field.
... for host candidates, relatedaddress is null, meaning the field is not included in the candidate's a-
line.
... here's an sdp attribute
line (a-
line) describing an ice candidate discovered by the stun server: a=candidate:4234997325 1 udp 2043278322 192.168.0.56 6502 typ srflx raddr 192.168.2.77 rport 32768 generation 0 the remote address, relatedaddress, is the dotted quad (for ipv4) or colon-de
lineated 64-bit address (for ipv6) immediately following the text "raddr", or "192.168.2.77".
RTCIceCandidate.relatedPort - Web APIs
you can't specify the value of relatedport in the options object, but the address is automatically extracted from the candidate a-
line, if it's formatted properly, being taken from its rel-port field.
... for host candidates, relatedport is null, meaning the field is not included in the candidate's a-
line.
... here's an sdp attribute
line (a-
line) describing an ice candidate discovered by the stun server: a=candidate:4234997325 1 udp 2043278322 192.168.0.56 6502 typ srflx raddr 192.168.2.77 rport 32768 generation 0 the remote port, relatedport, is the number immediately following the "rport" label on the a-
line, or 32768.
ResizeObserverEntry.borderBoxSize - Web APIs
in
linesize the length of the observed element's border box in the in
line dimension.
... note: for more explanation of writing modes and block and in
line dimensions, read handling different text directions.
... examples const resizeobserver = new resizeobserver(entries => { for (let entry of entries) { if(entry.borderboxsize && entry.borderboxsize.length > 0) { entry.target.style.borderradius = math.min(100, (entry.borderboxsize[0].in
linesize/10) + (entry.borderboxsize[0].blocksize/10)) + 'px'; } else { entry.target.style.borderradius = math.min(100, (entry.contentrect.width/10) + (entry.contentrect.height/10)) + 'px'; } } }); resizeobserver.observe(document.queryselector('div')); specifications specification status comment resize observerthe definition of 'target' in that specification.
ResizeObserverEntry.contentBoxSize - Web APIs
in
linesize the length of the observed element's content box in the in
line dimension.
... note: for more explanation of writing modes and block and in
line dimensions, read handling different text directions.
... const resizeobserver = new resizeobserver(entries => { for (let entry of entries) { if(entry.contentboxsize) { entry.target.style.borderradius = math.min(100, (entry.contentboxsize.in
linesize/10) + (entry.contentboxsize.blocksize/10)) + 'px'; } else { entry.target.style.borderradius = math.min(100, (entry.contentrect.width/10) + (entry.contentrect.height/10)) + 'px'; } } }); resizeobserver.observe(document.queryselector('div')); specifications spe...
Sensor APIs - Web APIs
sensor permissions sensor permission/feature policy name absoluteorientationsensor 'accelerometer', 'gyroscope', and 'magnetometer' accelerometer 'accelerometer' ambientlightsensor 'ambient-light-sensor' gyroscope 'gyroscope'
linearaccelerationsensor 'accelerometer' magnetometer 'magnetometer' relativeorientationsensor 'accelerometer', and 'gyroscope' readings sensor readings are received through the sensor.onreading callback which is inherited by all sensor types.
...
linearaccelerationsensorsecure context provides the acceleration applied to the device along all three axes, but without the contribution of gravity.
... accelerometer candidate recommendation defines accelerometer and
linearaccerationsensor.
ServiceWorkerGlobalScope - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 12.142857142857142%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 85" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">workerglobalscope</text></a><poly
line 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:hre...
...f="/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-base
line="middle">serviceworkerglobalscope</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties serviceworkerglobalscope.clients read only contains the clients object associated with the service worker.
SyncEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 8.571428571428571%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 60" preserveaspectratio="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-base
line="middle">event</text></a>...
...<poly
line 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-base
line="middle">extendableevent</text></a><poly
line 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-fami...
...ly="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">syncevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor syncevent.syncevent() creates a new syncevent object.
Text - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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/characte...
...rdata" 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-base
line="middle">characterdata</text></a><poly
line 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-base
line="middle">text</text></a></svg></div> a:hover text { fill: #0095dd; pointer-...
TouchEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">uievent</text></a><poly
line 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-base
line="middle">touchevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor touchevent() creates a touchevent object.
WebGL2RenderingContext.drawArraysInstanced() - Web APIs
gl.
line_strip: draws a straight
line to the next vertex.
... gl.
line_loop: draws a straight
line to the next vertex, and connects the last vertex back to the first.
... gl.
lines: draws a
line between a pair of vertices.
WebGL2RenderingContext.drawRangeElements() - Web APIs
gl.
line_strip: draws a straight
line to the next vertex.
... gl.
line_loop: draws a straight
line to the next vertex, and connects the last vertex back to the first.
... gl.
lines: draws a
line between a pair of vertices.
WebGLRenderingContext.drawArrays() - Web APIs
gl.
line_strip: draws a straight
line to the next vertex.
... gl.
line_loop: draws a straight
line to the next vertex, and connects the last vertex back to the first.
... gl.
lines: draws a
line between a pair of vertices.
WebGLRenderingContext.drawElements() - Web APIs
gl.
line_strip: draws a straight
line to the next vertex.
... gl.
line_loop: draws a straight
line to the next vertex, and connects the last vertex back to the first.
... gl.
lines: draws a
line between a pair of vertices.
WebGLRenderingContext.texParameter[fi]() - Web APIs
pname description param available in webgl 1 gl.texture_mag_filter texture magnification filter gl.
linear (default value), gl.nearest.
... gl.texture_min_filter texture minification filter gl.
linear, gl.nearest, gl.nearest_mipmap_nearest, gl.
linear_mipmap_nearest, gl.nearest_mipmap_
linear (default value), gl.
linear_mipmap_
linear.
... 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.
Color masking - Web APIs
finally, color masking teaches us that webgl is not only a state machine, it is also a graphics pipe
line.
...masking occurs later in the pipe
line, and modifies the pixel color value, so the final result on the screen is that of the clear color, tinted by the color mask.
...lor masking.</p> <canvas>your browser does not seem to support html5 canvas.</canvas> <button id="red-toggle">on</button> <button id="green-toggle">on</button> <button id="blue-toggle">on</button> body { text-align : center; } canvas { display : block; width : 280px; height : 210px; margin : auto; padding : 0; border : none; background-color : black; } button { display : in
line-block; font-family : serif; font-size : inherit; font-weight : 900; color : white; margin : auto; padding : 0.6em 1.2em; } #red-toggle { background-color : red; } #green-toggle { background-color : green; } #blue-toggle { background-color : blue; } window.addeventlistener("load", function setupanimation (evt) { "use strict" window.removeeventlistener(evt.type, setupanimati...
Introduction to WebRTC protocols - Web APIs
structure sdp consists of one or more
lines of utf-8 text, each beginning with a one-character type, followed by an equals sign ("="), followed by structured text comprising a value or description, whose format depends on the type.
... the
lines of text that begin with a given letter are generally referred to as "letter-
lines".
... for example,
lines providing media descriptions have the type "m", so those
lines are referred to as "m-
lines." for more information to learn more about sdp, see the following useful resources: specification: rfc 4566: sdp: session description protocol iana registry of sdp parameters ...
Fundamentals of WebXR - Web APIs
a typical base
line headset offers three degrees of freedom, recognizing rotation around all three axes.
... there are two vr session modes available in webxr: in
line and immersive.
... the former, specified by the session mode string in
line, presents the rendered scene within the context of a document in a web browser, and doesn't require special xr hardware to view.
WebXR application life cycle - Web APIs
life cycle out
line most applications using webxr will follow a similar overall design pattern: check to see if the user's device and browser are both capable of presenting the xr experience you want to provide.
... call navigator.xr.issessionsupported(), specifying the webxr experience mode you want to provide: in
line, immersive-vr, or immersive-ar, in order to determine whether or not the type of session you wish to provide is available.
...this is done by calling navigator.xr.requestsession(), again specifying the string indicating the mode you want to enable: in
line, immersive-vr, or immersive-ar.
Lighting a WebXR setting - Web APIs
in this section, we provide some basic mixed reality lighting guide
lines to consider as you construct, render, and light your scene.
...obviously, there are exceptions to this guide
line, such as when your scene represents an otherworldly or alien setting, or when your goal is to create an unsettling visual effect.
...there are exceptions, such as the ambient lighting that simply adds a base
line amount of lighting to your setting, and the sun, which is a directional light (that is, a light source where every light ray is parallel, coming from somewhere in the sky and ending somewhere within your scene).
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
for example, given an xrsession whose reference space is worldrefspace, the following
line of code would request the first frame of animation to be scheduled: animationframerequestid = xrsession.requestanimationframe(mydrawframe); then, the mydrawframe() function—the callback executed when it's time to draw the frame—might be something like this: function mydrawframe(currentframetime, frame) { let session = frame.session; let viewerpose = frame.getviewerpose(viewerrefspace)...
... converting between webxr session types another common reason you may need to convert positional information from one reference space to another is when it's necessary to change the session type from in
line to immersive-vr or back.
... this commonly happens when your user interface provides a way to preview the scene in
line within the context of a web page, with a button or other control to switch to immersive mode.
Web Audio API best practices - Web APIs
in this article, we'll share a number of best practices — guide
lines, tips, and tricks for working with the web audio api.
... when you create an audio context (either off
line or on
line) it is created with a state, which can be suspended, running, or closed.
... const audioctx = new audiocontext(); const button = document.queryselector('button'); button.addeventlistener('click', function() { // check if context is in suspended state (autoplay policy) if (audioctx.state === 'suspended') { audioctx.resume(); } }, false); you might instead be working with an off
lineaudiocontext, in which case you can resume the suspended audio context with the startrendering() method.
Using IIR filters - Web APIs
arrayitems = 30; let myfrequencyarray = new float32array(totalarrayitems); let magresponseoutput = new float32array(totalarrayitems); let phaseresponseoutput = new float32array(totalarrayitems); let's fill our first array with frequency values we want data to be returned on: myfrequencyarray = myfrequencyarray.map(function(item, index) { return math.pow(1.4, index); }); we could go for a
linear approach, but it's far better when working with frequencies to take a log approach, so let's fill our array with frequency values that get larger further on in the array items.
...tx = canvasel.getcontext('2d'); const width = canvascontainer.offsetwidth; const height = canvascontainer.offsetheight; canvasel.width = width; canvasel.height = height; // set background fill canvasctx.fillstyle = 'white'; canvasctx.fillrect(0, 0, width, height); // set up some spacing based on size const spacing = width/16; const fontsize = math.floor(spacing/1.5); // draw our axis canvasctx.
linewidth = 2; canvasctx.strokestyle = 'grey'; canvasctx.beginpath(); canvasctx.moveto(spacing, spacing); canvasctx.
lineto(spacing, height-spacing); canvasctx.
lineto(width-spacing, height-spacing); canvasctx.stroke(); // axis is gain by frequency -> make labels canvasctx.font = fontsize+'px sans-serif'; canvasctx.fillstyle = 'grey'; canvasctx.filltext('1', spacing-fontsize, spacing+fontsize); canvas...
...e); canvasctx.filltext('hz', width/2, height-spacing+fontsize); canvasctx.filltext('20k', width-spacing, height-spacing+fontsize); // loop over our magnitude response data and plot our filter canvasctx.beginpath(); for(let i = 0; i < magresponseoutput.length; i++) { if (i === 0) { canvasctx.moveto(spacing, height-(magresponseoutput[i]*100)-spacing ); } else { canvasctx.
lineto((width/totalarrayitems)*i, height-(magresponseoutput[i]*100)-spacing ); } } canvasctx.stroke(); summary that's it for our iirfilter demo.
Visualizations with Web Audio API - Web APIs
here, we use requestanimationframe() to keep looping the drawing function once it has been started: var drawvisual = requestanimationframe(draw); next, we grab the time domain data and copy it into our array analyser.getbytetimedomaindata(dataarray); next, fill the canvas with a solid colour to start canvasctx.fillstyle = 'rgb(200, 200, 200)'; canvasctx.fillrect(0, 0, width, height); set a
line width and stroke colour for the wave we will draw, then begin drawing a path canvasctx.
linewidth = 2; canvasctx.strokestyle = 'rgb(0, 0, 0)'; canvasctx.beginpath(); determine the width of each segment of the
line to be drawn by dividing the canvas width by the array length (equal to the frequencybincount, as defined earlier on), then define an x variable to define the position to move to for dr...
...awing each segment of the
line.
... var slicewidth = width * 1.0 / bufferlength; var x = 0; now we run through a loop, defining the position of a small segment of the wave for each point in the buffer at a certain height based on the data point value form the array, then moving the
line across to the place where the next wave segment should be drawn: for(var i = 0; i < bufferlength; i++) { var v = dataarray[i] / 128.0; var y = v * height/2; if(i === 0) { canvasctx.moveto(x, y); } else { canvasctx.
lineto(x, y); } x += slicewidth; } finally, we finish the
line in the middle of the right hand side of the canvas, then draw the stroke we've defined: canvasctx.
lineto(canvas.width, canvas.height/2); canvasctx.stroke(); }; at the en...
WorkerNavigator - Web APIs
properties the workernavigator interface implements properties from the navigatorid, navigatorlanguage, navigatoron
line, navigatordatastore, and navigatorconcurrenthardware interfaces.
... navigatoron
line.on
lineread only returns a boolean indicating whether the browser is on
line.
... methods the workernavigator interface implements methods from the navigatorid, navigatorlanguage and navigatoron
line interfaces.
XMLDocument - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-an...
...chor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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" /><tex...
...t x="306" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">document</text></a><poly
line 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-base
line="middle">xmldocument</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} property also inherits properties from: document xmldocument.async used with xmldo...
Sending and Receiving Binary Data - Web APIs
function load_binary_resource(url) { var req = new xmlhttprequest(); req.open('get', url, false); //xhr binary charset opt by marcus granado 2006 [http://mgran.blogspot.com] req.overridemimetype('text\/plain; charset=x-user-defined'); req.send(null); if (req.status != 200) return ''; return req.responsetext; } the magic happens in
line 5, which overrides the mime type, forcing the browser to treat it as plain text, using a user-defined character set.
... var req = new xmlhttprequest(); req.open("post", url, true); // set headers and mime-type appropriately req.setrequestheader("content-length", 741); req.sendasbinary(abody);
line 4 sets the content-length header to 741, indicating that the data is 741 bytes long.
...
line 5 uses the sendasbinary() method to initiate the request.
XRSession - Web APIs
xrsession supports both in
line and immersive virtual and augmented reality modes.
... example this example establishes a new xrsession in in
line mode so that it can be displayed within an html element, avoiding the need for a dedicated ar or vr viewing device such as a headset.
... const xr = navigator.xr; if (xr) { xr.requestsession("in
line").then((xrsession) => { xrsession.requestreferencespace("local").then((xrreferencespace) => { xrsession.requestanimationframe((time, xrframe) => { let viewer = xrframe.getviewerpose(xrreferencespace); gl.bindframebuffer(xrwebgllayer.framebuffer); for (xrview of viewer.views) { let xrviewport = xrwebgllayer.getviewport(xrview); gl.viewport(xrviewport.x, xrviewport.y, xrviewport.width, xrviewport.height); } }); }); }); } else { /* webxr is not available */ } specifications specification status comment webxr device apithe definition of 'xrsession' in that specification.
ARIA annotations - Accessibility
</p> <section aria-describedby="fruit-desc"> <form> <ul> <li><label>apple: <input type="radio" name="fruit" value="apple"></label></li> <li><label>orange: <input type="radio" name="fruit" value="orange"></label></li> <li><label>banana: <input type="radio" name="fruit" value="banana"></label></li> </ul> </form> </section> insertions and deletions a common wish in on
line document systems like google docs is to be able to track changes, to see what reviewers or editors have suggested as changes to the text, before the managing editor or author accepts or rejects those changes.
...</p> <div id="comment-source">suggested by chris, <time datetime="2019-03-30t19:29">march 30 2019, 19:29</time></div> browsers tend to provide a default black strikethrough for deletions, and a black under
line for insertions, but you’ll probably want to use some more interesting styling of your own, for example: ins, [role="insertion"] { color: #0c0; text-decoration: under
line; } del, [role="deletion"] { color: red; text-decoration:
line-through; } ins, [role="insertion"], del, [role="deletion"] { text-decoration-thickness: 2px; background-color: #fee; padding: 2px 4px; margin: 0 1...
...px; } comments on
line document applications also commonly feature commenting systems, and it would be nice to have a way to semantically associate commented content and its comments.
Basic form hints - Accessibility
note that on
line 3, the <ul> element sets the aria-labelledby attribute to rg1_label, the id of the <h3> element on
line 1, which is the label for the radio group.
...on
lines 4 and 12, the aria-required attributes are set to true (in addition to the asterisks next to the labels), indicating that the name and email fields are required.
... the second part of the example, a snippet of javascript validates the email format, and sets the aria-invalid attribute of the email field (
line 12 of the html) according to the result (in addition to changing the presentation of the element).
Mobile accessibility checklist - Accessibility
colour colour contrast must comply with wcag 2.1 aa level requirements: contrast ratio of 4.5:1 for normal text (less than 18 point or 14 point bold.) contrast ratio of 3:1 for large text (at least 18 point or 14 point bold.) information conveyed via colour must be also available by other means too (under
lined text for links, etc.) visibility content hiding techniques such as zero opacity, z-index order and off-screen placement must not be used exclusively to handle visibility.
... general guide
lines an app title must be provided.
... touch targets must be large enough for the user to interact with (see the bbc mobile accessibility guide
lines for useful touch target size guide
lines).
::placeholder - CSS: Cascading Style Sheets
::placeholder { color: blue; font-size: 1.5em; } 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.
...in order to meet current web content accessibility guide
lines (wcag), a ratio of 4.5:1 is required for text content and 3:1 for larger text such as headings.
... webaim: color contrast checker mdn understanding wcag, guide
line 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 usability placeholder text with sufficient color contrast may be interpreted as entered input.
::selection - CSS: Cascading Style Sheets
::selection { background-color: cyan; } allowable properties only certain css properties can be used with ::selection: color background-color cursor caret-color out
line and its longhands text-decoration and its associated properties text-emphasis-color text-shadow in particular, background-image is ignored.
...to meet current web content accessibility guide
lines (wcag), text content must have a contrast ratio of 4.5:1, or 3:1 for larger text such as headings.
... (wcag defines large text as between 18.66px and 24px and bold, or 24px or larger.) webaim: color contrast checker mdn understanding wcag, guide
line 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 specifications specification status comment css pseudo-elements level 4the definition of '::selection' in that specification.
font-weight - CSS: Cascading Style Sheets
common weight name mapping the numerical values 100 to 900 roughly correspond to the following common weight names: value common weight name 100 thin (hair
line) 200 extra light (ultra light) 300 light 400 normal 500 medium 600 semi bold (demi bold) 700 bold 800 extra bold (ultra bold) 900 black (heavy) variable fonts most fonts have a particular weight which corresponds to one of the numbers in common weight name mapping.
... accessibility concerns people experiencing low vision conditions may have difficulty reading text set with a font-weight value of 100 (thin/hair
line) or 200 (extra light), especially if the font has a low contrast color ratio.
... mdn understanding wcag, guide
line 1.4 explanations understanding success criterion 1.4.8 | w3c understanding wcag 2.0 formal definition related at-rule@font-faceinitial valuenormalcomputed valueas specified formal syntax <font-weight-absolute>{1,2}where <font-weight-absolute> = normal | bold | <number <a href="/docs/css/value_definition_syntax#brackets" title="brackets: enclose several entities, combinators, and multipliers to transform them as a single component">[1,1000]> examples setting normal font weight in a @font-face rule the following finds a local open sans font or import it, and allows using the font for normal font weights.
Flow Layout and Overflow - CSS: Cascading Style Sheets
flow relative properties in the guide to writing modes and flow layout, we looked at the newer properties of block-size and in
line-size which make more sense when working with different writing modes than tying our layout to the physical dimensions of the screen.
... the level 3 overflow module also includes flow relative properties for overflow - overflow-block and overflow-in
line.
... in
line-axis overflow the text-overflow property deals with text overflowing in the in
line direction.
CSS Fonts - CSS: Cascading Style Sheets
it lets you define the style of a font, such as its family, size and weight,
line height, and the glyph variants to use when multiple are available for a single character.
... reference properties font font-family font-feature-settings font-kerning font-language-override font-optical-sizing font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-variation-settings font-weight
line-height at-rules @font-face font-family font-feature-settings font-style font-variant font-weight font-stretch src unicode-range @font-feature-values guides fundamental text and font styling in this beginner's learning article we go through all the basic fundamentals of text/font styling in detail, including setting font weight, family and style, font short...
...hand, text alignment and other effects, and
line and letter spacing.
CSS Grid Layout and Accessibility - CSS: Cascading Style Sheets
we can also position items using
line-based placement of grid template areas, without considering their location in the source.
...this means that someone navigating using the keyboard could be tabbing through links on your site and suddenly find themselves jumping from the top to the bottom of the document due to a reordered item being next in
line.
...i have used the
line-based placement properties to position box 1 on the second row of the grid.
Shapes From Images - CSS: Cascading Style Sheets
in this next example i have used generated content and floated this content, giving it a background image of a
linear gradient.
...the
linear gradient goes from purple to transparent, so by changing the value of shape-image-threshold i can decide how transparent the pixels need to be that create my shape.
... you can play with that value in the example below to see how the diagonal
line will move across the shape depending on that value.
Using CSS transforms - CSS: Cascading Style Sheets
css transforms are implemented using a set of css properties that let you apply affine
linear transformations to html elements.
...px; } /* 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: rotatey(90de...
...ive-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 { 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: rotatey(90deg)...
Layout and the containing block - CSS: Cascading Style Sheets
identifying the containing block the process for identifying the containing block depends entirely on the value of the element's position property: if the position property is static, relative, or sticky, the containing block is formed by the edge of the content box of the nearest ancestor element that is either a block container (such as an in
line-block, block, or list-item element) or establishes a formatting context (such as a table container, flex container, grid container, or the block container itself).
... height: 160px; background: lightgray; } p { width: 50%; /* == 400px * .5 = 200px */ height: 25%; /* == 160px * .25 = 40px */ margin: 5%; /* == 400px * .05 = 20px */ padding: 5%; /* == 400px * .05 = 20px */ background: cyan; } example 2 in this example, the paragraph's containing block is the <body> element, because <section> is not a block container (because of display: in
line) and doesn’t establish a formatting context.
... <body> <section> <p>this is a paragraph!</p> </section> </body> body { background: beige; } section { display: in
line; background: lightgray; } p { width: 50%; /* == half the body's width */ height: 200px; /* note: a percentage would be 0 */ background: cyan; } example 3 in this example, the paragraph's containing block is <section> because the latter's position is absolute.
Privacy and the :visited selector - CSS: Cascading Style Sheets
only the following styles can be applied to visited links: color background-color border-color (and its sub-properties) column-rule-color out
line-color the color parts of the fill and stroke attributes in addition, even for the above styles, you won't be able to change the transparency between unvisited and visited links, as you otherwise would be able to using rgba(), hsla(), or the transparent keyword.
... here is an example of how to use styles with the aforementioned restrictions: :link { out
line: 1px dotted blue; background-color: white; /* the default value of background-color is `transparent`.
...*/ } :visited { out
line-color: orange; /* visited links have an orange out
line */ background-color: green; /* visited links have a green background */ color: yellow; /* visited links have yellow colored text */ } impact on web developers overall, these restrictions shouldn't affect web developers too significantly.
background-color - CSS: Cascading Style Sheets
in order to meet current web content accessibility guide
lines (wcag), a ratio of 4.5:1 is required for text content and 3:1 for larger text such as headings.
... webaim: color contrast checker mdn understanding wcag, guide
line 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 formal definition initial valuetransparentapplies toall elements.
... it also applies to ::first-letter and ::first-
line.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-image - CSS: Cascading Style Sheets
constituent properties this property is a shorthand for the following css properties: border-image-outset border-image-repeat border-image-slice border-image-source border-image-width syntax /* source | slice */ border-image:
linear-gradient(red, blue) 27; /* source | slice | repeat */ border-image: url("/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 v...
... mdn understanding wcag, guide
line 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.
...fa0192d18e.png") /* source */ 27 / /* slice */ 36px 28px 18px 8px / /* width */ 18px 14px 9px 4px /* outset */ round; /* repeat */ } result gradient html <div id="gradient">this element is surrounded by a gradient-based border image!</div> css #gradient { width: 200px; border: 30px solid; border-image: repeating-
linear-gradient(45deg, #f33, #3bf, #f33 30px) 60; padding: 20px; } result specifications specification status comment css backgrounds and borders module level 3the definition of 'border-image' in that specification.
box-align - CSS: Cascading Style Sheets
/* keyword values */ box-align: start; box-align: center; box-align: end; box-align: base
line; box-align: stretch; /* global values */ box-
lines: inherit; box-
lines: initial; box-
lines: unset; the direction of layout depends on the element's orientation: horizontal or vertical.
... base
line the box aligns the base
lines of the contents (lining up the text).
... formal definition initial valuestretchapplies toelements with a css display value of box or in
line-boxinheritednocomputed valueas specifiedanimation typediscrete formal syntax start | center | end | base
line | stretch examples setting box alignment <!doctype html> <html> <head> <title>css box-align example</title> <style> div.example { display: box; /* as specified */ display: -moz-box; /* mozilla */ display: -webkit-box; /* webkit */ /* ...
color - CSS: Cascading Style Sheets
in order to meet current web content accessibility guide
lines (wcag), a ratio of 4.5:1 is required for text content and 3:1 for larger text such as headings.
... webaim: color contrast checker mdn understanding wcag, guide
line 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 formal definition initial valuevaries from one browser to anotherapplies toall elements.
... it also applies to ::first-letter and ::first-
line.inheritedyescomputed valueif the value is translucent, the computed value will be the rgba() corresponding one.
font-style - CSS: Cascading Style Sheets
positive values are slanted to the end of the
line, while negative values are slanted towards the beginning.
... mdn understanding wcag, guide
line 1.4 explanations w3c understanding wcag 2.1 formal definition initial valuenormalapplies toall elements.
... it also applies to ::first-letter and ::first-
line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | italic | oblique <angle>?
font-variant-numeric - CSS: Cascading Style Sheets
two values are possible: lining-nums activating the set of figures where numbers are all lying on the base
line.
... stacked-fractions activating the set of figures where the numerator and denominator are made smaller, stacked and separated by a horizontal
line.
...it also applies to ::first-letter and ::first-
line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | [ <numeric-figure-values> | <numeric-spacing-values> | <numeric-fraction-values> | ordinal | slashed-zero ]where <numeric-figure-values> = [ lining-nums | oldstyle-nums ]<numeric-spacing-values> = [ proportional-nums | tabular-nums ]<numeric-fraction-values> = [ diagonal-fractions | stacked-fractions ] examples setting ordinal numeric forms html <p class="ordinal">1st, 2nd, 3rd, 4th, 5th</p> css /* this example uses the source sans pro opentype font, developed by adobe and used here under the terms of the sil open font license, version 1.1: ht...
grid - CSS: Cascading Style Sheets
constituent properties this property is a shorthand for the following css properties: grid-auto-columns grid-auto-flow grid-auto-rows grid-template-areas grid-template-columns grid-template-rows syntax /* <'grid-template'> values */ grid: none; grid: "a" 100px "b" 1fr; grid: [
linename1] "a" 100px [
linename2]; grid: "a" 200px "b" min-content; grid: "a" minmax(100px, max-content) "b" 20%; grid: 100px / 200px; grid: minmax(400px, min-content) / repeat(auto-fill, 50px); /* <'grid-template-rows'> / [ auto-flow && dense?
...values */ grid: 200px / auto-flow; grid: 30% / auto-flow dense; grid: repeat(3, [
line1
line2
line3] 200px) / auto-flow 300px; grid: [
line1] minmax(20em, max-content) / auto-flow dense 40%; /* [ auto-flow && dense?
.../ <'grid-template-columns'> values */ grid: auto-flow / 200px; grid: auto-flow dense / 30%; grid: auto-flow 300px / repeat(3, [
line1
line2
line3] 200px); grid: auto-flow dense 40% / [
line1] minmax(20em, max-content); /* global 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.
mix-blend-mode - CSS: Cascading Style Sheets
ix-blend-mode values <div class="grid"> <div class="col"> <div class="note">blending in isolation (no blending with the background)</div> <div class="row isolate"> <div class="cell"> normal <div class="container normal"> <div class="group"> <div class="item firefox"></div> <svg viewbox="0 0 150 150"> <defs> <
lineargradient id="red"> <stop offset="0" stop-color="hsl(0,100%,50%)" /> <stop offset="100%" stop-color="hsl(0,0%,100%)" /> </
lineargradient> <
lineargradient id="green"> <stop offset="0" stop-color="hsl(120,100%,50%)" /> <stop offset="100%" stop-color="hsl(120,0%,100%)" /> </l...
...ineargradient> <
lineargradient id="blue"> <stop offset="0" stop-color="hsl(240,100%,50%)" /> <stop offset="100%" stop-color="hsl(240,0%,100%)" /> </
lineargradient> </defs> <ellipse class="item r" cx="75" cy="75" rx="25" ry="70"></ellipse> <ellipse class="item g" cx="75" cy="75" rx="25" ry="70"></ellipse> <ellipse class="item b" cx="75" cy="75" rx="25" ry="70"></ellipse> </svg> </div> </div> </div> <div class="cell"> multiply <div class="container multiply"> <div class="group"> <div class="item firefox"></div> <svg viewbox="0 0 150 150"> <ellipse class="item r" cx="75" cy="...
...ex: 1 auto; flex-direction: column; height: auto; } .cell { margin: .5em; padding: .5em; background-color: #fff; overflow: hidden; text-align: center; } .note { background: #fff3d4; padding: 1em; margin: .5em .5em 0; font: .8em sans-serif; text-align: left; white-space: nowrap; } .note + .row .cell { margin-top: 0; } .container { position: relative; background:
linear-gradient(to right, #000 0%, transparent 50%, #fff 100%),
linear-gradient(to bottom, #ff0 0%, #f0f 50%, #0ff 100%); width: 150px; height: 150px; margin: 0 auto; } .r { transform-origin: center; transform: rotate(-30deg); fill: url(#red); } .g { transform-origin: center; transform: rotate(90deg); fill: url(#green); } .b { transform-origin: center; transform:...
offset-anchor - CSS: Cascading Style Sheets
each <div> is given the same offset-path (a horizontal
line 200 pixels long) and animated to move along it.
... each <section> has been styled with a
linear gradient to give it a horizontal
line running through its center, to give you a visual display of where the <div>'s offset paths are running.
... html <section> <div class="offset-anchor1"></div> </section> <section> <div class="offset-anchor2"></div> </section> <section> <div class="offset-anchor3"></div> </section> css div { offset-path: path('m 0,20 l 200,20'); animation: move 3000ms infinite alternate ease-in-out; width: 40px; height: 40px; } section { background-image:
linear-gradient(to bottom, transparent, transparent 49%, #000 50%, #000 51%, transparent 52%); border: 1px solid #ccc; margin-bottom: 10px; } .offset-anchor1 { offset-anchor: auto; background: cyan; } .offset-anchor2 { offset-anchor: right top; background: purple; } .offset-anchor3 { offset-anchor: left bottom; background: magenta; } @keyframes move { 0% { offset-distance: 0%...
scroll-snap-align - CSS: Cascading Style Sheets
the two values specify the snapping alignment in the block axis and in
line axis, respectively.
... syntax /* keyword values */ scroll-snap-align: none; scroll-snap-align: start end; /* when two values set first is block, second in
line */ 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.
... safari currently has the two value syntax in the wrong order, the first value being in
line the second block.
text-combine-upright - CSS: Cascading Style Sheets
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.
... 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.
... formal definition initial valuenoneapplies tonon-replaced in
line elementsinheritedyescomputed valuespecified keyword, plus integer if 'digits'animation typediscrete formal syntax none | all | [ digits <integer>?
text-transform - CSS: Cascading Style Sheets
the capitalize
line in the browser compatibility table contains the version the different engines started to support this now precisely-defined behavior.
... mdn understanding wcag, guide
line 1.4 explanations w3c understanding wcag 2.1 formal definition initial valuenoneapplies toall elements.
... it also applies to ::first-letter and ::first-
line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax none | capitalize | uppercase | lowercase | full-width | full-size-kana examples none <p>initial string <strong>lorem ipsum dolor sit amet, consectetur adipisicing elit, ...</strong> </p> <p>text-transform: none <strong><span>lorem ipsum dolor sit amet, consectetur adipisicing elit, ...</span></strong> </p> span { text-transform: none; } strong { float: right; } this demonstrates no text transformation.
matrix3d() - CSS: Cascading Style Sheets
matrix3d(a1, b1, c1, d1, a2, b2, c2, d2, a3, b3, c3, d3, a4, b4, c4, d4) values a1 b1 c1 d1 a2 b2 c2 d2 a3 b3 c3 d3 are <number>s describing the
linear transformation.
... a generic 3d affine transformation can't be represented using a cartesian-coordinate matrix, as translations are not
linear transformations.
... /* centering content */ display: flex; flex-flow: row wrap; justify-content: center; align-content: center; } .foo { width: 50%; padding: 1em; color: white; background: #ff8c66; border: 2px dashed black; text-align: center; font-family: system-ui, sans-serif; font-size: 14px; /* setting up animation for better demonstration */ animation: motionscale 2s alternate
linear infinite; } @keyframes motionscale { from { /* identity matrix is used as basis here.
widows - CSS: Cascading Style Sheets
the widows css property sets the minimum number of
lines in a block container that must be shown at the top of a page, region, or column.
... /* <integer> values */ widows: 2; widows: 3; /* global values */ widows: inherit; widows: initial; widows: unset; in typography, a widow is the last
line of a paragraph that appears alone at the top of a page.
... (the paragraph is continued from a prior page.) syntax values <integer> the minimum number of
lines that can stay by themselves at the top of a new fragment after a fragmentation break.
Mobile Web Development - Developer guides
also see jason grlicky's guide to mobile-friend
liness for web developers.
... for example, if you set a gradient as a background for some text using a vendor-prefixed property like -webkit-
linear-gradient, it's best to include the other vendor-prefixed versions of the
linear-gradient() property.
... if you don't do that, at least make sure that the default background contrasts with the text: that way, the page will at least be usable in a browser which is not targeted by your
linear-gradient rule.
HTML attribute: multiple - HTML: Hypertext Markup Language
most browsers displaying a scrolling list box for a <select> control with the multiple attribute set versus a single
line dropdown when the attribute is ommitted.
... <select multiple name="drawfs" id="drawfs"> <option>grumpy</option> <option>happy</option> <option>sleepy</option> <option>bashful</option> <option>sneezy</option> <option>dopey</option> <option>doc</option> </select> when multiple is specified, most browsers will show a scrolling list box instead of a single
line dropdown.
...the control generally has a different appearance based on the presence of the multiple attribute, with most browsers displaying a scrolling list box instead of a single
line dropdown when the attribute is present.
<button>: The Button element - HTML: Hypertext Markup Language
| the paciello group mdn understanding wcag, guide
line 4.1 explanations understanding success criterion 4.1.2 | w3c understanding wcag 2.0 size and proximity size interactive elements such as buttons should provide an area large enough that it is easy to activate them.
...in order to meet current web content accessibility guide
lines (wcag), a ratio of 4.5:1 is required for text content and 3:1 for large text.
... (large text is defined as 18.66px and bold or larger, or 24px or larger.) webaim: color contrast checker mdn understanding wcag, guide
line 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 clicking and focus whether clicking on a <button> causes it to (by default) become focused varies by browser and os.
<input type="email"> - HTML: Hypertext Markup Language
the text must not include carriage returns or
line feeds.
...if the multiple attribute is specified, each individual item in the comma-de
lineated list of values must match the regular expression.
...let's see how: body { font: 16px sans-serif; } .emailbox { padding-bottom: 20px; } .messagebox { padding-bottom: 20px; } label {
line-height: 22px; } label::after { content: ":"; } <form> <div class="emailbox"> <label for="emailaddress">your e-mail address</label><br> <input id="emailaddress" type="email" size="64" maxlength="64" required placeholder="username@beststartupever.com" pattern=".+@beststartupever.com" title="please provide only a best startup ever corporate e-mail address"> </div> ...
<input type="radio"> - HTML: Hypertext Markup Language
for example, if the user clicks on the "phone" radio button then submits the form, the form's data will include the
line contact=phone.
... the css involved is a bit more significant: html { font-family: sans-serif; } div:first-of-type { display: flex; align-items: flex-start; margin-bottom: 5px; } label { margin-right: 15px;
line-height: 32px; } input { -webkit-appearance: none; -moz-appearance: none; appearance: none; border-radius: 50%; width: 16px; height: 16px; border: 2px solid #999; transition: 0.2s all
linear; margin-right: 5px; position: relative; top: 4px; } input:checked { border: 6px solid black; } button, legend { color: white; background-color: black; padding: 5px 10px; b...
...order-radius: 0; border: 0; font-size: 14px; } button:hover, button:focus { color: #999; } button:active { background-color: white; color: black; out
line: 1px solid black; } most notable here is the use of the -moz-appearance property (with prefixes needed to support some browsers).
<input type="tel"> - HTML: Hypertext Markup Language
the text must not include carriage returns or
line feeds.
... var selectelem = document.queryselector("select"); var inputelems = document.queryselectorall("input"); selectelem.onchange = function() { for(var i = 0; i < inputelems.length; i++) { inputelems[i].value = ""; } if(selectelem.value === "us") { inputelems[2].parentnode.style.display = "in
line"; inputelems[0].placeholder = "area code"; inputelems[0].pattern = "[0-9]{3}"; 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"...
... === "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 = "in
line"; inputelems[0].placeholder = "area code"; inputelems[0].pattern = "[0-9]{3,5}"; inputelems[1].placeholder = "first part"; inputelems[1].pattern = "[0-9]{2,4}"; 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 num...
<pre>: The Preformatted Text element - HTML: Hypertext Markup Language
cols contains the preferred count of characters that a
line should have.
... width contains the preferred count of characters that a
line should have.
... </figcaption> </figure> mdn understanding wcag, guide
line 1.1 explanations h86: providing text alternatives for ascii art, emoticons, and leetspeak | w3c techniques for wcag 2.0 specifications specification status comment html living standardthe definition of '<pre>' in that specification.
<sub>: The Subscript element - HTML: Hypertext Markup Language
the html subscript element (<sub>) specifies in
line text which should be displayed as subscript for solely typographical reasons.
... subscripts are typically rendered with a lowered base
line using smaller text.
... for example, using <sub> to style the name of a company which uses altered base
lines in their wordmark would not be appropriate; instead, css should be used (likely the vertical-align property, such as vertical-align: sub or, to more precisely control the base
line shift, vertical-align: -25%.
<tbody>: The Table Body element - HTML: Hypertext Markup Language
possible values for this attribute are: base
line, which will put the text as close to the bottom of the cell as it is possible, but align it on the base
line of the characters instead of the bottom of them.
... table { border: 2px solid #555; border-collapse: collapse; font: 16px "lucida grande", "helvetica", "arial", sans-serif; } first, the table's overall style attributes are set, configuring the thickness, style, and color of the table's exterior borders and using border-collapse to ensure that the border
lines are shared among adjacent cells rather than each having its own borders with space in between.
...the cells are given a light gray out
line which is a single pixel thick, padding is adjusted, and all cells are left-aligned using text-align thead > tr > th { background-color: #cce; font-size: 18px; border-bottom: 2px solid #999; } finally, header cells contained within the <thead> block are given additional styling.
<title>: The Document Title element - HTML: Hypertext Markup Language
a few guide
lines and tips for composing good titles: avoid one- or two-word titles.
... example <title>menu - blue house chinese food - foodyum: on
line takeout today!</title> to help the user, update the page title value to reflect significant page state changes (such as form validation problems).
... example <title>2 errors - your order - blue house chinese food - foodyum: on
line takeout today!</title> mdn understanding wcag, guide
line 2.4 explanations understanding success criterion 2.4.2 | w3c understanding wcag 2.0 specifications specification status comment html living standardthe definition of '<title>' in that specification.
<tt>: The Teletype Text element (obsolete) - HTML: Hypertext Markup Language
the obsolete html teletype text element (<tt>) creates in
line text which is presented using the user agent's default monospace font face.
... this element was created for the purpose of rendering text as it would be displayed on a fixed-width display such as a teletype, text-only screen, or
line printer.
...you should use the more semantically helpful <code>, <kbd>, <samp>, or <var> elements for in
line text that needs to be presented in monospace type, or the <pre> tag for content that should be presented as a separate block.
title - HTML: Hypertext Markup Language
multi
line titles the title attribute may contain several
lines.
... each u+000a
line feed (lf) character represents a
line break.
... some caution must be taken, as this means the following renders across two
lines: html <p>new
lines in <code>title</code> should be taken into account, like <abbr title="this is a multi
line title">example</abbr>.</p> result title attribute inheritance if an element has no title attribute, then it inherits it from its parent node, which in turn may inherit it from its parent, and so on.
Content-Disposition - HTTP
in a regular http response, the content-disposition response header is a header indicating if the content is expected to be displayed in
line in the browser, that is, as a web page or as part of a web page, or as an attachment, that is downloaded and saved locally.
... header type response header (for the main body) general header (for a subpart of a multipart body) forbidden header name no syntax as a response header for the main body the first parameter in the http context is either in
line (default value, indicating it can be displayed inside the web page, or as the web page) or attachment (indicating it should be downloaded; most browsers presenting a 'save as' dialog, prefilled with the value of the filename parameters if present).
... content-disposition: in
line content-disposition: attachment content-disposition: attachment; filename="filename.jpg" as a header for a multipart body the first parameter in the http context is always form-data.
Index - HTTP
an http header consists of its case-insensitive name followed by a colon ':', then by its value (without
line breaks).
...this includes not only urls loaded directly into <script> elements, but also things like in
line script event handlers (onclick) and xslt stylesheets which can trigger script execution.
...although these protections are largely unnecessary in modern browsers when sites implement a strong content-security-policy that disables the use of in
line javascript ('unsafe-in
line'), they can still provide protections for users of older web browsers that don't yet support csp.
Protocol upgrade mechanism - HTTP
extensions which take parameters do so by using semicolon de
lineation.
...you can use this more than once in the header, as well; the result is the same as if you used a comma-de
lineated list of subprotocol identifiers in a single header.
... sec-websocket-version: supportedversions supportedversions a comma-de
lineated list of the websocket protocol versions supported by the server.
CSS Houdini
with worklets, you can create modular css, requiring a single
line of javascript to import configureable components: no pre-processors, post-processors or javascript frameworks needed.
... css typed om reference css typed om guide css layout api designed to improve the extensibility of css, this api enables developers to write their own layout algorithms, like masonry or
line snapping.
... css painting api reference css painting api guide worklets an api for running scripts in various stages of the rendering pipe
line independent of the main javascript execution environment.
SyntaxError: JSON.parse: bad parsing - JavaScript
examples json.parse() does not allow trailing commas both
lines will throw a syntaxerror: json.parse('[1, 2, 3, 4,]'); json.parse('{"foo": 1,}'); // syntaxerror json.parse: unexpected character // at
line 1 column 14 of the json data omit the trailing commas to parse the json correctly: json.parse('[1, 2, 3, 4]'); json.parse('{"foo": 1}'); property names must be double-quoted strings you cannot use single-quotes around properties, like 'foo'.
... json.parse("{'foo': 1}"); // syntaxerror: json.parse: expected property name or '}' // at
line 1 column 2 of the json data instead write "foo": json.parse('{"foo": 1}'); leading zeros and decimal points you cannot use leading zeros, like 01, and decimal points must be followed by at least one digit.
... json.parse('{"foo": 01}'); // syntaxerror: json.parse: expected ',' or '}' after property value // in object at
line 1 column 2 of the json data json.parse('{"foo": 1.}'); // syntaxerror: json.parse: unterminated fractional number // at
line 1 column 2 of the json data instead write just 1 without a zero and use at least one digit after a decimal point: json.parse('{"foo": 1}'); json.parse('{"foo": 1.0}'); ...
Arrow function expressions - JavaScript
you must wrap the object literal in parentheses: var func = () => ({ foo: 1 });
line breaks an arrow function cannot contain a
line break between its parameters and its arrow.
... var func = (a, b, c) => 1; // syntaxerror: expected expression, got '=>' however, this can be amended by putting the
line break after the arrow or using parentheses/braces as seen below to ensure that the code stays pretty and fluffy.
... you can also put
line breaks between arguments.
arguments.callee - JavaScript
for example, if you cannot guarantee that a function f will not call an unknown function, it is not possible to in
line f.
...b * c : d * e; } if the javascript interpreter cannot guarantee that all the provided arguments are numbers at the point that the call is made, it needs to either insert checks for all the arguments before the in
lined code, or it cannot in
line the function.
...however in many cases that's just not possible and therefore it becomes impossible to in
line.
Error() constructor - JavaScript
syntax new error([message[, filename[,
linenumber]]]) parameters messageoptional a human-readable description of the error.
...
linenumber optional the value for the
linenumber property on the created error object.
... defaults to the
line number containing the error() constructor invocation.
Error - JavaScript
error.prototype.
linenumber a non-standard mozilla property for the
line number in the file that raised this error.
... error.prototype.columnnumber a non-standard mozilla property for the column number in the
line that raised this error.
... function customerror(foo, message, filename,
linenumber) { var instance = new error(message, filename,
linenumber); instance.name = 'customerror'; instance.foo = foo; object.setprototypeof(instance, object.getprototypeof(this)); if (error.capturestacktrace) { error.capturestacktrace(instance, customerror); } return instance; } customerror.prototype = object.create(error.prototype, { constructor: { value: error, enume...
EvalError - JavaScript
evalerror.prototype.
linenumber
line number in file that raised this error.
... evalerror.prototype.columnnumber column number in
line that raised this error.
... creating an evalerror try { throw new evalerror('hello', 'somefile.js', 10); } catch (e) { console.log(e instanceof evalerror); // true console.log(e.message); // "hello" console.log(e.name); // "evalerror" console.log(e.filename); // "somefile.js" console.log(e.
linenumber); // 10 console.log(e.columnnumber); // 0 console.log(e.stack); // "@scratchpad/2:2:9\n" } specifications specification ecmascript (ecma-262)the definition of 'evalerror' in that specification.
InternalError() constructor - JavaScript
syntax new internalerror([message[, filename[,
linenumber]]]) parameters message optional.
...the name of the file containing the code that caused the exception
linenumber optional.
... the
line number of the code that caused the exception examples creating a new internalerror new internalerror("engine failure"); specifications not part of any standard.
RegExp() constructor - JavaScript
m (multi
line) treat beginning and end characters (^ and $) as working over multiple
lines.
... in other words, match the beginning or end of each
line (delimited by \n or \r), not only the very beginning or end of the whole input string.
...to match new
lines.
String.prototype.charAt() - JavaScript
; console.log("the character at index 1 is '" + anystring.charat(1) + "'"); console.log("the character at index 2 is '" + anystring.charat(2) + "'"); console.log("the character at index 3 is '" + anystring.charat(3) + "'"); console.log("the character at index 4 is '" + anystring.charat(4) + "'"); console.log("the character at index 999 is '" + anystring.charat(999) + "'"); these
lines display the following: the character at index 0 is 'b' the character at index 0 is 'b' the character at index 1 is 'r' the character at index 2 is 'a' the character at index 3 is 'v' the character at index 4 is 'e' the character at index 999 is '' getting whole characters the following provides a means of ensuring that going through a string loop always provides a whole characte...
... var str = 'a \ud87e\udc04 z'; // we could also use a non-bmp character directly for (var i = 0, chr; i < str.length; i++) { if ((chr = getwholechar(str, i)) === false) { continue; } // adapt this
line at the top of each loop, passing in the whole string and // the current iteration and returning a variable to represent the // individual character console.log(chr); } function getwholechar(str, i) { var code = str.charcodeat(i); if (number.isnan(code)) { return ''; // position not found } if (code < 0xd800 || code > 0xdfff) { return str.charat(i); } // high surrogate (could change last hex to 0xdb7f to treat high private // surrogates as single characters) if (0xd...
... let str = 'a\ud87e\udc04z' // we could also use a non-bmp character directly for (let i = 0, chr; i < str.length; i++) { [chr, i] = getwholecharandi(str, i) // adapt this
line at the top of each loop, passing in the whole string and // the current iteration and returning an array with the individual character // and 'i' value (only changed if a surrogate pair) console.log(chr) } function getwholecharandi(str, i) { let code = str.charcodeat(i) if (number.isnan(code)) { return '' // position not found } if (code < 0xd800 || code > 0xdfff) { retu...
SyntaxError - JavaScript
syntaxerror.prototype.
linenumber
line number in file that raised this error.
... syntaxerror.prototype.columnnumber column number in
line that raised this error.
... examples catching a syntaxerror try { eval('hoo bar'); } catch (e) { console.error(e instanceof syntaxerror); console.error(e.message); console.error(e.name); console.error(e.filename); console.error(e.
linenumber); console.error(e.columnnumber); console.error(e.stack); } creating a syntaxerror try { throw new syntaxerror('hello', 'somefile.js', 10); } catch (e) { console.error(e instanceof syntaxerror); // true console.error(e.message); // hello console.error(e.name); // syntaxerror console.error(e.filename); // somefile.js console.error(e.
linenumber); // 10 console.error(e.columnnumber); // 0 console...
WebAssembly.CompileError() constructor - JavaScript
syntax new webassembly.compileerror(message, filename,
linenumber) parameters message optional human-readable description of the error.
...
linenumber optional the
line number of the code that caused the exception.
...nippet creates a new compileerror instance, and logs its details to the console: try { throw new webassembly.compileerror('hello', 'somefile', 10); } catch (e) { console.log(e instanceof compileerror); // true console.log(e.message); // "hello" console.log(e.name); // "compileerror" console.log(e.filename); // "somefile" console.log(e.
linenumber); // 10 console.log(e.columnnumber); // 0 console.log(e.stack); // returns the location where the code was run } specifications specification webassembly javascript interfacethe definition of 'webassembly constructors' in that specification.
WebAssembly.CompileError - JavaScript
webassembly.compileerror.prototype.
linenumber
line number in file that raised this error.
... webassembly.compileerror.prototype.columnnumber column number in
line that raised this error.
...nippet creates a new compileerror instance, and logs its details to the console: try { throw new webassembly.compileerror('hello', 'somefile', 10); } catch (e) { console.log(e instanceof compileerror); // true console.log(e.message); // "hello" console.log(e.name); // "compileerror" console.log(e.filename); // "somefile" console.log(e.
linenumber); // 10 console.log(e.columnnumber); // 0 console.log(e.stack); // returns the location where the code was run } specifications specification webassembly javascript interfacethe definition of 'webassembly constructors' in that specification.
WebAssembly.LinkError() constructor - JavaScript
syntax new webassembly.linkerror(message, filename,
linenumber) parameters message optional human-readable description of the error.
...
linenumber optional the
line number of the code that caused the exception.
... following snippet creates a new linkerror instance, and logs its details to the console: try { throw new webassembly.linkerror('hello', 'somefile', 10); } catch (e) { console.log(e instanceof linkerror); // true console.log(e.message); // "hello" console.log(e.name); // "linkerror" console.log(e.filename); // "somefile" console.log(e.
linenumber); // 10 console.log(e.columnnumber); // 0 console.log(e.stack); // returns the location where the code was run } specifications specification webassembly javascript interfacethe definition of 'linkerror' in that specification.
WebAssembly.LinkError - JavaScript
webassembly.linkerror.prototype.
linenumber
line number in file that raised this error.
... webassembly.linkerror.prototype.columnnumber column number in
line that raised this error.
... following snippet creates a new linkerror instance, and logs its details to the console: try { throw new webassembly.linkerror('hello', 'somefile', 10); } catch (e) { console.log(e instanceof linkerror); // true console.log(e.message); // "hello" console.log(e.name); // "linkerror" console.log(e.filename); // "somefile" console.log(e.
linenumber); // 10 console.log(e.columnnumber); // 0 console.log(e.stack); // returns the location where the code was run } specifications specification webassembly javascript interfacethe definition of 'linkerror' in that specification.
WebAssembly.RuntimeError() constructor - JavaScript
syntax new webassembly.runtimeerror(message, filename,
linenumber) parameters message optional human-readable description of the error.
...
linenumber optional the
line number of the code that caused the exception.
...nippet creates a new runtimeerror instance, and logs its details to the console: try { throw new webassembly.runtimeerror('hello', 'somefile', 10); } catch (e) { console.log(e instanceof runtimeerror); // true console.log(e.message); // "hello" console.log(e.name); // "runtimeerror" console.log(e.filename); // "somefile" console.log(e.
linenumber); // 10 console.log(e.columnnumber); // 0 console.log(e.stack); // returns the location where the code was run } specifications specification webassembly javascript interfacethe definition of 'webassembly.runtimeerror constructor' in that specification.
WebAssembly.RuntimeError - JavaScript
webassembly.runtimeerror.prototype.
linenumber
line number in file that raised this error.
... webassembly.runtimeerror.prototype.columnnumber column number in
line that raised this error.
...nippet creates a new runtimeerror instance, and logs its details to the console: try { throw new webassembly.runtimeerror('hello', 'somefile', 10); } catch (e) { console.log(e instanceof runtimeerror); // true console.log(e.message); // "hello" console.log(e.name); // "runtimeerror" console.log(e.filename); // "somefile" console.log(e.
linenumber); // 10 console.log(e.columnnumber); // 0 console.log(e.stack); // returns the location where the code was run } specifications specification webassembly javascript interfacethe definition of 'webassembly constructors' in that specification.
this - JavaScript
calling super() creates a this binding within the constructor and essentially has the effect of evaluating the following
line of code, where base is the inherited class: this = new base(); warning: referring to this before calling super() will throw an error.
...in the previous example, we defined the function in
line as the f member during the definition of o.
...rget are the same object console.log(this === e.target); this.style.backgroundcolor = '#a5d9f3'; } // get a list of every element in the document var elements = document.getelementsbytagname('*'); // add bluify as a click listener so when the // element is clicked on, it turns blue for (var i = 0; i < elements.length; i++) { elements[i].addeventlistener('click', bluify, false); } in an in
line event handler when the code is called from an in
line on-event handler, its this is set to the dom element on which the listener is placed: <button onclick="alert(this.tagname.tolowercase());"> show this </button> the above alert shows button.
JavaScript shells - JavaScript
firefox has a built-in javascript console, which support multi-
line editing.
... javascript shell (js) - a command
line interpreter for javascript xpcshell is an xpconnect - enabled shell, sometimes useful for mozilla development.
... jsconsole.com -- an open-source javascript console with the ability to easily link to particular expressions javascript shell (web page) - also available as part of the extension developer's extension jash: javascript shell - a dhtml based shell that gives you command
line access to a web page.
JavaScript
use external resources and collaborate with your team on
line.
... plunker plunker is an on
line community for creating, collaborating on and sharing your web development ideas.
... stackblitz stackblitz is another on
line playground/debugging tool, which can host and deploy full-stack applications using react, angular, etc.
<maction> - MathML
possible values are: status
line: if there is a click on the expression or the reader moves the pointer over it, the message is sent to the browser's status
line.
... the syntax is: <maction actiontype="status
line"> expression message </maction>.
... mathcolor the text color and also the fraction
line color.
<mfrac> - MathML
if true, the fraction
line is bevelled, which means that numerator and denominator are displayed side by side and separated by a slash (/).
...
linethickness the thickness of the horizontal fraction
line.
... mathcolor the text color and also the fraction
line color.
Web audio codec guide - Web media technologies
designed to be able to provide more compression with higher audio fidelity than mp3, aac has become a popular choice, and is the standard format for audio in many types of media, including blu-ray discs and hdtv, as well as being the format used for songs purchased from on
line vendors including itunes.
... container support mp4, ogg, flac rtp / webrtc compatible no licensing fully open and free of any licensing requirements g.711 (pulse code modulation of voice frequencies) the g.711 specification, published by the international telecommunications union (itu), was initially created in 1972 to define standards for encoding the voice frequencies on telephone
lines into digital form.
... a few popular options: ffmpeg arguably the best-known and most widely regarded open source codec packages available, ffmpeg supports the majority of the most popular audio formats and provides command-
line tools and libraries for encoding, decoding, and performing format conversions of both audio and video.
Image file type and format guide - Web media technologies
gif (graphics interchange format) in 1987, the compuserve on
line service provider introduced the gif (graphics interchange format) image file format to provide a compressed graphics format that all members of their service would be able to use.
... svg (scalable vector graphics) svg is an xml-based vector graphics format that specifies the contents of an image as a set of drawing commands that create shapes,
lines, apply colors, filters, and so forth.
...for instance, this example defines an drawing area with initial size 100 by 100 units, containing a
line drawn diagonally through the box: <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <
line x1="0" y1="80" x2="100" y2="20" stroke="black" /> </svg> svg can be used in web content in two ways: you can directly write the <svg> element within the html, containing svg elements to draw the image.
Animation performance and frame rate - Web Performance
there are a number of elements, and we've added a
linear-gradient background and a box-shadow to each element, because they are both relatively expensive effects to paint.
...exactly what you'll see depends a lot on your machine and system load, but it will be something like this: this is showing three distinct views: (a) an overview of the waterfall, (b) the frame rate, and (c) the time
line details.
... waterfall the time
line view shows the reason for the improved frame rate.
How to make PWAs installable - Progressive web apps (PWAs)
previous overview: progressive next in the last article, we read about how the example application, js13kpwa, works off
line thanks to its service worker, but we can go even further and allow users to install the web app on mobile and desktop browers that support doing so.
... requirements to make the web site installable, it needs the following things in place: a web manifest, with the correct fields filled in the web site to be served from a secure (https) domain an icon to represent the app on the device a service worker registered, to allow the app to work off
line (this is required only by chrome for android currently) currently, only the chromium-based browsers such as chrome, edge, and samsung internet require the service worker.
... the js13kpwa.webmanifest file of the js13kpwa web app is included in the <head> block of the index.html file using the following
line of code: <link rel="manifest" href="js13kpwa.webmanifest"> there are a few common kinds of manifest file that have been used in the past: manifest.webapp was popular in firefox os app manifests, and many use manifest.json for web manifests as the contents are organized in a json structure.
How to make PWAs re-engageable using Notifications and Push - Progressive web apps (PWAs)
previous overview: progressive next having the ability to cache the contents of an app to work off
line is a great feature.
... as mentioned before, to be able to receive push messages, you have to have a service worker, the basics of which are already explained in the making pwas work off
line with service workers article.
...there's a big collection of working examples showing general use, but also web push, caching strategies, performance, working off
line, and more.
Applying SVG effects to HTML content - SVG: Scalable Vector Graphics
example: masking for example, you can make a gradient mask for html content using svg and css code similar to the following, inside your html document: <svg height="0"> <mask id="mask-1"> <
lineargradient id="gradient-1" y2="1"> <stop stop-color="white" offset="0"/> <stop stop-opacity="0" offset="1"/> </
lineargradient> <circle cx="0.25" cy="0.25" r="0.25" id="circle" fill="white"/> <rect x="0.5" y="0.2" width="300" height="100" fill="url(#gradient-1)"/> </mask> </svg> .target { mask: url(#mask-1); } p { width: 300px; border: 1px solid #000; display: in...
...
line-block; } note that in the css, the mask is specified using a url to the id #mask-1, which is the id of the svg mask specified below it.
...</p> <button onclick="toggleradius()">toggle radius</button> <svg height="0"> <clippath id="clipping-path-1" clippathunits="objectboundingbox"> <circle cx="0.25" cy="0.25" r="0.25" id="circle"/> <rect x="0.5" y="0.2" width="0.5" height="0.8"/> </clippath> </svg> .target { clip-path: url(#clipping-path-1); } p { width: 300px; border: 1px solid #000; display: in
line-block; } this establishes a clipping area made of a circle and rectangle, assigns it the id #clipping-path-1, then references it in the css.
alphabetic - SVG: Scalable Vector Graphics
the alphabetic attribute defines the lower base
line of a font.
... it has the same syntax and semantics as the base
line descriptor within an @font-face.
... for horizontally oriented glyph layouts, it indicates the alignment coordinate for glyphs to achieve alphabetic base
line alignment.
color-rendering - SVG: Scalable Vector Graphics
for example, assume color-rendering: optimizespeed and color-interpolation-filters:
linearrgb.
... in this case, the svg user agent should perform color operations in a way that optimizes performance, which might mean sacrificing the color interpolation precision as specified by through the
linearrgb value for color-interpolation-filters.
... as a presentation attribute, it can be applied to any element but it only has an effect on the following 29 elements: <a>, <animate>, <animatecolor>, <circle>, <clippath>, <defs>, <ellipse>, <foreignobject>, <g>, <glyph>, <image>, <
line>, <
lineargradient>, <marker>, <mask>, <missing-glyph>, <path>, <pattern>, <polygon>, <poly
line>, <radialgradient>, <rect>, <svg>, <switch>, <symbol>, <text>, <textpath>, <tspan>, and <use> html, body, svg { height: 100%; } <svg viewbox="0 0 480 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="white"/> <stop offset="100%" stop-color="darkseag...
direction - SVG: Scalable Vector Graphics
the direction attribute specifies the in
line-base direction of a <text> or <tspan> element.
... it defines the start and end points of a
line of text as used by the text-anchor and in
line-size properties.
... it applies only to glyphs oriented perpendicular to the in
line-base direction, which includes the usual case of horizontally-oriented latin or arabic text and the case of narrow-cell latin or arabic characters rotated 90 degrees clockwise relative to a top-to-bottom in
line-base direction.
display - SVG: Scalable Vector Graphics
--> <rect x="0" y="0" width="100" height="100" fill="skyblue"></rect> <rect x="20" y="20" width="60" height="60" fill="yellow"></rect> <!-- here the yellow rectangle is not displayed --> <rect x="120" y="0" width="100" height="100" fill="skyblue"></rect> <rect x="140" y="20" width="60" height="60" fill="yellow" display="none"></rect> </svg> usage notes default value in
line value [ <display-outside> | <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>where <display-outside> = block | in
line | run-in<display-inside> = flow | flow-root | table | flex | grid | ruby<display-listitem> = <display-outside>?
...&& list-item<display-internal> = table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container<display-box> = contents | none<display-legacy> = in
line-block | in
line-list-item | in
line-table | in
line-flex | in
line-grid animatable yes for a description of the values, please refer to the css display property.
... candidate recommendation refers to the css 2 specification of the display property, but out
lines the differences regarding svg.
dx - SVG: Scalable Vector Graphics
seven elements are using this attribute: <altglyph>, <fedropshadow>, <feoffset>, <glyphref>, <text>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <!--
lines materialized the position of the glyphs --> <
line x1="0" x2="100%" y1="50%" y2="50%" /> <
line x1="10%" x2="10%" y1="0" y2="100%" /> <
line x1="60%" x2="60%" y1="0" y2="100%" /> <!-- some reference text --> <text x="10%" y="50%" fill="grey">svg</text> <!-- the same text with a shift along the x-axis --> <text dx="50%" x="10%" y="50%">svg</text> </svg>
line { stroke: red; stroke-width: .5px; stroke-dasharray: 3px; } altglyph warning: as o...
... value list of <length> default value none animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <!--
lines materialized the position of the glyphs --> <
line x1="0" x2="100%" y1="25%" y2="25%" /> <
line x1="0" x2="100%" y1="50%" y2="50%" /> <
line x1="0" x2="100%" y1="75%" y2="75%" /> <
line x1="10%" x2="10%" y1="0" y2="100%" /> <
line x1="30%" x2="30%" y1="0" y2="100%" /> <
line x1="60%" x2="60%" y1="0" y2="100%" /> <!-- behaviors change based on the number of values in the...
... attributes --> <text dx="20%" x="10%" y="25%">svg</text> <text dx="0 10%" x="10%" y="50%">svg</text> <text dx="0 10% 20%" x="10%" y="75%">svg</text> </svg>
line { stroke: red; stroke-width: .5px; stroke-dasharray: 3px; } tref warning: as of svg2 <tref> is deprecated and shouldn't be used.
dy - SVG: Scalable Vector Graphics
seven elements utilize this attribute: <altglyph>, <fedropshadow>, <feoffset>, <glyphref>, <text>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <!--
lines materialized the position of the glyphs --> <
line x1="10%" x2="10%" y1="0" y2="100%" /> <
line x1="0" x2="100%" y1="30%" y2="30%" /> <
line x1="0" x2="100%" y1="80%" y2="80%" /> <!-- some reference text --> <text x="10%" y="30%" fill="grey">svg</text> <!-- the same text with a shift along the y-axis --> <text dy="50%" x="10%" y="30%">svg</text> </svg>
line { stroke: red; stroke-width: .5px; stroke-dasharray: 3px; } altglyph warning: as...
... value list of <length> default value none animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 150 100" xmlns="http://www.w3.org/2000/svg"> <!-- horizontal
lines --> <
line x1="0" x2="100%" y1="30" y2="30" /> <
line x1="0" x2="100%" y1="40" y2="40" /> <
line x1="0" x2="100%" y1="50" y2="50" /> <
line x1="0" x2="100%" y1="60" y2="60" /> <!-- vertical
lines --> <
line x1="10" x2="10" y1="0" y2="100%" /> <
line x1="50" x2="50" y1="0" y2="100%" /> <
line x1="90" x2="90" y1="0" y2="100%" /> <!-- behaviors change based on the number of values in t...
...he attributes --> <text dy="20" x="10" y="30">svg</text> <text dy="0 10" x="50" y="30">svg</text> <text dy="0 10 20" x="90" y="30">svg</text> </svg>
line { stroke: red; stroke-width: .5px; stroke-dasharray: 3px; } tref warning: as of svg2 <tref> is deprecated and shouldn't be used.
intercept - SVG: Scalable Vector Graphics
the intercept attribute defines the intercept of the
linear function of color component transfers when the type attribute is set to
linear.
... four elements are using this attribute: <fefunca>, <fefuncb>, <fefuncg>, and <fefuncr> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <defs> <
lineargradient id="gradient" gradientunits="userspaceonuse" x1="0" y1="0" x2="200" y2="0"> <stop offset="0" stop-color="#ff0000" /> <stop offset="0.5" stop-color="#00ff00" /> <stop offset="1" stop-color="#0000ff" /> </
lineargradient> </defs> <filter id="componenttransfer1" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="
linear" intercept="0"/> <fefuncg type="
linear" intercept="0"/> <fefuncb type="
linear" intercept="0"/> </fecomponenttransfer> </filter> <filter id="componenttransfer2" x="0" y="0" wi...
...dth="100%" height="100%"> <fecomponenttransfer> <fefuncr type="
linear" intercept="0.3"/> <fefuncg type="
linear" intercept="0.1"/> <fefuncb type="
linear" intercept="0.8"/> </fecomponenttransfer> </filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects module level 1the definition of 'intercept' in that specification.
marker-end - SVG: Scalable Vector Graphics
for all shape elements, except <poly
line> and <path>, the last vertex is the same as the first vertex.
... as a presentation attribute, it can be applied to any element but it has effect only on the following seven elements: <circle>, <ellipse>, <
line>, <path>, <polygon>, <poly
line>, and <rect> html, body, svg { height: 100%; } <svg viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <defs> <marker id="triangle" viewbox="0 0 10 10" 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"/> </mark...
...er> </defs> <poly
line 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-start - SVG: Scalable Vector Graphics
for all shape elements, except <poly
line> and <path>, the last vertex is the same as the first vertex.
... as a presentation attribute, it can be applied to any element but it has effect only on the following seven elements: <circle>, <ellipse>, <
line>, <path>, <polygon>, <poly
line>, and <rect> html, body, svg { height: 100%; } <svg viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <defs> <marker id="triangle" viewbox="0 0 10 10" 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"/> </mark...
...er> </defs> <poly
line 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.
pathLength - SVG: Scalable Vector Graphics
seven elements are using this attribute: <circle>, <ellipse>, <
line>, <path>, <polygon>, <poly
line>, 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.
... value <number> default value none animatable yes
line for <
line>, pathlength lets authors specify a total length for the
line, in user units.
... value <number> default value none animatable yes poly
line for <poly
line>, pathlength lets authors specify a total length for the shape, in user units.
shape-rendering - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following seven elements: <circle>, <ellipse>, <
line>, <path>, <polygon>, <poly
line>, and <rect> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <circle cx="100" cy="100" r="100" shape-rendering="geometricprecision"/> <circle cx="320" cy="100" r="100" shape-rendering="crispedges"/> </svg> usage notes value auto | optimizespeed | crispedges | geometricprecision default value auto ...
...to achieve crisp edges, the user agent might turn off anti-aliasing for all
lines and curves or possibly just for straight
lines which are close to vertical or horizontal.
... also, the user agent might adjust
line positions and
line widths to align edges with device pixels.
stroke-dasharray - SVG: Scalable Vector Graphics
the stroke-dasharray attribute is a presentation attribute defining the pattern of dashes and gaps used to paint the out
line of the shape; note: as a presentation attribute, stroke-dasharray can be used as a css property.
... as a presentation attribute, it can be applied to any element, but it only has effect on the following twelve elements: <altglyph> <circle> <ellipse> <path> <
line> <polygon> <poly
line> <rect> <text> <textpath> <tref> <tspan> html,body,svg { height:100% } <svg viewbox="0 0 30 10" xmlns="http://www.w3.org/2000/svg"> <!-- no dashes nor gaps --> <
line x1="0" y1="1" x2="30" y2="1" stroke="black" /> <!-- dashes and gaps of the same size --> <
line x1="0" y1="3" x2="30" y2="3" stroke="black" stroke-dasharray="4" /> <!-- dashes and gaps of different sizes --> <
line x1="0" y1="5" x2="30" y2="5" stroke="black" stroke-dasharray="4 1" /> <!-- dashes and gaps of various sizes with an odd number of values --> <
line x1="0" y1="7" x2="30" y2=...
..."7" stroke="black" stroke-dasharray="4 1 2" /> <!-- dashes and gaps of various sizes with an even number of values --> <
line x1="0" y1="9" x2="30" y2="9" stroke="black" stroke-dasharray="4 1 2 3" /> </svg> usage notes value none | <dasharray> default value none animatable yes <dasharray> a list of comma and/or white space separated <length>s and <percentage>s that specify the lengths of alternating dashes and gaps.
stroke-miterlimit - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following nine elements: <altglyph>, <path>, <polygon>, <poly
line>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 38 30" 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 ,-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 and miter joins have been specified for stroke-
linejoin, it is possible for the miter to extend far beyond the thickness of the
line stroking the path.
target - SVG: Scalable Vector Graphics
this attribute specifies the name of the browsing context (e.g., a browser tab or an (x)html iframe or object element) into which a document is to be opened when the link is activated: only one element is using this attribute: <a> html, body, svg { height: 100%; } text { font: 20px arial, helvetica, sans-serif; fill: blue; text-decoration: under
line; } <svg viewbox="0 0 300 120" xmlns="http://www.w3.org/2000/svg"> <a href="https://developer.mozilla.org" target="_self"> <text x="0" y="20">open link within iframe</text> </a> <a href="https://developer.mozilla.org" target="_blank"> <text x="0" y="60">open link in new tab or window</text> </a> <a href="https://developer.mozilla.org" target="_top"> <text x="0" y="100">open...
... <xml-name> specifies the name of the browsing context (tab, in
line frame, object, etc.) for display of the linked content.
...the name must be a valid xml name [xml11], and should not start with an underscore (u+005f low
line character), to meet the requirements of a valid browsing context name from html.
text-anchor - SVG: Scalable Vector Graphics
the text-anchor attribute is used to align (start-, middle- or end-alignment) a string of pre-formatted text or auto-wrapped text where the wrapping area is determined from the in
line-size property relative to a given point.
...for multi-
line text, the alignment takes place for each
line.
...(for text on a path, conceptually the text string is first laid out in a straight
line.
vector-effect - SVG: Scalable Vector Graphics
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>, <poly
line>, <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 out
line with a specified paint.
...normally stroking involves calculating stroke out
line of the shapeʼs path in current user coordinate system and filling that out
line with the stroke paint (color or gradient).
<a> - SVG: Scalable Vector Graphics
see warning below */ svg|a:link, svg|a:visited { cursor: pointer; } svg|a text, text svg|a { fill: blue; /* even for text, svg uses fill over color */ text-decoration: under
line; } svg|a:hover, svg|a:active { out
line: dotted 1px blue; } since this element shares its tag name with html's <a> element, selecting a with css or queryselector may apply to the wrong kind of element.
...iredextensions, systemlanguage event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility xlink attributes most notably: xlink:title aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errorme...
...ssage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriescontainer elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobj...
<solidcolor> - SVG: Scalable Vector Graphics
a workaround is to use a <
lineargradient> with only one color stop.
...--> <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, but it works in current browsers.
... --> <
lineargradient id="mygradient"> <stop offset="0" stop-color="green" /> </
lineargradient> </defs> <text x="10" y="20">circles colored with solidcolor</text> <circle cx="150" cy="65" r="35" stroke-width="2" stroke="url(#mycolor)" fill="white"/> <circle cx="50" cy="65" r="35" fill="url(#mycolor)"/> <text x="10" y="120">circles colored with
lineargradient</text> <circle cx="150" cy="165" r="35" stroke-width="2" stroke="url(#mygradient)" fill="white"/> <circle cx="50" cy="165" r="35" fill="url(#mygradient)"/> </svg> result ...
Texts - SVG: Scalable Vector Graphics
the attribute dominant-base
line decides the vertical alignment.
... <text> this is <tspan font-weight="bold" fill="red">bold and red</tspan> </text> playable code <svg width="350" height="60" xmlns="http://www.w3.org/2000/svg"> <text> this is <tspan font-weight="bold" fill="red">bold and red</tspan> </text> <style><![cdata[ text{ dominant-base
line: hanging; font: 28px verdana, helvetica, arial, sans-serif; } ]]></style> </svg> the tspan element has the following custom attributes: x set a new absolute x coordinate for the containing text.
... </textpath> </text> <style><![cdata[ text{ dominant-base
line: hanging; font: 28px verdana, helvetica, arial, sans-serif; } ]]></style> </svg> « previousnext » ...
xml:base - XML: Extensible Markup Language
use cases if you have an in
line svg you use as icons that needs to work in a document with a html baseelement , you can reset the uri on your icon sprite by setting the xml:base.
...d> <base href="https://mydomain.com"> <style> .link { stroke: #999; stroke-opacity: .6; } marker#arrow { fill: black; } </style> </head> <body> <svg width="100%" height="100%" xml:base=""> <defs> <marker id="arrow" viewbox="0 -5 10 10" refx="0" refy="0" markerwidth="20" markerheight="20" orient="auto"> <path d="m0,-5l10,0l0,5"></path> </marker> </defs> <
line x1="100" y1="100" x2="333" y2="333" marker-start="url(#arrow)" class="link"></
line> </svg> </body> </html> imagine a svg with font references.
..."><![cdata[ .s9_999{ font-size: 9.17px; font-family: zapfdingbats_ghr; fill: #161615; } ]]></style> <text x="647" y="412" dx="0" class="s9_999" >r</text> <style type="text/css"><![cdata[ @font-face { font-family: zapfdingbats_ghr; src: url("fonts/zapfdingbats_ghr.woff") format("woff"); } ]]></style> </svg> setting the xml:base on the svg element means you can in
line the svg and thereby bypass cors issue while not changing the base uri for your entire document.
WebAssembly Concepts - WebAssembly
memory: a resizable arraybuffer that contains the
linear array of bytes read and written by webassembly’s low-level memory access instructions.
... let’s talk about these options: porting from c/c++ two of the many options for creating wasm code are an on
line wasm assembler or emscripten.
... there are a number of on
line wasm assembler choices, such as: wasmfiddle wasmfiddle++ wasmexplorer these are great resources for people who are trying to figure out where to start, but they lack some of the tooling and optimizations of emscripten.
Compiling from Rust to WebAssembly - WebAssembly
we give a high-level explanation here, and gloss over some details; to learn more about rust, please check the free on
line book the rust programming language.
... the third
line contains a use command, which imports code from a library into your code.
... the third
line is a function signature, written in rust.
2015 MDN Fellowship Program - Archive of obsolete content
they enable the creation of effective off
line experiences and wiill also allow access to push notifications and background sync apis.
... github: chrisdavidmills twitter: @chrisdavidmills why increase the reach and impact of your expertise grow your skills beyond coding and managing to educating and communicating build something used by hundreds of thousands (or more) developers worldwide directly impact and grow the value of the open web when application dead
line: april 1, 2015 orientation: early june (dates tbd) graduation: august 11-12, 2015 where orientation: a mozilla location (tbd).
Loading Content Scripts - Archive of obsolete content
to supply the file "my-content-script.js", located in the /data subdirectory under your add-on's root directory, use a
line like: // "data" is supplied by the "self" module var data = require("sdk/self").data; ...
...this enables you to load a javascript library like jquery by url, then pass in a simple script in
line that can use jquery.
panel - Archive of obsolete content
var textarea = document.getelementbyid("edit-box"); textarea.addeventlistener('keyup', function onkeyup(event) { if (event.keycode == 13) { // remove the new
line.
...var textarea = document.getelementbyid("edit-box"); textarea.addeventlistener('keyup', function onkeyup(event) { if (event.keycode == 13) { // remove the new
line.
passwords - Archive of obsolete content
you can store different sorts of credentials, as out
lined in the "credentials" section below.
...different sorts of stored credentials include various additional properties, as out
lined in this section.
Sizing items in CSS - Learn web development
if you add a <div> to your html with no content, then give it a border as we did with the image, you will see a
line on the page.
... when you use margin and padding set in percentages, the value is calculated from the in
line size — therefore the width when working in a horizontal language.
Supporting older browsers - Learn web development
display: in
line-block this method can be used to create column layouts, if an item has display: in
line-block set but then becomes a flex or grid item, the in
line-block behaviour is ignored.
...one way is to use an on
line testing tool such as sauce labs, as detailed in the cross browser testing module.
What is CSS? - Learn web development
headings will look larger than regular text, paragraphs break onto a new
line and have space between them.
... links are colored and under
lined to distinguish them from the rest of the text.
Learn to style HTML using CSS - Learn web development
the aim here is to provide you with a toolkit for writing competent css and help you understand all the essential theory, before moving on to more specific discip
lines like text styling and css layout.
...here we look at text styling fundamentals, including setting font, boldness, italics,
line and letter spacing, drop shadows and other text features.
What do common web layouts contain? - Learn web development
a typical one-column layout providing all the information
linearly on one page.
...because the image on the top-right is l-shaped, because b1 looks like a column supporting the shifted main content, and because the "m" and "i" of the mica logo create a vertical
line of force.
How do you host your website on Google App Engine? - Learn web development
run the following in the command
line to select your project: gcloud config set project gaesamplesite then run the following command to go to your app's directory: cd sample-app you are now ready to deploy your application, i.e.
... now navigate your browser to your-project-id.appspot.com to see your website on
line.
What software do I need to build a website? - Learn web development
other formats, like rtf, let you to add formatting, like bold or under
line.
... shiftedit sublime text linux vi (all unix) gedit (gnome) kate (kde) leafpad (xfce) emacs vim visual studio code brackets shiftedit sublime text chrome os shiftedit here is a screenshot of an advanced text editor: here is a screenshot of an on
line text editor: uploading files on the web when your website is ready for public viewing, you'll have to upload your webpages to your web server.
Common questions - Learn web development
so you've published your website on
line — very good!
... this article shows how to publish your site on
line with ftp tools — one of the most common ways to get a website on
line so others can access it from their computers.
Example 2 - Learn web development
>lemon</li> <li class="option">banana</li> <li class="option">strawberry</li> <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 : in
line-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; out
line: 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-b...
...ox-sizing : border-box; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1px 25px 2px 5px */ width : 10em; /* 100px */ border : 0.2em solid #000; /* 2px */ border-radius : 0.4em; /* 4px */ box-shadow : 0 0.1em 0.2em rgba(0,0,0,.45); /* 0 1px 2px */ background : #f0f0f0; background : -webkit-
linear-gradient(90deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); background :
linear-gradient(0deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); } .select .value { display : in
line-block; width : 100%; overflow : hidden; white-space : nowrap; text-overflow : ellipsis; vertical-align: top; } .select:after { content : "▼"; position: absolute; z-index : 1; height : 100%; width : 2em; /* 20px */ top : 0; right : 0; padding-top : .1em; -mo...
Example 3 - Learn web development
emon</li> <li class="option">banana</li> <li class="option">strawberry</li> <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 : in
line-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; out
line: 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-b...
...ox-sizing : border-box; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1px 25px 2px 5px */ width : 10em; /* 100px */ border : 0.2em solid #000; /* 2px */ border-radius : 0.4em; /* 4px */ box-shadow : 0 0.1em 0.2em rgba(0,0,0,.45); /* 0 1px 2px */ background : #f0f0f0; background : -webkit-
linear-gradient(90deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); background :
linear-gradient(0deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); } .select .value { display : in
line-block; width : 100%; overflow : hidden; white-space : nowrap; text-overflow : ellipsis; vertical-align: top; } .select:after { content : "▼"; position: absolute; z-index : 1; height : 100%; width : 2em; /* 20px */ top : 0; right : 0; padding-top : .1em; -mo...
Example 4 - Learn web development
emon</li> <li class="option">banana</li> <li class="option">strawberry</li> <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 : in
line-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; out
line: 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-b...
...ox-sizing : border-box; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1px 25px 2px 5px */ width : 10em; /* 100px */ border : 0.2em solid #000; /* 2px */ border-radius : 0.4em; /* 4px */ box-shadow : 0 0.1em 0.2em rgba(0,0,0,.45); /* 0 1px 2px */ background : #f0f0f0; background : -webkit-
linear-gradient(90deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); background :
linear-gradient(0deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); } .select .value { display : in
line-block; width : 100%; overflow : hidden; white-space : nowrap; text-overflow : ellipsis; vertical-align: top; } .select:after { content : "▼"; position: absolute; z-index : 1; height : 100%; width : 2em; /* 20px */ top : 0; right : 0; padding-top : .1em; -mo...
Example 5 - Learn web development
ption">banana</li> <li class="option" role="option">strawberry</li> <li class="option" 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 : in
line-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; out
line: 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-b...
...ox-sizing : border-box; box-sizing : border-box; padding : 0.1em 2.5em 0.2em 0.5em; /* 1px 25px 2px 5px */ width : 10em; /* 100px */ border : 0.2em solid #000; /* 2px */ border-radius : 0.4em; /* 4px */ box-shadow : 0 0.1em 0.2em rgba(0,0,0,.45); /* 0 1px 2px */ background : #f0f0f0; background : -webkit-
linear-gradient(90deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); background :
linear-gradient(0deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); } .select .value { display : in
line-block; width : 100%; overflow : hidden; white-space : nowrap; text-overflow : ellipsis; vertical-align: top; } .select:after { content : "▼"; position: absolute; z-index : 1; height : 100%; width : 2em; /* 20px */ top : 0; right : 0; padding-top : .1em; -mo...
Sending forms through JavaScript - Learn web development
ata data += 'content-disposition: form-data; ' // define the name of the form data + 'name="' + file.dom.name + '"; ' // provide the real name of the file + 'filename="' + file.dom.files[0].name + '"\r\n'; // and the mime type of the file data += 'content-type: ' + file.dom.files[0].type + '\r\n'; // there's a blank
line between the metadata and the data data += '\r\n'; // append the binary data to our body's request data += file.binary + '\r\n'; } // text data is simpler // start a new part in our body's request data += "--" + boundary + "\r\n"; // say it's form data, and name it data += 'content-disposition: form-data; name="' + text.name + '"\r\n'; // there's a ...
...blank
line between the metadata and the data data += '\r\n'; // append the text data to our body's request data += text.value + "\r\n"; // once we are done, "close" the body's request data += "--" + boundary + "--"; // define what happens on successful data submission xhr.addeventlistener( 'load', function( event ) { alert( 'yeah!
Example - Learn web development
ton type="submit">send your message</button> </div> </form> css content form { /* just to center the form on the page */ margin: 0 auto; width: 400px; /* to see the limits of the form */ padding: 1em; border: 1px solid #ccc; border-radius: 1em; } div + div { margin-top: 1em; } label { /* to make sure that all label have the same size and are properly align */ display: in
line-block; width: 90px; text-align: right; } input, textarea { /* to make sure that all text field have the same font settings by default, textarea are set with a monospace font */ font: 1em sans-serif; /* to give the same size to all text field */ width: 300px; -moz-box-sizing: border-box; box-sizing: border-box; /* to harmonize the look & feel of text field border */...
... border: 1px solid #999; } input:focus, textarea:focus { /* to give a little highligh on active elements */ border-color: #000; } textarea { /* to properly align multi
line text field with their label */ vertical-align: top; /* to give enough room to type some text */ height: 5em; /* to allow users to resize any textarea vertically it works only on chrome, firefox and safari */ resize: vertical; } .button { /* to position the buttons to the same position of the text fields */ padding-left: 90px; /* same size as the label elements */ } button { /* this extra magin represent the same space as the space between the labels and their text fields */ margin-left: .5em; } result ...
Web Audio Editor - Firefox Developer Tools
connections between nodes are displayed as solid
lines.
... if, instead, you've connected a node to an audioparam in another node, then the connection is shown as a dashed
line between the nodes, and is labeled with the name of the audioparam: inspecting and modifying audionodes if you click on a node, it's highlighted and you get a node inspector on the right hand side.
AbstractRange - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/abstractrange" target="_top"><rect x="1" y="1" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2...
...px" /><text x="66" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">abstractrange</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties collapsed read only a boolean value which is true if the range is collapsed.
AnalyserNode.getByteFrequencyData() - Web APIs
the frequencies are spread
linearly from 0 to 1/2 of the sample rate.
...for more examples/information, check out our voice-change-o-matic demo (see app.js
lines 128–205 for relevant code).
AnalyserNode.getByteTimeDomainData() - Web APIs
for more complete applied examples/information, check out our voice-change-o-matic demo (see app.js
lines 128–205 for relevant code).
... 2048; const bufferlength = analyser.fftsize; const dataarray = new uint8array(bufferlength); analyser.getbytetimedomaindata(dataarray); // draw an oscilloscope of the current audio source function draw() { drawvisual = requestanimationframe(draw); analyser.getbytetimedomaindata(dataarray); canvasctx.fillstyle = 'rgb(200, 200, 200)'; canvasctx.fillrect(0, 0, width, height); canvasctx.
linewidth = 2; canvasctx.strokestyle = 'rgb(0, 0, 0)'; const slicewidth = width * 1.0 / bufferlength; let x = 0; canvasctx.beginpath(); for(var i = 0; i < bufferlength; i++) { const v = dataarray[i]/128.0; const y = v * height/2; if(i === 0) canvasctx.moveto(x, y); else canvasctx.
lineto(x, y); x += slicewidth; } canvasctx.
lineto(width, height/2); ca...
AnimationEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">animationevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor animationevent() creates an animationevent event with the given parameters.
AudioDestinationNode - Web APIs
it can also be the node that will "record" the audio data when used with an off
lineaudiocontext.
...their speakers), so you can get it hooked up inside an audio graph using only a few
lines of code: var audioctx = new audiocontext(); var source = audioctx.createmediaelementsource(mymediaelement); source.connect(gainnode); gainnode.connect(audioctx.destination); to see a more complete implementation, check out one of our mdn web audio examples, such as voice-change-o-matic or violent theremin.
AudioNode - Web APIs
a filter like biquadfilternode or convolvernode), or volume control (like gainnode) <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><t...
...ext x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">audionode</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} note: an audionode can be target of events, therefore it implements the eventtarget interfac...
AudioParam - Web APIs
audioparam.
linearramptovalueattime() schedules a gradual
linear change in the value of the audioparam.
... the change starts at the time specified for the previous event, follows a
linear ramp to the new value given in the value parameter, and reaches the new value at the time given in the endtime parameter.
BasicCardResponse - Web APIs
fox full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled preference (needs to be set to true) and the dom.payments.request.supportedregions preference (needs to be set to a comma-de
lineated list of one or more 2-character iso country codes indicating the countries in which to support payments (for example, us,ca.).
...oid full support 56notes disabled full support 56notes disabled notes available only in nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled preference (needs to be set to true) and the dom.payments.request.supportedregions preference (needs to be set to a comma-de
lineated list of one or more 2-character iso country codes indicating the countries in which to support payments (for example, us,ca.).
BeforeInstallPromptEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 8.571428571428571%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 60" preserveaspectratio="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-...
...base
line="middle">event</text></a><poly
line 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-base
line="middle">beforeinstallpromptevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor beforeinstallpromptevent() creates a new beforeinstallpromptevent.
BeforeUnloadEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">beforeunloadevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} bubbles no cancelable yes target objects defaultview inter...
BluetoothDevice - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line points="111,25 121,20 1...
...21,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-base
line="middle">bluetoothdevice</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} interface interface bluetoothdevice { readonly attribute domstring id; readonly attribute domstring?
BroadcastChannel - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">broadcastchannel</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor broadcastchannel() creates an object linking to the named ...
CSSCounterStyleRule - Web APIs
inheritance this interface inherits from the following parent interfaces: <div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin 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-base
line="middle">cssrule</text></a><poly
line 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-base
line="middle">csscounterstylerule</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent cssrule.
CSSImageValue - Web APIs
the cssimagevalue object represents an <image> that involves an url, such as url() or image(), but not
linear-gradient() or element() .
... examples we create an element <button>magic wand</button> we add some css, including a background image requesting a binary file: button { display: in
line-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.
CSSPrimitiveValue - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin 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" /><te...
...xt x="41" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">cssvalue</text></a><poly
line 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-base
line="middle">cssprimitivevalue</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, cssvalue.
CSSValueList - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin 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" /><te...
...xt x="41" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">cssvalue</text></a><poly
line 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-base
line="middle">cssvaluelist</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, cssvalue.
CSS Painting API - Web APIs
c get contextoptions() { return {alpha: true}; } paint(ctx, size, props, args) { const x = 0; const y = size.height * 0.3; const blockwidth = size.width * 0.33; const blockheight = size.height * 0.85; const thecolor = props.get( '--boxcolor' ); const stroketype = args[0].tostring(); 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( blockwid...
...th, 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); ctx.
lineto( blockwidth + (start * 10) + 20, y); ctx.
lineto( blockwidth + (start * 10) + 20 + blockheight, blockheight); ctx.
lineto( blockwidth + (start * 10) + 10 + blockheight, blockheight); ctx.
lineto( blockwidth + (start * 10) + 10, y); ctx.closepath(); ctx.fill(); ctx.stroke(); } } }); we then include the paintworklet: <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> <li>item 4</li> <li>item 5</li> <li>item 6</li> <li>item 7</li> <li>ite...
Cache.match() - Web APIs
examples this example is taken from the custom off
line page example (live demo).
... if (event.request.method === 'get' && event.request.headers.get('accept').indexof('text/html') !== -1) { console.log('handling fetch event for', event.request.url); event.respondwith( fetch(event.request).catch(function(e) { console.error('fetch failed; returning off
line page instead.', e); return caches.open(off
line_cache).then(function(cache) { return cache.match(off
line_url); }); }) ); } }); specifications specification status comment service workersthe definition of 'cache match' in that specification.
CanvasGradient.addColorStop() - Web APIs
examples adding stops to a gradient this example uses the addcolorstop method to add stops to a
linear canvasgradient object.
... html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); let gradient = ctx.create
lineargradient(0, 0, 200, 0); gradient.addcolorstop(0, 'green'); gradient.addcolorstop(.7, 'white'); gradient.addcolorstop(1, 'pink'); ctx.fillstyle = gradient; ctx.fillrect(10, 10, 200, 100); result specifications specification status comment html living standardthe definition of 'canvasgradient.addcolorstop' in that specification.
CanvasRenderingContext2D.addHitRegion() - Web APIs
html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); canvas.addeventlistener('mousemove', function(event) { if(event.region) { alert('ouch, my eye :('); } }); ctx.beginpath(); ctx.arc(100, 100, 75, 0, 2 * math.pi); ctx.
linewidth = 5; ctx.stroke(); // eyes ctx.beginpath(); ctx.arc(70, 80, 10, 0, 2 * math.pi); ctx.arc(130, 80, 10, 0, 2 * math.pi); ctx.fill(); ctx.addhitregion({id: "eyes"}); // mouth ctx.beginpath(); ctx.arc(100, 110, 50, 0, math.pi); ctx.stroke(); edit the code below to see your changes update live in the canvas.
...ht need to activate a preference.) playable code <canvas id="canvas" width="400" height="200" class="playable-canvas"></canvas> <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:250px"> ctx.beginpath(); ctx.arc(100, 100, 75, 0, 2 * math.pi, false); ctx.
linewidth = 5; ctx.stroke(); // eyes ctx.beginpath(); ctx.arc(70, 80, 10, 0, 2 * math.pi, false); ctx.arc(130, 80, 10, 0, 2 * math.pi, false); ctx.fill(); ctx.addhitregion({id: "eyes"}); // mouth ctx.beginpath(); ctx.arc(100, 110, 50, 0, math.pi, false); ctx.stroke();</textarea> var canvas = document.getelementbyid("canvas"); var ctx = canvas.getcontext("2d"); var textarea = document.getelementbyi...
CanvasRenderingContext2D.fill() - Web APIs
html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.rect(10, 10, 150, 100); ctx.fill(); result specifying a path and a fillrule this example saves some intersecting
lines to a path2d object.
... html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); // create path let region = new path2d(); region.moveto(30, 90); region.
lineto(110, 20); region.
lineto(240, 130); region.
lineto(60, 130); region.
lineto(190, 20); region.
lineto(270, 90); region.closepath(); // fill path ctx.fillstyle = 'green'; ctx.fill(region, 'evenodd'); result specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d.fill' in that specification.
CanvasRenderingContext2D.shadowColor - Web APIs
html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); // shadow ctx.shadowcolor = 'red'; ctx.shadowoffsetx = 10; ctx.shadowoffsety = 10; // filled rectangle ctx.fillrect(20, 20, 100, 100); // stroked rectangle ctx.
linewidth = 6; ctx.strokerect(170, 20, 100, 100); result shadows on translucent shapes a shadow's opacity is affected by the transparency level of its parent object (even when shadowcolor specifies a completely opaque value).
... const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); // shadow ctx.shadowcolor = 'rgba(255, 0, 0, .8)'; ctx.shadowblur = 8; ctx.shadowoffsetx = 30; ctx.shadowoffsety = 20; // filled rectangle ctx.fillstyle = 'rgba(0, 255, 0, .2)'; ctx.fillrect(10, 10, 150, 100); // stroked rectangle ctx.
linewidth = 10; ctx.strokestyle = 'rgba(0, 0, 255, .6)'; ctx.strokerect(10, 10, 150, 100); result specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d.shadowcolor' in that specification.
CanvasRenderingContext2D.strokeStyle - Web APIs
the canvasrenderingcontext2d.strokestyle property of the canvas 2d api specifies the color, gradient, or pattern to use for the strokes (out
lines) around shapes.
... gradient a canvasgradient object (a
linear or radial gradient).
A basic ray-caster - Web APIs
the height of the sliver is also modulated by the distance from the camera to the wall, and is drawn centered over the horizon
line.
... the code i ended up with is a regurgitated amalgam of the raycaster chapters from an old andré lamothetricks of the game programming gurus book (isbn: 0672305070), and a java raycaster i found on
line, filtered through my compulsion to rename everything so it makes sense to me, and all the tinkering that had to be done to make things work well.
Compositing example - Web APIs
le = "#f00"; ctx.fillrect(0,0,30,30) ctx.fill(); }; var colorsphere = function(element) { var ctx = canvas1.getcontext("2d"); var width = 360; var halfwidth = width / 2; var rotate = (1 / 360) * math.pi * 2; // per degree var offset = 0; // scrollbar offset var oleft = -20; var otop = -20; for (var n = 0; n <= 359; n ++) { var gradient = ctx.create
lineargradient(oleft + halfwidth, otop, oleft + halfwidth, otop + halfwidth); var color = color.hsv_rgb({ h: (n + 300) % 360, s: 100, v: 100 }); gradient.addcolorstop(0, "rgba(0,0,0,0)"); gradient.addcolorstop(0.7, "rgba("+color.r+","+color.g+","+color.b+",1)"); gradient.addcolorstop(1, "rgba(255,255,255,1)"); ctx.beginpath(); ctx.moveto(oleft + halfwidt...
...h, otop); ctx.
lineto(oleft + halfwidth, otop + halfwidth); ctx.
lineto(oleft + halfwidth + 6, otop); ctx.fillstyle = gradient; ctx.fill(); ctx.translate(oleft + halfwidth, otop + halfwidth); ctx.rotate(rotate); ctx.translate(-(oleft + halfwidth), -(otop + halfwidth)); } ctx.beginpath(); ctx.fillstyle = "#00f"; ctx.fillrect(15,15,30,30) ctx.fill(); return ctx.canvas; }; // hsv (1978) = h: hue / s: saturation / v: value color = {}; color.hsv_rgb = function (o) { var h = o.h / 360, s = o.s / 100, v = o.v / 100, r, g, b; var a, b, c, d; if (s == 0) { r = g = b = math.round(v * 255); } else { if (h >= 1) h = 0; h = 6 * h; d = h - math.floor(h); ...
Using images - Web APIs
example: a simple
line graph in the following example, we will use an external image as the backdrop for a small
line graph.
... <html> <body onload="draw();"> <canvas id="canvas" width="180" height="150"></canvas> </body> </html> function draw() { var ctx = document.getelementbyid('canvas').getcontext('2d'); var img = new image(); img.onload = function() { ctx.drawimage(img, 0, 0); ctx.beginpath(); ctx.moveto(30, 96); ctx.
lineto(70, 66); ctx.
lineto(103, 76); ctx.
lineto(170, 15); ctx.stroke(); }; img.src = 'https://mdn.mozillademos.org/files/5395/backdrop.png'; } the resulting graph looks like this: screenshotlive sample scaling the second variant of the drawimage() method adds two new parameters and lets us place scaled images on the canvas.
CompositionEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line points="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><
line x1="8...
...6" 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-base
line="middle">uievent</text></a><poly
line 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-basel...
ContentIndex - Web APIs
the contentindex interface of the content index api allows developers to register their off
line enabled content with the browser.
...orker.ready; // get our index entries const entries = await registration.index.getall(); // create a containing element const readinglistelem = document.createelement('div'); // test for entries if (!array.length) { // if there are no entries, display a message const message = document.createelement('p'); message.innertext = 'you currently have no articles saved for off
line reading.' readinglistelem.append(message); } else { // if entries are present, display in a list of links to the content const listelem = document.createelement('ul'); for (const entry of entries) { const listitem = document.createelement('li'); const anchorelem = document.createelement('a'); anchorelem.innertext = entry.title; anchorelem.setattribut...
ConvolverNode - Web APIs
the convolvernode interface is an audionode that performs a
linear convolution on a given audiobuffer, often used to achieve a reverb effect.
... note: for more information on the theory behind
linear convolution, see the convolution article on wikipedia.
DOMRect - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/domrectreadonly" target="_top"><rect x="1" y="1" width="150" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2p...
...x" /><text x="76" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">domrectreadonly</text></a><poly
line 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-base
line="middle">domrect</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor domrect() creates a new domrect object.
DelayNode() - Web APIs
the delaynode() constructor of the web audio api creates a new delaynode object with a delay-
line; an audionode audio-processing module that causes a delay between the arrival of an input data, and its propagation to the output.
... context a reference to an audiocontext or off
lineaudiocontext.
DocumentType - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">node</text></a><poly
line 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-base
line="middle">documentty...
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
for example, if you want to set the style background color property, you just add: myp.style.background = "rgb(255,0,0)"; // setting in
line style attribute creating textnodes with document.createtextnode("..") use the document object to invoke the createtextnode method and create your text node.
... at the end of the start function, there is a new
line of code.
Document Object Model (DOM) - Web APIs
gfilterprimitivestandardattributes svgfontelement svgfontfaceelement svgfontfaceformatelement svgfontfacenameelement svgfontfacesrcelement svgfontfaceurielement svgforeignobjectelement svggelement svggeometryelement svgglyphelement svgglyphrefelement svggradientelement svggraphicselement svghatchelement svghatchpathelement svghkernelement svgimageelement svg
lineargradientelement svg
lineelement svgmarkerelement svgmaskelement svgmeshelement svgmeshgradientelement svgmeshpatchelement svgmeshrowelement svgmetadataelement svgmissingglyphelement svgmpathelement svgpathelement svgpatternelement svgpoly
lineelement svgpolygonelement svgradialgradientelement svgrectelement svgscriptelement svgsetelement svgsolidcolorelement svgst...
... static type svgangle svgcolor svgicccolor svgelementinstance svgelementinstancelist svglength svglengthlist svgmatrix svgnamelist svgnumber svgnumberlist svgpaint svgpathseg svgpathsegclosepath svgpathsegmovetoabs svgpathsegmovetorel svgpathseg
linetoabs svgpathseg
linetorel svgpathsegcurvetocubicabs svgpathsegcurvetocubicrel svgpathsegcurvetoquadraticabs svgpathsegcurvetoquadraticrel svgpathsegarcabs svgpathsegarcrel svgpathseg
linetohorizontalabs svgpathseg
linetohorizontalrel svgpathseg
linetoverticalabs svgpathseg
linetoverticalrel svgpathsegcurvetocubicsmoothabs svgpathsegcurvetocubicsmoothrel svgpat...
EffectTiming.easing - Web APIs
defaults to
linear.
... available values include:
linear a constant rate of change, neither accelerating nor deccelerating.
EffectTiming - Web APIs
accepts the pre-defined values "
linear", "ease", "ease-in", "ease-out", and "ease-in-out", or a custom "cubic-bezier" value like "cubic-bezier(0.42, 0, 0.58, 1)".
... defaults to "
linear".
Element: MozMousePixelScroll event - Web APIs
bubbles yes cancelable yes interface mousescrollevent getting the distance scrolled the event's detail property indicates the scroll distance in terms of
lines, with negative values indicating the scrolling movement is either toward the bottom or toward the right, and positive values indicating scrolling to the top or left.
... if the platform's native mouse wheel events indicate the scroll distance in terms of
lines or pages, the value of detail is computed using that value and the
line height or page width/height of the nearest ancestor scrollable element that contains the target element.
Element.animate() - Web APIs
accepts the pre-defined values "
linear", "ease", "ease-in", "ease-out", and "ease-in-out", or a custom "cubic-bezier" value like "cubic-bezier(0.42, 0, 0.58, 1)".
... defaults to "
linear".
Element: mousewheel event - Web APIs
bubbles yes cancelable yes interface mousewheelevent event handler property onmousewheel the detail property the value of the detail property is always zero, except in opera, which uses detail similarly to the firefox-only dommousescroll event's detail value, which indicates the scroll distance in terms of
lines, with negative values indicating the scrolling movement is either toward the bottom or toward the right, and positive values indicating scrolling to the top or left.
... on windows, since the detail attribute value is computed from actual scroll amount, the value is different from other browsers except the scroll amount per notch is 3
lines in system settings or a page.
EventTarget - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#f4f7f8" 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-base
line="middle">eventtarget</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor eventtarget() creates a new eventtarget object instance.
ExtendableEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 8.571428571428571%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 60" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">extendableevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} note: this interface is only available when the global scope is a serviceworkerglobalscope.
File - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">blob</text></a><poly
line 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-base
line="middle">file</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor file() returns a newly constructed file.
FileError - Web APIs
quota_exceeded_err 10 either there's not enough remaining storage space or the storage quota was reached and the user dec
lined to give more space to the database.
... to ask for more storage, see managing html5 off
line storage.
HTMLCanvasElement.toBlob() - Web APIs
var canvas = document.getelementbyid('canvas'); var d = canvas.width; ctx = canvas.getcontext('2d'); ctx.beginpath(); ctx.moveto(d / 2, 0); ctx.
lineto(d, d); ctx.
lineto(0, d); ctx.closepath(); ctx.fillstyle = 'yellow'; ctx.fill(); function blobcallback(iconname) { return function(b) { var a = document.createelement('a'); a.textcontent = 'download'; document.body.appendchild(a); a.style.display = 'block'; a.download = iconname + '.ico'; a.href = window.url.createobjecturl(b); } } canvas.toblob(blobcallback('passthi...
... var canvas = document.getelementbyid('canvas'); var d = canvas.width; ctx = canvas.getcontext('2d'); ctx.beginpath(); ctx.moveto(d / 2, 0); ctx.
lineto(d, d); ctx.
lineto(0, d); ctx.closepath(); ctx.fillstyle = 'yellow'; ctx.fill(); function blobcallback(iconname) { return function(b) { var r = new filereader(); r.onloadend = function () { // r.result contains the arraybuffer.
HTMLCanvasElement.toDataURL() - Web APIs
examples given this <canvas> element: <canvas id="canvas" width="5" height="5"></canvas> you can get a data-url of the canvas with the following
lines: var canvas = document.getelementbyid('canvas'); var dataurl = canvas.todataurl(); console.log(dataurl); // "data:image/png;base64,ivborw0kggoaaaansuheugaaaauaaaafcayaaacnby // blaaaadeleqvqimwngobmaaabpaafei8araaaaaelftksuqmcc" setting image quality with jpegs var fullquality = canvas.todataurl('image/jpeg', 1.0); // data:image/jpeg;base64,/9j/4aaqskzjrgabaq...9oadambaairaxeapwd/ad/6ap/z" v...
...color in this example): html <img class="grayscale" src="mypicture.png" alt="description of my picture" /> javascript window.addeventlistener('load', removecolors); function showcolorimg() { this.style.display = 'none'; this.nextsibling.style.display = 'in
line'; } function showgrayimg() { this.previoussibling.style.display = 'in
line'; this.style.display = 'none'; } function removecolors() { var aimages = document.getelementsbyclassname('grayscale'), nimgslen = aimages.length, ocanvas = document.createelement('canvas'), octx = ocanvas.getcontext('2d'); for (var nwidth, nheight, oimgdata, ograyimg, npixel, apix, npixlen, nimgi...
HTMLElement.offsetHeight - Web APIs
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.
HTMLFormControlsCollection - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a 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-base
line="middle">htmlcollection</text></a><poly
line 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-base
line="middle">htmlformcontrolscollection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of its parent, htmlcollect...
HTMLFrameSetElement - Web APIs
windoweventhandlers.onoff
line is an eventhandler representing the code to be called when the off
line event is raised.
... windoweventhandlers.onon
line is an eventhandler representing the code to be called when the on
line event is raised.
HTMLImageElement.alt - Web APIs
usage notes the fundamental guide
line for the alt attribute is that every image's alternate text should be able to replace the image without altering the meaning of the page.
... examples beyond that, there are additional guide
lines for using alt appropriately which vary depending on what the image is being used for.
HTMLImageElement.sizes - Web APIs
html <article> <h1>an amazing head
line</h1> <div class="test"></div> <p>this is even more amazing content text.
...award-winning stuff, i'm sure.</p> <img src="/files/16870/new-york-sky
line-wide.jpg" srcset="/files/16870/new-york-sky
line-wide.jpg 3724w, /files/16869/new-york-sky
line-4by3.jpg 1961w, /files/16871/new-york-sky
line-tall.jpg 1060w" sizes="((min-width: 50em) and (max-width: 60em)) 50em, ((min-width: 30em) and (max-width: 50em)) 30em, (max-width: 30em) 20em"> <p>then there's even more amazing stuff to say down here.
HTMLOptionsCollection - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a 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-base
line="middle">htmlcollection</text></a><poly
line 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-base
line="middle">htmloptionscollection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties name type description length unsigned long as optionally allowed by the spec...
HashChangeEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle...
...">event</text></a><poly
line 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-base
line="middle">hashchangeevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits the properties of its parent, event.
IDBCursorWithValue - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin 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" /><t...
...ext x="46" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">idbcursor</text></a><poly
line 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-base
line="middle">idbcursorwithvalue</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} methods inherits methods from its parent interface, idbcursor.
IDBObjectStoreSync - Web APIs
data_err if this object store uses out-of-
line keys, and the key parameter was not passed.
... data_err if this object store uses out-of-
line keys and no key generator, but no key was given.
IDBRequest - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">idbrequest</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits properties from eventtarget.
IDBTransaction - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">idbtransaction</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} transactions are started when the transaction is created, not when the first r...
InputEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">uievent</text></a><poly
line 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-base
line="midd...
InterventionReportBody - Web APIs
linenumber a number representing the
line in the source file in which the intervention occurred, if known, or null otherwise.
... examples let options = { types: ['intervention'], buffered: true } let observer = new reportingobserver(function(reports, observer) { let firstreport = reports[0]; console.log(firstreport.type); // intervention console.log(firstreport.body.id); console.log(firstreport.body.message); console.log(firstreport.body.sourcefile); console.log(firstreport.body.
linenumber); console.log(firstreport.body.columnnumber); }, options); specifications specification status comment reporting apithe definition of 'interventionreportbody' in that specification.
KeyframeEffect.KeyframeEffect() - Web APIs
accepts the pre-defined values "
linear", "ease", "ease-in", "ease-out", and "ease-in-out", or a custom "cubic-bezier" value like "cubic-bezier(0.42, 0, 0.58, 1)".
... defaults to "
linear".
KeyframeEffectOptions - Web APIs
accepts the pre-defined values "
linear", "ease", "ease-in", "ease-out", and "ease-in-out", or a custom "cubic-bezier" value like "cubic-bezier(0.42, 0, 0.58, 1)".
... defaults to "
linear".
LocalFileSystem - Web APIs
for example, if you were to create a mail app, you might create a temporary storage for caching assets (like images and attachments) to speed up performance, while creating persistent storage for unique data—such as drafts of emails that were composed while off
line—that should not be lost before they are backed up into the cloud.
...(an older version of the api is described at managing html5 off
line storage.) working within a single origin the file system is sandboxed to a single origin.
Location - Web APIs
itle="hostname">example.org</span>:<span id="port" title="port">8888</span></span><span id="pathname" title="pathname">/foo/bar</span><span id="search" title="search">?q=baz</span><span id="hash" title="hash">#bang</span></span> css html, body {height:100%;} html {display:table; width:100%;} body {display:table-cell; text-align:center; vertical-align:middle; font-family:georgia; font-size:230%;
line-height:1em; white-space:nowrap;} [title] {position:relative; display:in
line-block; box-sizing:border-box; /*border-bottom:.5em solid;*/
line-height:2em; cursor:pointer;} [title]:before {content:attr(title); font-family:monospace; position:absolute; top:100%; width:100%; left:50%; margin-left:-50%; font-size:40%;
line-height:1.5; background:black;} [title]:hover:before, :target:before {backgroun...
...d:black; color:yellow;} [title] [title]:before {margin-top:1.5em;} [title] [title] [title]:before {margin-top:3em;} [title]:hover, :target {position:relative; z-index:1; out
line:50em solid rgba(255,255,255,.8);} javascript [].foreach.call(document.queryselectorall('[title][id]'), function (node) { node.addeventlistener("click", function(e) { e.preventdefault(); e.stoppropagation(); window.location.hash = '#' + $(this).attr('id'); }); }); [].foreach.call(document.queryselectorall('[title]'), function (node) { node.addeventlistener("click", function(e) { e.preventdefault(); e.stoppropagation(); window.location.hash = ''; }); }); result properties location.ancestororigins is a static domstringlist containing, in reverse order, the origins of all ancesto...
MediaDevices.ondevicechange - Web APIs
the
line let [kind, type, direction] = device.kind.match(/(\w+)(input|output)/i); deserves special notice.
...this
line, then, pulls out the type ("audio" or "video") and direction ("input" or "output") so they can be used to construct the string displayed in the list.
MediaKeyMessageEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</t...
...ext></a><poly
line 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-base
line="middle">mediakeymessageevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor mediakeymessageevent() creates a new instance of mediakeymessageevent.
MediaKeySession.onkeystatuseschange - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 8.571428571428571%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 60" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,mo...
...nospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">mediakeysession</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} syntax mediakeysession.onkeystatuseschange = function(keystatuschange) { ...
MediaKeySession.onmessage - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 8.571428571428571%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 60" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" te...
...xt-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">mediakeysession</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} syntax mediakeysession.onmessage = function(mediakeymessageevent) { ...
MediaSource - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" al...
...ignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">mediasource</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor mediasource() constructs and returns a new mediasource object with no associated source buffers.
MediaStreamTrack: mute event - Web APIs
musictrack.addeventlistener("mute", event => { document.getelementbyid("time
line-widget").style.backgroundcolor = "#aaa"; }, false); musictrack.addeventlistener("unmute", event => { document.getelementbyid("time
line-widget").style.backgroundcolor = "#fff"; }, false); with these event handlers in place, when the track musictrack enters its muted state, the element with the id time
line-widget gets its background color changed to #aaa.
...the following example shows this: musictrack.onmute = event => { document.getelementbyid("time
line-widget").style.backgroundcolor = "#aaa"; } musictrack.mute = event = > { document.getelementbyid("time
line-widget").style.backgroundcolor = "#fff"; } specifications specification status comment media capture and streamsthe definition of 'mute' in that specification.
MediaStreamTrack: unmute event - Web APIs
musictrack.addeventlistener("mute", event => { document.getelementbyid("time
line-widget").style.backgroundcolor = "#aaa"; }, false); musictrack.addeventlistener("unmute", event => { document.getelementbyid("time
line-widget").style.backgroundcolor = "#fff"; }, false); with these event handlers in place, when the track musictrack enters its muted state, the element with the id time
line-widget gets its background color changed to #aaa.
...the following example shows this: musictrack.onmute = event => { document.getelementbyid("time
line-widget").style.backgroundcolor = "#aaa"; } musictrack.mute = event = > { document.getelementbyid("time
line-widget").style.backgroundcolor = "#fff"; } specifications specification status comment media capture and streamsthe definition of 'unmute' in that specification.
MediaStreamTrackEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">mediastreamtrackevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} the events based on this interface are addtrack and removetrack properties also inherits properties from its parent interface, event.
MediaTrackConstraints.sampleSize - Web APIs
syntax var constraintsobject = { samplesize: constraint }; constraintsobject.samplesize = constraint; value if this value is a number, the user agent will attempt to obtain media whose sample size (in bits per
linear sample) is as close as possible to this number given the capabilities of the hardware and the other constraints specified.
... since this property can only represent
linear sample sizes, this constraint can only be met by devices that can produce audio with
linear samples.
MessageEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 13.333333333333334%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 80" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">messageevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor messageevent() creates a new messageevent.
Navigator - Web APIs
properties doesn't inherit any properties, but implements those defined in navigatorid, navigatorlanguage, navigatoron
line, navigatorcontentutils, navigatorstorage, navigatorstorageutils, navigatorconcurrenthardware, navigatorplugins, and navigatorusermedia.
... navigator.on
line read only returns a boolean indicating whether the browser is working on
line.
Using the Notifications API - Web APIs
denied the user has explicitly dec
lined permission to show notifications.
...this is in
line with the specification, which states: "when a notification is closed, either by the underlying notifications platform or by the user, the close steps for it must be run." notification events there are four events that are triggered on the notification instance: click triggered when the user clicks on the notification.
PerformanceEntry.name - Web APIs
var i=0; i < methods.length; i++) { // check each method var supported = typeof obj[methods[i]] == "function"; if (supported) { var js = obj[methods[i]](); log("..." + methods[i] + "() = " + json.stringify(js)); } else { log("..." + methods[i] + " = not supported"); } } } specifications specification status comment performance time
line level 2the definition of 'name' in that specification.
... candidate recommendation performance time
linethe definition of 'name' in that specification.
PerformanceEntry.startTime - Web APIs
var i=0; i < methods.length; i++) { // check each method var supported = typeof obj[methods[i]] == "function"; if (supported) { var js = obj[methods[i]](); log("..." + methods[i] + "() = " + json.stringify(js)); } else { log("..." + methods[i] + " = not supported"); } } } specifications specification status comment performance time
line level 2the definition of 'starttime' in that specification.
... candidate recommendation performance time
linethe definition of 'starttime' in that specification.
PerformanceFrameTiming - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/performanceframetiming" target="_top"><rect x="1" y="1" width="220" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke...
...-width="2px" /><text x="111" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">performanceframetiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but it extends the following performanceentry properties (for "frame" performance entry types) by qualifying and constraining the properties as follows: performanceentry.entrytype returns "frame".
PerformanceLongTaskTiming - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink: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-base
line="middle">performanceentry</text></a><poly
line points="161,25 171,20 171,30 161,25" stroke="#d4...
...dde4" 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-base
line="middle">performancelongtasktiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties performancelongtasktiming.attribution read only returns a sequence of taskattributiontiming instances.
PerformanceNavigationTiming - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink: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-base
line="middle">performanceentry</text></a><poly
line 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-base
line="middle">performancenavigationtiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface extends the following performanceentry properties for navigation performance entry types by qualifyi...
PerformanceObserver - Web APIs
the performanceobserver interface is used to observe performance measurement events and be notified of new performance entries as they are recorded in the browser's performance time
line.
... example function perf_observer(list, observer) { // process the "measure" event } var observer2 = new performanceobserver(perf_observer); observer2.observe({entrytypes: ["measure"]}); specifications specification status comment performance time
line level 2the definition of 'performanceobserver' in that specification.
PerformancePaintTiming - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/performanceentry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2...
...px" /><text x="81" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">performanceentry</text></a><poly
line 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-base
line="middle">performancepainttiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but it ...
ProgressEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">progressevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor progressevent() creates a progressevent event with the given parameters.
PromiseRejectionEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">promiserejectionevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor promiserejectionevent() creates a promiserejectionevent event, given the type of event (unhandledrejection or rejectionhandled...
RTCDTMFSender - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">rtcdtmfsender</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties rtcdtmfsender.tonebuffer read only a domstring which contains t...
RTCDataChannel: message event - Web APIs
dc.addeventlistener("message", ev => { let newparagraph = document.createelement("p"); let textnode = document.createtextnode(event.data); newparagraph.appendchild(textnode); document.body.appendchild(newparagraph); }, false);
lines 2-4 create the new paragraph element and add the message data to it as a new text node.
...
line 6 appends the new paragraph to the end of the document's body.
RTCDtlsTransport - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/rtcdtlstransport" target="_top"><rect x="1" y="1" width="160" height="50" fill="#f4f7f8" 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-base
line="middle">rtcdtlstransport</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} propertiesicetransport read only the read-only rtcdtlstransport property icetransport contains a reference to the underlying rtcicetransport.state read only the state read-only property of the rtcdtlstransport interface provides information which describes a datagram transport layer security (dtls) transport state.methodsthis interface has no methods.
RTCIceCandidate.RTCIceCandidate() - Web APIs
this includes the candidate, sdpmid, sdpm
lineindex, and usernamefragment properties.
... exceptions typeerror the specified rtcicecandidateinit has values of null in both the sdpmid and sdpm
lineindex properties.
RTCIceCandidate.address - Web APIs
you can't specify the address in the options object, but the address is automatically extracted from the candidate a-
line, if it's formatted properly.
... usage notes consider this sdp attribute
line (a-
line) which describes an ice candidate: a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host the fifth field, "192.168.0.56" is the ip address in this candidate's a-
line string.
RTCIceCandidate.protocol - Web APIs
the value is automatically extracted from the candidate a-
line, if it's formatted properly.
... usage notes here's an example candidate a-
line from an ice transaction: a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host the third field, "udp", is the protocol type, indicating that the candidate would use the udp transport protocol.
RTCIceCandidate.sdpMid - Web APIs
if you call the constructor with an m-
line string instead of an rtcicecandidateinit object, the value of sdpmid is extracted from the specified candidate m-
line string.
... note: attempting to add a candidate (using addicecandidate()) that has a value of null for either sdpmid or sdpm
lineindex will throw a typeerror exception.
RTCIceCandidate.type - Web APIs
you can't specify the value of type in the options object, but the address is automatically extracted from the candidate a-
line, if it's formatted properly, being taken from its cand-type field.
... if type is null, that information was missing from the candidate's a-
line, which will cause rtcpeerconnection.addicecandidate() to throw an operationerror exception.
RTCIceCandidate - Web APIs
component read only a domstring which indicates whether the candidate is an rtp or an rtcp candidate; its value is either "rtp" or "rtcp", and is derived from the "component-id" field in the candidate a-
line string.
... sdpm
lineindex read only if not null, sdpm
lineindex indicates the zero-based index number of the media description (as defined in rfc 4566) in the sdp with which the candidate is associated.
RTCIceComponent - Web APIs
these strings are mapped to corresponding numeric values as they appear in the candidate a-
line in sdp.
...an rtcicecomponent of this value corresponds to the component id field in the candidate a-
line with the value 1.
RTCPeerConnection: connectionstatechange event - Web APIs
it simply calls an app-defined function called seton
linestatus() to update a status display.
... pc.onconnectionstatechange = ev => { switch(pc.connectionstate) { case "new": case "checking": seton
linestatus("connecting..."); break; case "connected": seton
linestatus("on
line"); break; case "disconnected": seton
linestatus("disconnecting..."); break; case "closed": seton
linestatus("off
line"); break; case "failed": seton
linestatus("error"); break; default: seton
linestatus("unknown"); break; } } you can also create a handler for connectionstatechange by using addeventlistener(): pc.addeventlistener("connectionstatechange", ev => { switch(pc.connectionstate) { /* ...
RTCPeerConnection.ontrack - Web APIs
pc.ontrack = function(event) { document.getelementbyid("received_video").srcobject = event.streams[0]; document.getelementbyid("hangup-button").disabled = false; }; the first
line of our ontrack event handler takes the first stream in the incoming track and sets the srcobject attribute to that.
...the second
line of code simply enables a "hang up" button, which the user can use to disconnect from the call.
RTCPeerConnection - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4...
...e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">rtcpeerconnection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructorrtcpeerconnection() the rtcpeerconnection() constructor returns a newly-created rtcpeerconnection, which represents a connection between the local device and a r...
RTCRtpTransceiver.direction - Web APIs
the sdp contains an a-
line which specifies the directionality.
... for example, if the direction is specified as "sendrecv", the corresponding sdp a-
line is: a=sendrecv specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtptransceiver.direction' in that specification.
RadioNodeList - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin 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-base
line="middle">nodelist</text></a><poly
line points="81,25 91,20 91,30 81,25" stroke="#d4dde4" fill="non...
...e"/><
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-base
line="middle">radionodelist</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties the radionodelist interface inherits the properties of nodelist.
Range.commonAncestorContainer - Web APIs
html <ul> <li>strings <ul> <li>cello</li> <li>violin <ul> <li>first chair</li> <li>second chair</li> </ul> </li> </ul> </li> <li>woodwinds <ul> <li>clarinet</li> <li>oboe</li> </ul> </li> </ul> css the .highlight class created below uses a set of css @keyframes to animate a fading out
line.
... .highlight { animation: highlight
linear 1s; } @keyframes highlight { from { out
line: 1px solid #f00f; } to { out
line: 1px solid #f000; } } body { padding: 1px; } javascript document.addeventlistener('pointerup', e => { const selection = window.getselection(); if (selection.type === 'range') { for (let i = 0; i < selection.rangecount; i++) { const range = selection.getrangeat(i); playanimation(range.commonancestorcontainer); } } }); function playanimation(el) { if (el.nodetype === node.text_node) { el = el.parentnode; } el.classlist.remove('highlight'); settimeout(() => { el.classlist.add('highlight'); }, 0); } result specifications specification status comment domthe definition of 'range.commonancest...
ResizeObserver() - Web APIs
the callback will generally follow a pattern along the
lines of: function(entries, observer) { for (let entry of entries) { // do something to each entry // and possibly something to the observer itself } } 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.in
linesize/200) + 'rem'; pelem.style.fontsize = math.max(1, entry.contentboxsize.in
linesize/600) + 'rem'; } else { h1elem.style.fontsize = math.max(1.5, entry.contentrect.width/200) + 'rem'; pelem.style.fontsize = math.max(1, entry.contentrect.width/600) + 'rem'; } } }); resizeobserver.observe(divelem); specifications specification status comment resize observerthe definition of 'resizeobserver' in that specification.
SVGAnimatedPathData - Web APIs
name type description animatednormalizedpathseglist svgpathseglist provides access to the current animated contents of the 'd' attribute in a form where all path data commands are expressed in terms of the following subset of svgpathseg types: svg_pathseg_moveto_abs (m), svg_pathseg_
lineto_abs (l), svg_pathseg_curveto_cubic_abs (c) and svg_pathseg_closepath (z).
... normalizedpathseglist svgpathseglist provides access to the base (i.e., static) contents of the 'd' attribute in a form where all path data commands are expressed in terms of the following subset of svgpathseg types: svg_pathseg_moveto_abs (m), svg_pathseg_
lineto_abs (l), svg_pathseg_curveto_cubic_abs (c) and svg_pathseg_closepath (z).
SVGAnimationElement: beginEvent event - Web APIs
the beginevent event of the svganimationelement interface is fired when the element local time
line begins to play.
...scheduled or interactive) time
line play, as well as in the case that the element was begun with a dom method.
SVGFontFaceFormatElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/svgfontfaceformatelement" target="_top"><rect x="1" y="1" width="240" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="121" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignm...
...ent-base
line="middle">svgfontfaceformatelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
SVGFontFaceNameElement - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/svgfontfacenameelement" target="_top"><rect x="1" y="1" width="220" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="111" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base...
...
line="middle">svgfontfacenameelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
SVGRect - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/svgrect" target="_top"><rect x="1" y="1" width="75" height="50" fill="#f4f7f8" 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-base
line="middle">svgrect</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties svgrect.x the exact effect of this coordinate depends on each element.
Using the Screen Capture API - Web APIs
using await, the following
line of code does not get executed until after the promise returned by getdisplaymedia() resolves.
... for example, this
line in the http headers will enable screen capture api for the document and any embedded <iframe> elements that are loaded from the same origin: feature-policy: display-capture 'self' if you're performing screen capture within an <iframe>, you can request permission just for that frame, which is clearly more secure than requesting a more general permission: <iframe src="https://mycode.example.net/...
SecurityPolicyViolationEvent - Web APIs
securitypolicyviolationevent.
linenumberread only the
line number in the document or worker at which the violation occurred.
...this will only be populated if the resource is an in
line script, event handler, or style — external resources causing a violation will not generate a sample.
Selection.modify() - Web APIs
you can move by "character", "word", "sentence", "
line", "paragraph", "
lineboundary", "sentenceboundary", "paragraphboundary", or "documentboundary".
...ibero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.</p> <label for="granularity">granularity:</label> <select id="granularity"> <option value="character">character</option> <option value="word">word</option> <option value="sentence">sentence</option> <option value="
line">
line</option> <option value="paragraph">paragraph</option> <option value="
lineboundary">
line boundary</option> <option value="sentenceboundary">sentence boundary</option> <option value="paragraphboundary">paragraph boundary</option> <option value="documentboundary">document boundary</option> </select> <br><br> <button>extend selection</button> javascript let select = document.query...
Service Worker API - Web APIs
they are intended, among other things, to enable the creation of effective off
line experiences, intercept network requests and take appropriate action based on whether the network is available, and update assets residing on the server.
... you can listen for the installevent; a standard action is to prepare your service worker for usage when this fires, for example by creating a cache using the built in storage api, and placing assets inside it that you'll want for running your app off
line.
SourceBuffer.abort() - Web APIs
you can see something similar in action in nick desaulnier's bufferwhenneeded demo — in
line 48, an event listener is added to the playing video so a function called seek() is run when the seeking event fires.
... in
lines 92-101, the seek() function is defined — note that abort() is called if mediasource.readystate is set to open, which means that it is ready to receive new source buffers — at this point it is worth aborting the current segment and just getting the one for the new seek position (see checkbuffer() and getcurrentsegment().) specifications specification status comment media source extensionsthe definition of 'abort()' in that specification.
SourceBuffer - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarg...
...et</text></a><poly
line 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-base
line="middle">sourcebuffer</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties sourcebuffer.appendwindowend controls the timestamp for the end of the append window.
SourceBufferList - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /...
...><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">eventtarget</text></a><poly
line 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-base
line="middle">sourcebufferlist</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties sourcebufferlist.length read only returns the number of so...
SpeechGrammar.src - Web APIs
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); recognition.grammars = speechrecognitionlist; ...
... console.log(speechrecognitionlist[0].src); // should return the same as the contents of the grammar variable console.log(speechrecognitionlist[0].weight); // should return 1 - the same as the weight set in
line 4.
SpeechGrammar.weight - Web APIs
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); recognition.grammars = speechrecognitionlist; ...
... console.log(speechrecognitionlist[0].src); // should return the same as the contents of the grammar variable console.log(speechrecognitionlist[0].weight); // should return 1 - the same as the weight set in
line 4.
SpeechGrammar - Web APIs
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); recognition.grammars = speechrecognitionlist; ...
... console.log(speechrecognitionlist[0].src); // should return the same as the contents of the grammar variable console.log(speechrecognitionlist[0].weight); // should return 1 - the same as the weight set in
line 4.
SpeechGrammarList.item() - Web APIs
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); recognition.grammars = speechrecognitionlist; ...
...var myfirstgrammar = speechrecognitionlist[0]; // var should contain the speechgrammar object created in
line 4.
SpeechRecognition - Web APIs
your audio is sent to a web service for recognition processing, so it won't work off
line.
... 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); recognition.grammars = speechrecognitionlist; r...
StaticRange - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><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-base
line="middle">abstractrange</text></a><poly
line 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-base
line="middle">staticrange</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor staticrange() creates a new staticrange object given the staticrangeinit dictionary sp...
StorageEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line points="76,25 86,20 86,30 76,25" stroke="#d4dde...
...4" 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-base
line="middle">storageevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} method overview void initstorageevent( in domstring type, in boolean canbubble, in boolean cancelable, in domstring key, in domstring oldvalue, in domstring newvalue, in usvstring url, in storage storagearea ); attributes attribute type description key domstring represents t...
SyncManager.register() - Web APIs
valid values are 'network-any', 'network-off
line', 'network-on
line', 'network-non-mobile'.
... the default value is 'network-on
line'.
TaskAttributionTiming - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink: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="consol...
...as,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-base
line="middle">performanceentry</text></a><poly
line 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-base
line="middle">taskattributiontiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties taskattributiontiming.containertype read only returns the type of frame container, one of iframe, emb...
TimeEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line points="76,25 86,20 86,30 76,25" stroke="#d4d...
...de4" 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-base
line="middle">timeevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties timeevent.detail read only is a long that specifies some detail information about the event, depending on the type of the event.
UIEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">uievent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructors uievent() creates a uievent object.
VTTRegion - Web APIs
vttregion.
lines a double representing the height of the region, in number of
lines.
... examples var region = new vttregion(); region.width = 50; // use 50% of the video width region.
lines = 4; // use 4
lines of height.
WebGLContextEvent - Web APIs
<div id="interfacediagram" style="display: in
line-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: in
line-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="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-base
line="middle">event</text></a><poly
line 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-base
line="middle">webglcontextevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits properties from its parent interface, event.
WebGLRenderingContext.getParameter() - Web APIs
constant returned type description gl.active_texture glenum gl.aliased_
line_width_range float32array (with 2 elements) gl.aliased_point_size_range float32array (with 2 elements) gl.alpha_bits glint gl.array_buffer_binding webglbuffer gl.blend glboolean gl.blend_color float32array (with 4 values) gl.blend_dst_alpha glenum gl.blend_dst_rgb glenum ...
... gl.green_bits glint gl.implementation_color_read_format glenum gl.implementation_color_read_type glenum gl.
line_width glfloat gl.max_combined_texture_image_units glint gl.max_cube_map_texture_size glint gl.max_fragment_uniform_vectors glint gl.max_renderbuffer_size glint gl.max_texture_image_units glint gl.max_texture_size glint gl.max_varying_vectors glint gl.max_vertex_attribs ...
WebGLRenderingContext.getTexParameter() - Web APIs
possible values: pname return type description possible return values available in a webgl 1 context gl.texture_mag_filter glenum texture magnification filter gl.
linear (default value), gl.nearest.
... gl.texture_min_filter glenum texture minification filter gl.
linear, gl.nearest, gl.nearest_mipmap_nearest, gl.
linear_mipmap_nearest, gl.nearest_mipmap_
linear (default value), gl.
linear_mipmap_
linear.
WebGLRenderingContext - Web APIs
webglrenderingcontext.
linewidth() sets the
line width of rasterized
lines.
... <p>compare the two canvases.</p> <canvas>your browser does not seem to support html5 canvas.</canvas> <canvas>your browser does not seem to support html5 canvas.</canvas> body { text-align : center; } canvas { display : in
line-block; width : 120px; height : 80px; margin : auto; padding : 0; border : none; background-color : black; } window.addeventlistener("load", function() { "use strict" var firstcanvas = document.getelementsbytagname("canvas")[0], secondcanvas = document.getelementsbytagname("canvas")[1]; firstcanvas.width = firstcanvas.clientwidth; firstcanvas.height = firstcanvas.clienthe...
Matrix math for the web - Web APIs
after adding the w component to the point, notice how neatly the matrix and the point
line up: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] [4, 3, 2, 1] // point at [x, y, z, w] the w component has some additional uses that are out of scope for this article.
...bear in mind that even though the matrix is made up of 4 rows and 4 columns, it collapses into a single
line of 16 values.
WebGL: 2D and 3D graphics for the web - Web APIs
s ext_blend_minmax ext_color_buffer_float ext_color_buffer_half_float ext_disjoint_timer_query ext_float_blend ext_frag_depth ext_srgb ext_shader_texture_lod ext_texture_compression_bptc ext_texture_compression_rgtc ext_texture_filter_anisotropic khr_parallel_shader_compile oes_element_index_uint oes_fbo_render_mipmap oes_standard_derivatives oes_texture_float oes_texture_float_
linear oes_texture_half_float oes_texture_half_float_
linear oes_vertex_array_object ovr_multiview2 webgl_color_buffer_float webgl_compressed_texture_astc webgl_compressed_texture_atc webgl_compressed_texture_etc webgl_compressed_texture_etc1 webgl_compressed_texture_pvrtc webgl_compressed_texture_s3tc webgl_compressed_texture_s3tc_srgb webgl_debug_renderer_info webgl_debug_shaders webgl...
... webgl playground an on
line tool for creating and sharing webgl projects.
Introduction to the Real-time Transport Protocol (RTP) - Web APIs
rtcrtptransceiver an rtcrtptransceiver is a pair of one rtp sender and one rtp receiver which share an sdp mid attribute, which means they share the same sdp media m-
line (representing a bidirectional srtp stream).
... async function enablehold(audiostream) { try { await audiotransceiver.sender.replacetrack(audiostream.getaudiotracks()[0]); audiotransceiver.receiver.track.enabled = false; audiotransceiver.direction = "sendonly"; } catch(err) { /* handle the error */ } } the three
lines of code within the try block perform the following steps: replace their outgoing audio track with a mediastreamtrack containing hold music.
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
animating 3d graphics is an area of software development that brings together multiple discip
lines in computer science, mathematics, art, graphic design, kinematics, anatomy, physiology, physics, and cinematography.
...this is used in a lot of multiplayer on
line role-playing games, certain shooter games, and so forth.
Geometry and reference spaces in WebXR - Web APIs
this is used for environments in which the user can physically move around, and is supported by all instances of xrsession, both immersive and in
line, though it's most useful for in
line sessions.
...the only real exception is that you are likely to use the viewer reference space when performing the xr scene in
line within web content.
Strict mode - JavaScript
assignments, which would accidentally create global variables, instead throw an error in strict mode: 'use strict'; // assuming no global variable mistypedvariable exists mistypevariable = 17; // this
line throws a referenceerror due to the // misspelling of variable second, strict mode makes assignments which would otherwise silently fail to throw an exception.
...moreover, arguments.callee substantially hinders optimizations like inlining functions, because it must be made possible to provide a reference to the un-in
lined function if arguments.callee is accessed.
Trailing commas - JavaScript
if you want to add a new property, you can simply add a new
line without modifying the previously last
line if that
line already uses a trailing comma.
... both
lines will throw a syntaxerror: json.parse('[1, 2, 3, 4, ]'); json.parse('{"foo" : 1, }'); // syntaxerror json.parse: unexpected character // at
line 1 column 14 of the json data omit the trailing commas to parse the json correctly: json.parse('[1, 2, 3, 4 ]'); json.parse('{"foo" : 1 }'); specifications specification ecmascript (ecma-262) ...
<menclose> - MathML
box a2 + b2 box roundedbox a2 + b2 rounded box circle a2 + b2 circle left a2 + b2
line to the left of the contents right a2 + b2
line to the right of the contents top a2 + b2
line above of the contents bottom a2 + b2
line below of the contents updiagonalstrike a2 + b2 strikeout
line through contents from lower left to upper right downdiagonalstrike ...
... a2 + b2 strikeout
line through contents from upper left to lower right verticalstrike a2 + b2 vertical strikeout
line through contents horizontalstrike a2 + b2 horizontal strikeout
line through contents madruwb a2 + b2 arabic factorial symbol updiagonalarrow a2 + b2 diagonal arrow phasorangle a2 + b2 phasor angle examples <math> <menclose notation="circle box"> <mi> x </mi> <mo> + </mo> <mi> y </mi> </menclose> </math> specifications specification status comment mathml 3.0the definition of 'menclose' in that specification.
<mmultiscripts> - MathML
subscriptshift the minimum space by which to shift the subscript below the base
line of the expression, as a css length.
... superscriptshift the minimum space by which to shift the superscript above the base
line of the expression, as a css length.
<msubsup> - MathML
subscriptshift the minimum space by which to shift the subscript below the base
line of the expression, as a length value.
... superscriptshift the minimum space by which to shift the superscript above the base
line of the expression, as a length value.
MathML element reference - MathML
(operator) <mover> (overscript) p <mpadded> (space around content) <mphantom> (invisible content with reserved space) r <mroot> (radical with specified index) <mrow> (grouped sub-expressions) s <ms> (string literal) <mscarries> (annotations such as carries) <mscarry> (single carry, child element of <mscarries>) <msgroup> (grouped rows of <mstack> and <mlongdiv> elements) <ms
line> (horizontal
lines inside <mstack> elements) <mspace> (space) <msqrt> (square root without an index) <msrow> (rows in <mstack> elements) <mstack> (stacked alignment) <mstyle> (style change) <msub> (subscript) <msup> (superscript) <msubsup> (subscript-superscript pair) t <mtable> (table or matrix) <mtd> (cell in a table or a matrix) <mtext> (text) <mtr> (row in a table or a matrix)...
...al 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> <ms
line> <msrow> <mstack> uncategorized elements <maction> semantic annotations <annotation> <annotation-xml> <semantics> ...
MathML documentation index - MathML
4 mathml: deriving the quadratic formula beginner, education, example, guide, html5, mathml, needsbeginnerupdate this page out
lines the derivation of the quadratic formula.
... 24 <mphantom> mathml, mathml reference, mathml:element, mathml:general layout schemata the mathml <mphantom> element is rendered invisibly, but dimensions (such as height, width, and base
line position) are still kept.
Autoplay guide for media and Web Audio APIs - Web media technologies
the exact situations that result in blocking, and the specifics of how sites become whitelisted vary from browser to browser, but the above are good guide
lines to go by.
...to autoplay videos like these, you have two options: don't have an audio track, or have an audio track but configure the <video> element to mute the audio by default, like this: <video src="/videos/awesomevid.webm" controls autoplay muted> this video element is configured to include the user controls (typically play/pause, scrubbing through the video's time
line, volume control, and muting); also, since the muted attribute is included, the video will autoplay but with the audio muted.
Recommended Web Performance Timings: How long is too long? - Web Performance
there are no clear set rules as to what constitutes a slow pace when loading pages, but there are specific guide
lines for indicating content will load (1 second), idling (50ms), animating (16.7s) and responding to user input (50 to 200ms).
... in optimizing for performance, do set an ambitious first load goal, such as 5 seconds over the mobile 3g network and 1.5 seconds on an office t1
line, with even more ambitious page load goals for subsequent page loads, leveraging service workers and caching.
Media - Progressive web apps (PWAs)
place your mouse over the items in this list to see the actual pointer shapes in your browser: selector selects pointer indicating a link wait indicating that the program cannot accept input progress indicating that the program is working, but can still accept input default the default (usually an arrow) an out
line property creates an out
line that is often used to indicate keyboard focus.
...g: 5px 10px; } .green-button[disabled] { background-color:#cdc; color:#777; } .green-button:active, .green-button.active { border-style: inset; } <table> <tbody> <tr> <td><button class="green-button" disabled>click me</button></td> <td><button class="green-button">click me</button></td> <td><button class="green-button active">click me</button></td> </tr> <tr style="
line-height:25%;"> <td> </td> </tr> <tr style="font-style:italic;"> <td>disabled</td> <td>normal</td> <td>active</td> </tr> </tbody> </table> live sample a fully functional button also has a dark out
line around the entire button when it is the default, and a dotted out
line on the face of the button when it has keyboard focus.
class - SVG: Scalable Vector Graphics
white space in lists is defined as one or more of the following consecutive characters: "space" (u+0020), "tab" (u+0009), "
line feed" (u+000a), "carriage return" (u+000d), and "form-feed" (u+000c).
...te: <a> <altglyph> <circle> <clippath> <defs> <desc> <ellipse> <feblend> <fecolormatrix> <fecomponenttransfer> <fecomposite> <feconvolvematrix> <fediffuselighting> <fedisplacementmap> <feflood> <fegaussianblur> <feimage> <femerge> <femorphology> <feoffset> <fespecularlighting> <fetile> <feturbulence> <filter> <font> <foreignobject> <g> <glyph> <glyphref> <image> <
line> <
lineargradient> <marker> <mask> <missing-glyph> <path> <pattern> <polygon> <poly
line> <radialgradient> <rect> <stop> <svg> <switch> <symbol> <text> <textpath> <title> <tref> <tspan> <use> ...
fill - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it only has an effect on the following eleven elements: <altglyph>, <circle>, <ellipse>, <path>, <polygon>, <poly
line>, <rect>, <text>, <textpath>, <tref>, and <tspan>.
... poly
line for <poly
line>, fill is a presentation attribute that defines tthe color of the interior of the shape.
in - SVG: Scalable Vector Graphics
html <div style="width: 420px; height: 220px;"> <svg style="width:200px; height:200px; display: in
line;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <filter id="backgroundmultiply"> <!-- this will not work.
... --> <feblend in="backgroundimage" in2="sourcegraphic" mode="multiply"/> </filter> </defs> <image xlink:href="https://developer.mozilla.org/files/6457/mdn_logo_only_color.png" x="10%" y="10%" width="80%" height="80%"/> <circle cx="50%" cy="40%" r="40%" fill="#c00" style="filter:url(#backgroundmultiply);" /> </svg> <svg style="width:200px; height:200px; display: in
line;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <filter id="imagemultiply"> <!-- this is a workaround.
opacity - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following elements: <a>, <audio>, <canvas>, <circle>, <ellipse>, <foreignobject>, <g>, <iframe>, <image>, <
line>, <marker>, <path>, <polygon>, <poly
line>, <rect>, <svg>, <switch>, <symbol>, <text>, <textpath>, <tspan>, <use>, <unknown>, and <video> html, body, svg { height: 100%; } <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <defs> <
lineargradient id="gradient" x1="0%" y1="0%" x2="0" y2="100%"> <stop offset="0%" style="stop-color:skyblue;" /> <stop offset="100%" ...
...style="stop-color:seagreen;" /> </
lineargradient> </defs> <rect x="0" y="0" width="100%" height="100%" fill="url(#gradient)" /> <circle cx="50" cy="50" r="40" fill="black" /> <circle cx="150" cy="50" r="40" fill="black" opacity="0.3" /> </svg> usage notes default value 1 value <alpha-value> animatable yes <alpha-value> the uniform opacity setting to be applied across an entire object, as a <number>.
paint-order - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following ten elements: <circle>, <ellipse>, <
line>, <path>, <polygon>, <poly
line>, <rect>, <text>, <textpath>, and <tspan> usage notes value normal | [ fill || stroke || markers ] default value normal animatable yes normal this value indicates that the fill will be painted first, then the stroke, and finally the markers.
... example <svg xmlns="http://www.w3.org/2000/svg" width="400" height="200"> <
lineargradient id="g" x1="0" y1="0" x2="0" y2="1"> <stop stop-color="#888"/> <stop stop-color="#ccc" offset="1"/> </
lineargradient> <rect width="400" height="200" fill="url(#g)"/> <g fill="crimson" stroke="white" stroke-width="6" stroke-
linejoin="round" text-anchor="middle" font-family="sans-serif" font-size="50px" font-weight="bold"> <text x="200" y="75">stroke over</text> ...
stroke-dashoffset - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following twelve elements: <altglyph>, <circle>, <ellipse>, <path>, <
line>, <polygon>, <poly
line>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="-3 0 33 10" xmlns="http://www.w3.org/2000/svg"> <!-- no dash array --> <
line x1="0" y1="1" x2="30" y2="1" stroke="black" /> <!-- no dash offset --> <
line x1="0" y1="3" x2="30" y2="3" stroke="black" stroke-dasharray="3 1" /> <!-- the start of the dash array computation is pulled...
... by 3 user units --> <
line x1="0" y1="5" x2="30" y2="5" stroke="black" stroke-dasharray="3 1" stroke-dashoffset="3" /> <!-- the start of the dash array computation is pushed by 3 user units --> <
line x1="0" y1="7" x2="30" y2="7" stroke="black" stroke-dasharray="3 1" stroke-dashoffset="-3" /> <!-- the start of the dash array computation is pulled by 1 user units which ends up in the same rendering as the previous example --> <
line x1="0" y1="9" x2="30" y2="9" stroke="black" stroke-dasharray="3 1" stroke-dashoffset="1" /> <!-- the following red
lines highlight the offset of the dash array for each
line --> <path d="m0,5 h-3 m0,7 h3 m0,9 h-1" stroke="rgba(255,0,0,.5)" /> </svg> usage notes val...
stroke - SVG: Scalable Vector Graphics
the stroke attribute is a presentation attribute defining the color (or any svg paint servers like gradients or patterns) used to paint the out
line of the shape; note: as a presentation attribute stroke 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 twelve elements: <altglyph>, <circle>, <ellipse>, <
line>, <path>, <polygon>, <poly
line>, <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> def...
transform - SVG: Scalable Vector Graphics
as a presentation attribute, transform can be used by any element (in svg 1.1, only these 16 elements were allowed to use it: <a>, <circle>, <clippath>, <defs>, <ellipse>, <foreignobject>, <g>, <image>, <
line>, <path>, <polygon>, <poly
line>, <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.
v-hanging - SVG: Scalable Vector Graphics
the v-hanging attribute indicates the alignment coordinate for glyphs to achieve hanging base
line alignment.
... 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 base
line alignment.
visibility - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following nineteen elements: <a>, <altglyph>, <audio>, <canvas>, <circle>, <ellipse>, <foreignobject>, <iframe>, <image>, <
line>, <path>, <polygon>, <poly
line>, <rect>, <text>, <textpath>, <tref>, <tspan>, <video> html, body, svg { height: 100%; } <svg viewbox="0 0 220 120" xmlns="http://www.w3.org/2000/svg"> <rect x="10" y="10" width="200" height="100" stroke="black" stroke-width="5" fill="transparent" /> <g stroke="seagreen" stroke-width="5" fill="skyblue"> <rect x="20" y="20" width="80" height="80"...
...ton id="nav-toggle-button" > <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" class="button-icon"> <path d="m16.59 8.59l12 13.17 7.41 8.59 6 10l6 6 6-6z" /> <path d="m12 8l-6 6 1.41 1.41l12 10.83l4.59 4.58l18 14z" class="invisible" /> <path d="m0 0h24v24h0z" fill="none" /> </svg> <span> click me </span> </button> css svg { display: in
line !important; } span { vertical-align: 50%; } button {
line-height: 1em; } .invisible { visibility: hidden; } javascript document.queryselector("button").addeventlistener("click", function (evt) { this.queryselector("svg > path:nth-of-type(1)").classlist.toggle("invisible"); this.queryselector("svg > path:nth-of-type(2)").classlist.toggle("invisible"); }); specifications s...
writing-mode - SVG: Scalable Vector Graphics
the writing-mode attribute specifies whether the initial in
line-progression-direction for a <text> element shall be left-to-right, right-to-left, or top-to-bottom.
...(note that the in
line-progression-direction can change within a <text> element due to the unicode bidirectional algorithm and properties direction and unicode-bidi.) note: as a presentation attribute, writing-mode can be used as a css property.
xlink:title - SVG: Scalable Vector Graphics
these elements are using this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <
lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, and <use> usage context value <anything> default value none animatable no <anything> this value specifies the title used to describe the meaning of the link or resource.
... candidate recommendation deprecated the attribute and made it only apply to <a>, <image>, <
lineargradient>, <pattern>, <radialgradient>, <script>, <textpath>, and <use> scalable vector graphics (svg) 1.1 (second edition)the definition of 'seed' in that specification.
xml:space - SVG: Scalable Vector Graphics
"0 0 140 50" xmlns="http://www.w3.org/2000/svg"> <text y="20" xml:space="default">default spacing</text> <text y="40" xml:space="preserve">preserved spacing</text> </svg> usage notes value default | preserve default value default animatable no default with this value set, whitespace characters will be processed in this order: all new
line characters are removed.
... preserve this value tells the user agent to convert all new
line and tab characters into spaces.
Content type - SVG: Scalable Vector Graphics
for example, to fill a rectangle with a
linear gradient, you first define a <
lineargradient> element and give it an id, as in: <
lineargradient xml:id="mygradient">...</
lineargradient> you then reference the
linear gradient as the value of the fill attribute for the rectangle, as in the following example: <rect fill="url(#mygradient)"/> svg supports two types of iri references: local iri references, where the iri reference doe...
... white space in lists is defined as one or more of the following consecutive characters: "space" (u+0020), "tab" (u+0009), "
line feed" (u+000a), "carriage return" (u+000d), and "form-feed" (u+000c).
<animate> - SVG: Scalable Vector Graphics
g:0; } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <rect width="10" height="10"> <animate attributename="rx" values="0;5;0" dur="10s" repeatcount="indefinite" /> </rect> </svg> attributes animation attributes animation timing attributes begin, dur, end, min, max, restart, repeatcount, repeatdur, fill animation value attributes calcmode, values, keytimes, keysp
lines, from, to, by other animation attributes most notably: attributename, additive, accumulate animation event attributes most notably: onbegin, onend, onrepeat global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes usage notes this element implements the svganimateelement interfa...
... designing safer web animation for motion sensitivity · an a list apart article an introduction to the reduced motion media query | css-tricks responsive design for motion | webkit mdn understanding wcag, guide
line 2.2 explanations understanding success criterion 2.2.2 | w3c understanding wcag 2.0 specifications specification status comment svg animations level 2the definition of '<animate>' in that specification.
<circle> - SVG: Scalable Vector Graphics
sing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriesbasic shape element, graphics element, shape elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elements specifications specification status comment scalable vector graphics (svg) 2the definition of '<circle>' in that specification.
<defs> - SVG: Scalable Vector Graphics
html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- some graphical objects to use --> <defs> <circle id="mycircle" cx="0" cy="0" r="5" /> <
lineargradient id="mygradient" gradienttransform="rotate(90)"> <stop offset="20%" stop-color="gold" /> <stop offset="90%" stop-color="red" /> </
lineargradient> </defs> <!-- using my graphical objects --> <use x="5" y="5" xlink:href="#mycircle" fill="url('#mygradient')" /> </svg> attributes global attributes core attributes most notably: id lang styling attributes cla...
...ss, style event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility usage notes categoriescontainer element, structural elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <fore...
<ellipse> - SVG: Scalable Vector Graphics
sing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriesbasic shape element, graphics element, shape elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elements specifications specification status comment scalable vector graphics (svg) 2the definition of '<ellipse>' in that specification.
<foreignObject> - SVG: Scalable Vector Graphics
age event attributes global event attributes, graphical event attributes, document event attributes, document element event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriesnonepermitted contentany elements or character data specifications specification status comment scalable vector graphics (svg) 2the definition of '<foreignobject>' in that specification.
<g> - SVG: Scalable Vector Graphics
sing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriescontainer element, structural elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, ...
<path> - SVG: Scalable Vector Graphics
sing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriesgraphics element, shape elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elements specifications specification status comment svg pathsthe definition of '<path>' in that specification.
<rect> - SVG: Scalable Vector Graphics
sing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriesbasic shape element, graphics element, shape elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elements specifications specification status comment scalable vector graphics (svg) 2the definition of '<rect>' in that specification.
<stop> - SVG: Scalable Vector Graphics
this element is always a child of a <
lineargradient> or <radialgradient> element.
... html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <
lineargradient id="mygradient" gradienttransform="rotate(90)"> <stop offset="5%" stop-color="gold" /> <stop offset="95%" stop-color="red" /> </
lineargradient> </defs> <!-- using my
linear gradient --> <circle cx="5" cy="5" r="4" fill="url('#mygradient')" /> </svg> attributes offset this attribute defines where the gradient stop is placed along the gradient vector.
<svg> - SVG: Scalable Vector Graphics
age event attributes global event attributes, graphical event attributes, document event attributes, document element event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriescontainer element, structural elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, ...
<symbol> - SVG: Scalable Vector Graphics
yling attributes class, style event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role usage notes categoriescontainer element, structural elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, ...
<textPath> - SVG: Scalable Vector Graphics
sing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role xlink attributes xlink:title usage notes categoriestext content element, text content child elementpermitted contentcharacter data and any number of the following elements, in any order:descriptive elements<a>, <altglyph>, <animate>, <animatecolor>, <set>, <tref>, <tspan> specifications specification status comment ...
<use> - SVG: Scalable Vector Graphics
sing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabb...
...ed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multi
line, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role xlink attributes xlink:href, xlink:title usage notes categoriesgraphics element, graphics referencing element, structural elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elements specifications specification status comment scalable vector graphics (sv...
SVG animation with SMIL - SVG: Scalable Vector Graphics
example 1:
linear motion in this example, a blue circle bounces between the left and right edges of a black box, over and over again, indefinitely.
...in this case, we're establishing a path consisting of a moveto command to establish the starting point for the animation, then the horizontal-
line command to move the circle 300 pixels to the right, followed by the z command, which closes the path, establishing a loop back to the beginning.
Clipping and masking - SVG: Scalable Vector Graphics
<svg width="200" height="200" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <
lineargradient id="gradient"> <stop offset="0" stop-color="black" /> <stop offset="1" stop-color="white" /> </
lineargradient> <mask id="mask"> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" /> </mask> </defs> <rect x="0" y="0" width="200" height="200" fill="green" /> <rect x="0" y="0" width="200" height="200" fill="red" mask="url(#mask)" /> </svg...
...for reverting a previously set display: none it is important to know, that the initial value for all svg elements is in
line.
Introduction - SVG: Scalable Vector Graphics
it can be used to create an image either by specifying all the
lines and shapes necessary, by modifying already existing raster images, or by a combination of both.
...if you are not too familiar with xml, here are some guide
lines to keep in mind: svg elements and attributes should all be entered in the case shown here since xml is case-sensitive (unlike html).
SVG fonts - SVG: Scalable Vector Graphics
" font-style="normal" units-per-em="1000" cap-height="600" x-height="400" ascent="700" descent="300" alphabetic="0" mathematical="350" ideographic="400" hanging="500"> <font-face-src> <font-face-name name="super sans bold"/> </font-face-src> </font-face> <missing-glyph><path d="m0,0h200v200h-200z"/></missing-glyph> <glyph unicode="!" horiz-adv-x="300"><!-- out
line of exclam.
...glyph --></glyph> <glyph unicode="@"><!-- out
line of @ glyph --></glyph> <!-- more glyphs --> </font> we start with the <font> element.
How to fix a website with blocked mixed content - Web security
or use a free on
line crawler like ssl-check or missing padlock, a desktop crawler like httpschecker, or a cli tool like mcdetect to check your website recursively and find links to insecure content.
...there are on
line as well as off
line tools (depending on your operating system) such as linkchecker to help resolve this.
Subresource Integrity - Web security
tools for generating sri hashes you can generate sri hashes from the command-
line with openssl using a command invocation such as this: cat filename.js | openssl dgst -sha384 -binary | openssl base64 -a or with shasum using a command invocation such as this: shasum -b -a 384 filename.js | awk '{ print $1 }' | xxd -r -p | base64 notes: the pipe-through-xxd step takes the hexadecimal output from shasum and converts it to binary.
... additionally, the sri hash generator at https://www.srihash.org/ is an on
line tool you can use to generate sri hashes.
Tutorials
the aim here is to provide you with a toolkit for writing competent css and help you understand all the essential theory, before moving on to more specific discip
lines like text styling and css layout.
... styling text here we look at text styling fundamentals, including setting font, boldness, and italics,
line and letter spacing, and drop shadows and other text features.
viewBox - SVG: Scalable Vector Graphics
html,body,svg { height:100% } svg:not(:root) { display: in
line-block; } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <!-- with relative unit such as percentage, the visual size of the square looks unchanged regardless of the viewbox --> <rect x="0" y="0" width="100%" height="100%"/> <!-- with a large viewbox the circle looks small as it is using user units for the r attribute: 4 resolved against 100 as set in the viewbo...
xlink:arcrole - SVG: Scalable Vector Graphics
t generically represent a "person," but in the context of a particular arc it might have the role of "mother" and in the context of a different arc it might have the role of "daughter." twentytwo elements are using this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <
lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, <use> usage notes value <iri> default value none animatable no <iri> this value specifies an iri reference that identifies some resource that describes the intended property.
xlink:type - SVG: Scalable Vector Graphics
twentytwo elements are using this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <
lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, and <use> usage notes value simple default value simple animatable no simple this value specifies that the referred resource is a simple link.
<altGlyph> - SVG: Scalable Vector Graphics
ore attributes most notably: id lang styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, dominant-base
line, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, transform, vector-effect, visibility xlink attributes xlink:href, xlink:type, xlink:role, xlink:arcrole, xlink:title, xlink:show, xlink:actuate dom interface this ele...
<animateMotion> - SVG: Scalable Vector Graphics
value type: <number>|auto|auto-reverse; default value: 0; animatable: no note: for <animatemotion> the default value for the calcmode attribute is paced animation attributes animation timing attributes begin, dur, end, min, max, restart, repeatcount, repeatdur, fill animation value attributes calcmode, values, keytimes, keysp
lines, from, to, by other animation attributes most notably: attributename, additive, accumulate animation event attributes most notably: onbegin, onend, onrepeat global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes usage notes this element implements the svganimatemotionelement i...
<clipPath> - SVG: Scalable Vector Graphics
onuse; animatable: yes global attributes core attributes most notably: id styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage presentation attributes most notably: clip-path, clip-rule, color, display, fill, fill-opacity, fill-rule, filter, mask, opacity, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility usage notes categoriesnonepermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elements<text>, <use> specifications specification status comment css masking module level 1the definition of '<clippath>...
<font-face> - SVG: Scalable Vector Graphics
attributes global attributes core attributes specific attributes font-family font-style font-variant font-weight font-stretch font-size unicode-range units-per-em panose-1 stemv stemh slope cap-height x-height accent-height ascent descent widths bbox ideographic alphabetic mathematical hanging v-ideographic v-alphabetic v-mathematical v-hanging under
line-position under
line-thickness strikethrough-position strikethrough-thickness over
line-position over
line-thickness dom interface this element implements the svgfontfaceelement interface.
<mask> - SVG: Scalable Vector Graphics
120%; animatable: yes global attributes core attributes most notably: id styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage presentation attributes most notably: clip-path, clip-rule, color, display, fill, fill-opacity, fill-rule, filter, mask, opacity, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility usage notes categoriescontainer elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <for...
<mpath> - SVG: Scalable Vector Graphics
example svg <svg width="100%" height="100%" viewbox="0 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 out
line of the motion path in blue, along with three small circles at the start, middle and end.
<pattern> - SVG: Scalable Vector Graphics
bly: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-
linecap, stroke-
linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility xlink attributes most notably: xlink:title usage notes categoriescontainer elementpermitted contentany number of the following elements, in any order:animation elementsdescriptive elementsshape elementsstructural elementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, ...
<tref> - SVG: Scalable Vector Graphics
example <svg width="100%" height="100%" viewbox="0 0 1000 300" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <text id="referencedtext"> referenced character data </text> </defs> <text x="100" y="100" font-size="45" > in
line character data </text> <text x="100" y="200" font-size="45" fill="red" > <tref xlink:href="#referencedtext"/> </text> <!-- show out
line of canvas using 'rect' element --> <rect x="1" y="1" width="998" height="298" fill="none" stroke-width="2" /> </svg> specifications specification status comment scalable vector graphics (svg) 1.1 (second edit...
Example - SVG: Scalable Vector Graphics
if( this.elt === null ) { var svg = 'http://www.w3.org/2000/svg'; this.elt = document.createelementns(svg,'
line'); this.elt.setattributens(null,'stroke','green'); this.elt.setattributens(null,'stroke-width','3'); this.elt.setattributens(null,'stroke-opacity','0.5'); display().appendchild( this.elt ); } this.elt.setattributens(null,'x1',old_x); this.elt.setattributens(null,'y1',old_y); this.elt.setattributens(null,'x2',this.x); this.elt.setattributens(null,'y2',this.y); } ...
Namespaces crash course - SVG: Scalable Vector Graphics
knowing this will save you some confusion if you come across markup like in the following example: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> <body> <h1>svg embedded in
line in xhtml</h1> <svg:svg width="300px" height="200px"> <svg:circle cx="150" cy="100" r="50" fill="#ff0000"/> </svg:svg> </body> </html> note that because a namespace prefix is used for the <svg:svg> element and its child <svg:circle>, it wasn't necessary to redeclare the default namespace.