Search completed in 1.20 seconds.
NSS 3.15.3 release notes
Users are encouraged to upgrade immediately. ...
...Users are encouraged to upgrade immediately. ...
...Users are encouraged to upgrade immediately. ...
...And 8 more matches
NSS 3.15 release notes
TLS client applications may enable this via a call to SSL_OptionSetDefault(SSL_ENABLE_OCSP_STAPLING, PR_TRUE); Added function SECITEM_ReallocItemV2. ...
...TLS client applications may enable this via a call to SSL_OptionSetDefault(SSL_ENABLE_OCSP_STAPLING, PR_TRUE); Added function SECITEM_ReallocItemV2. ...
...TLS client applications may enable this via a call to SSL_OptionSetDefault(SSL_ENABLE_OCSP_STAPLING, PR_TRUE); Added function SECITEM_ReallocItemV2. ...
...And 7 more matches
ECMAScript 2015 support in Mozilla - Archive of obsolete content
It will also appear as the international industry standard ISO/IEC 16262:2016. ...
...It will also appear as the international industry standard ISO/IEC 16262:2016. ...
...It will also appear as the international industry standard ISO/IEC 16262:2016. ...
...And 3 more matches
2015 MDN Fellowship Program - Archive of obsolete content
Warning: The 20
15 MDN Fellowship Program is closed. We are not accepting applications. This page is a historical archive, originally hosted at /fellowship, and was localized. More information: MDN/DeveloperFellowship wiki page. Announcing the MDN Fellows! blog post, May 14 20
15. MDN Fellows Successfully Oriented blog post, July 6 20
15. MDN Fellows: What They Did & What's Next blog post, September 23, 20
15. 20
15 MDN Fellowship Program Launching in Q1 20
15, the Mozilla Developer Fellowship intends to accelerate the involvement of highly-skilled and experienced web developers with the open web. Who Web and mobile developers with an established track record of contributions and expertise in a specific web technology, function or domain who wish to increase the effectiveness of t...
...icient network interaction (queuing resource fetching, etc.). Self-starter and autonomous worker Mentor information Brittany Storoz, Mozilla Apps Engineering. GitHub: brittanystoroz Twitter: @brittanystoroz WebGL Brief Project Description WebGL is the latest incarnation of the OpenGL family of real time rendering immediate mode graphics APIs. WebGL is getting some cool new features in 20
15 with the standardization efforts around the WebGL 2.0 spec being published. Activities and Deliverables Help us develop a curriculum on MDN for teaching developers new to graphics programming the WebGL APIs. Required skills and experience Computer graphics experience with programmable shaders and the OpenGL, OpenGL ES, WebGL, or Direct3D APIs. Command of JavaScript and module systems preferre...
...xperience Experienced Web developer with expertise in JavaScript, CSS, HTML. Knowledge of server-side development, caching and network layers preferred. Mentor information Harald Kirschner, Web Craftsman. GitHub: digitarald Twitter: @digitarald Curriculum Development Brief Project Description MDN serves as a trusted resource for literally millions of developers on a regular basis. In 20
15, MDN will expand the impact of this content by developing Kits of key learning materials, including such elements as code samples, videos and other elements being finalized. Activities and Deliverables Act as lead curator for technical curriculum addressing a key web technology, developing code samples, videos, interactive exercises and other components to be determined. You may propose your ow...
...And 2 more matches
NSS 3.15.4 release notes
Introduction Network Security Services (NSS) 3.
15.4 is a patch release for NSS 3.
15. The bug fixes in NSS 3.
15.4 are described in the "Bugs Fixed" section below. Distribution Information The HG tag is NSS_3_
15_4_RTM. NSS 3.
15.4 requires NSPR 4.10.2 or newer. NSS 3.
15.4 source distributions are also available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_
15_4_RTM/src/ Security Advisories The following security-relevant bugs have been resolved in NSS 3.
15.4. Users are encouraged to upgrade immediately. ...
... Implemented OCSP server functionality for testing purposes (httpserv utility). Support SHA-1 signatures with TLS 1.2 client authentication. ...
...T_ForcePostMethodForOCSP CERT_GetSubjectNameDigest CERT_GetSubjectPublicKeyDigest SSL_PeerCertificateChain SSL_RecommendedCanFalseStart SSL_SetCanFalseStartCallback New Types CERT_REV_M_FORCE_POST_METHOD_FOR_OCSP: When this flag is used, libpkix will never attempt to use the HTTP GET method for OCSP requests; it will always use POST. New PKCS #11 Mechanisms None. Notable Changes in NSS 3.
15.4 Reordered the cipher suites offered in SSL/TLS client hello messages to match modern best practices. Updated the set of root CA certificates (version 1.96). Improved SSL/TLS false start. In addition to enabling the SSL_ENABLE_FALSE_START option, an application must now register a callback using the SSL_SetCanFalseStartCallback function. When building on Windows, OS_TARGET now defaults to W...
...And 2 more matches
NSS 3.15.1 release notes
Introduction Network Security Services (NSS) 3.
15.1 is a patch release for NSS 3.
15. The bug fixes in NSS 3.
15.1 are described in the "Bugs Fixed" section below. Distribution Information NSS 3.
15.1 source distributions are also available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_
15_1_RTM/src/ New in NSS 3.
15.1 New Functionality TLS 1.2: TLS 1.2 (RFC 5246) is supported. HMAC-SHA256 cipher suites (RFC 5246 and RFC 5289) are supported, allowing TLS to be used without MD5 and SHA-1. Note the following limitations. The hash function used in the signature for TLS 1.2 client authentication must be the hash function of the TLS 1.2 PRF, which is always SHA-256 in NSS 3.
15.1. AE...
...n sslerr.h SSL_ERROR_UNSUPPORTED_HASH_ALGORITHM, SSL_ERROR_DIGEST_FAILURE, SSL_ERROR_INCORRECT_SIGNATURE_ALGORITHM - New error codes for TLS 1.2. in sslt.h ssl_hmac_sha256 - A new value in the SSLMACAlgorithm enum type. ssl_signature_algorithms_xtn - A new value in the SSLExtensionType enum type. New PKCS #11 Mechanisms None. Notable Changes in NSS 3.
15.1 Bug 856060 - Enforce name constraints on the common name in libpkix when no subjectAltName is present. Bug 875
156 - Add const to the function arguments of SEC_CertNicknameConflict. Bug 877798 - Fix ssltap to print the certificate_status handshake message correctly. Bug 882829 - On Windows, NSS initialization fails if NSS cannot call the RtlGenRandom function. Bug 875601 - SECMOD_Clo...
...serDB fails to reset the token delay, leading to spurious failures. Bug 884072 - Fix a typo in the header include guard macro of secmod.h. Bug 876352 - certutil now warns if importing a PEM file that contains a private key. Bug 565296 - Fix the bug that shlibsign exited with status 0 even though it failed. The NSS_SURVIVE_DOUBLE_BYPASS_FAILURE build option is removed. ...
...6352 - certutil now warns if importing a PEM file that contains a private key. Bug 565296 - Fix the bug that shlibsign exited with status 0 even though it failed. The NSS_SURVIVE_DOUBLE_BYPASS_FAILURE build option is removed. Bugs fixed in NSS 3.
15.1 https://bugzilla.mozilla.org/buglist.cgi?list_id=5689256;resolution=FIXED;classification=Components;query_format=advanced;target_milestone=3.
15.1;product=NSS Compatibility NSS 3.
15.1 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.
15.1 shared libraries without recompiling or relinking. Furthermore, applications that restrict their use of NSS APIs to the functions listed in NSS Public Functions will remain compatible with future ve...
NSS 3.15.2 release notes
Introduction Network Security Services (NSS) 3.
15.2 is a patch release for NSS 3.
15. The bug fixes in NSS 3.
15.2 are described in the "Bugs Fixed" section below. Distribution Information NSS 3.
15.2 source distributions are also available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_
15_2_RTM/src/ Security Advisories The following security-relevant bugs have been resolved in NSS 3.
15.2. Users are encouraged to upgrade immediately. Bug 894370 - (CVE-2013-1739) Avoid uninitialized data read in the event of a decryption failure. New in NSS 3.
15.2 New Functionality AES-GCM Ciphersuites: AES-GCM cipher suite (RFC 5288 and RFC 5289) support has been added when TLS 1.2 is negotiated. Specifica...
...DSA_WITH_AES_128_GCM_SHA256 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 TLS_RSA_WITH_AES_128_GCM_SHA256 New Functions PK11_CipherFinal has been introduced, which is a simple alias for PK11_DigestFinal. New Types No new types have been introduced. ...
... Bug 848384 - Deprecate the SSL cipher policy code, as it's no longer relevant. ...
... finished. Bug 848384 - Deprecate the SSL cipher policy code, as it's no longer relevant. It is no longer necessary to call NSS_SetDomesticPolicy because all cipher suites are now allowed by default. A complete list of all bugs resolved in this release can be obtained at https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&classification=Components&query_format=advanced&target_milestone=3.
15.2&product=NSS&list_id=7982238 Compatibility NSS 3.
15.2 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.
15.2 shared libraries without recompiling or relinking. Furthermore, applications that restrict their use of NSS APIs to the functions listed in NSS Public Functions will remain compatible...
NSS 3.15.5 release notes
Introduction Network Security Services (NSS) 3.
15.5 is a patch release for NSS 3.
15. The bug fixes in NSS 3.
15.5 are described in the "Bugs Fixed" section below. Distribution Information The HG tag is NSS_3_
15_5_RTM. NSS 3.
15.5 requires NSPR 4.10.2 or newer. NSS 3.
15.5 source distributions are also available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_
15_5_RTM/src/ New in NSS 3.
15.5 New Functionality Added support for the TLS application layer protocol negotiation (ALPN) extension. Two SSL socket options, SSL_ENABLE_NPN and SSL_ENABLE_ALPN, can be used to control whether NPN or ALPN (or both) should be used for application layer protocol negotiation. Added the TLS padding extension. The ext...
...hould be used for application layer protocol negotiation. Added the TLS padding extension. The extension type value is 35655, which may change when an official extension type value is assigned by IANA. NSS automatically adds the padding extension to ClientHello when necessary. Added a new macro CERT_LIST_TAIL, defined in certt.h, for getting the tail of a CERTCertList. Notable Changes in NSS 3.
15.5 Bug 950129: Improve the OCSP fetching policy when verifying OCSP responses Bug 949060: Validate the iov input argument (an array of PRIOVec structures) of ssl_WriteV (called via PR_Writev). Applications should still take care when converting struct iov to PRIOVec because the iov_len members of the two structures have different types (size_t vs. int). size_t is unsigned and may be larger than...
...e OCSP fetching policy when verifying OCSP responses Bug 949060: Validate the iov input argument (an array of PRIOVec structures) of ssl_WriteV (called via PR_Writev). Applications should still take care when converting struct iov to PRIOVec because the iov_len members of the two structures have different types (size_t vs. int). size_t is unsigned and may be larger than int. ...
...re when converting struct iov to PRIOVec because the iov_len members of the two structures have different types (size_t vs. int). size_t is unsigned and may be larger than int. Bugs fixed in NSS 3.
15.5 A complete list of all bugs resolved in this release can be obtained at https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&classification=Components&query_format=advanced&target_milestone=3.
15.5&product=NSS Compatibility NSS 3.
15.5 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.
15.5 shared libraries without recompiling or relinking. Furthermore, applications that restrict their use of NSS APIs to the functions listed in NSS Public Functions will remain compatible with future ver...
NSS 3.15.3.1 release notes
Introduction Network Security Services (NSS) 3.
15.3.1 is a patch release for NSS 3.
15. The bug fixes in NSS 3.
15.3.1 are described in the "Bugs Fixed" section below. Distribution Information The HG tag is NSS_3_
15_3_1_RTM. NSS 3.
15.3.1 requires NSPR 4.10.2 or newer. NSS 3.
15.3.1 source distributions are also available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_
15_3_1_RTM/src/ Security Advisories The following security-relevant bugs have been resolved in NSS 3.
15.3.1. Users are encouraged to upgrade immediately. Bug 946351 - Misissued Google certificates from DCSSI New in NSS 3.
15.3.1 New Functionality No new major functionality is introduced in this release. This is a patch release to revo...
... have been resolved in NSS 3.
15.3.1. Users are encouraged to upgrade immediately. Bug 946351 - Misissued Google certificates from DCSSI New in NSS 3.
15.3.1 New Functionality No new major functionality is introduced in this release. This is a patch release to revoke trust of a subordinate CA certificate that was mis-used to generate a certificate used by a network appliance. Bugs fixed in NSS 3.
15.3.1 Bug 946351 - Misissued Google certificates from DCSSI A complete list of all bugs resolved in this release can be obtained at https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&classification=Components&query_format=advanced&target_milestone=3.
15.3.1&product=NSS Compatibility NSS 3.
15.3.1 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program li...
...A complete list of all bugs resolved in this release can be obtained at https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&classification=Components&query_format=advanced&target_milestone=3.
15.3.1&product=NSS Compatibility NSS 3.
15.3.1 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.
15.3.1 shared libraries without recompiling or relinking. Furthermore, applications that restrict their use of NSS APIs to the functions listed in NSS Public Functions will remain compatible with future versions of the NSS shared libraries. Feedback Bugs discovered should be reported by filing a bug report with bugzilla.mozilla.org (product NSS). ...
415 Unsupported Media Type - HTTP
The HTTP 4
15 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format. The format problem might be due to the request's indicated Content-Type or Content-Encoding, or as a result of inspecting the data directly. ...
... The HTTP 4
15 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format. The format problem might be due to the request's indicated Content-Type or Content-Encoding, or as a result of inspecting the data directly. ...
...ient error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format. ...
Index - Web APIs
, i.e. using AbortController.abort(). 14 AbsoluteOrientationSensor API, AbsoluteOrientationSensor, Generic Sensor API, Interface, Orientation Sensor API, OrientationSensor, Reference, Sensor, Sensor APIs, Sensors The AbsoluteOrientationSensor interface of the Sensor APIs describes the device's physical orientation in relation to the Earth's reference coordinate system.
15 AbsoluteOrientationSensor API, AbsoluteOrientationSensor, Constructor, Generic Sensor API, Orientation Sensor API, Reference, Sensor, Sensor APIs, Sensors The AbsoluteOrientationSensor constructor creates a new AbsoluteOrientationSensor object which describes the device's physical orientation in relation to the Earth's reference coordinate system. 16 AbstractRange API...
...The AudioBufferSourceNode() constructor creates a new AudioBufferSourceNode object instance. 114 AudioBufferSourceNode.buffer API, Audio, AudioBufferSourceNode, Buffer, Media, Property, Reference, Web Audio API, sound The buffer property of the AudioBufferSourceNode interface provides the ability to play back audio using an AudioBuffer as the source of the sound data. 1
15 AudioBufferSourceNode.detune API, Audio, AudioBufferSourceNode, Property, Reference, Web Audio API, detune The detune property of the AudioBufferSourceNode interface is a k-rate AudioParam representing detuning of oscillation in cents. 116 AudioBufferSourceNode.loop API, Audio, AudioBufferSourceNode, Loop, Media, Property, Reference, Web Audio API, sound The loo...
...roperty of the AudioListener interface is an AudioParam representing the y position of the listener in 3D cartesian space. 149 AudioListener.positionZ API, Audio, AudioListener, Property, Reference, Web Audio API, positionZ The positionZ read-only property of the AudioListener interface is an AudioParam representing the z position of the listener in 3D cartesian space. ...
...And 200 more matches
Index - Archive of obsolete content
he history of an obsolete feature or API, and how it worked. 2 .htaccess ( hypertext access ) 301 redirect, Cache control, Custom Error pages, HTACCESS, Permanent Redirect, Redirect File Accessing : htaccess files can be opened using any text editor, like Windows Notepad, Vin, Sublime text editor or any other. Syntax highliting support for .htaccess files less. 3 20
15 MDN Fellowship Program 20
15, Archive, fellowship No summary! 4 API API, Archive Archived documentation about obsolete web standards APIs. 5 Navigator API, Navigator Features that used to hang off the Navigator interface, but have since been removed. 6 Navigator.mozNotification API, Deprecated, Mobile, Non-standard, Property, Refer...
...-ons need to access and modify the content of web pages. But the main add-on code doesn't get direct access to web content. Instead, SDK add-ons need to factor the code that gets access to web content into separate scripts that are called content scripts. This page describes how to develop and implement content scripts. 14 Communicating With Other Scripts No summary!
15 Communicating using "port" To enable add-on scripts and content scripts to communicate with each other, each end of the conversation has access to a port object. 16 Communicating using "postMessage" Add-on SDK No summary! 17 Cross-domain Content Scripts Add-on SDK, Add-ons, Extensions No summary! 18 Interacting with page scripts ...
...nformation about the application on which your add-on is running. 112 tabs/utils Functions for working with XUL tabs and the XUL tabbrowser object. 113 test/assert Add-on SDK, JPM Implements the assert interface defined in the CommonJS Unit Testing specification version 1.1. 114 test/harness Test harness setup and execution. 1
15 test/httpd An HTTP server for the Mozilla platform, which can be used in unit tests. 116 test/runner Sets up unit tests. 117 test/utils Helper methods used in the CommonJS Unit Testing suite. 118 ui/button/action Add a button to the Firefox user interface. 119 ui/button/toggle Add a toggle butto...
...And 77 more matches
Applying styles and colors - Web APIs
ike the color palettes Photoshop uses. function draw() { var ctx = document.getElementById('canvas').getContext('2d'); for (var i = 0; i < 6; i++) { for (var j = 0; j < 6; j++) { ctx.fillStyle = 'rgb(' + Math.floor(255 - 42.5 * i) + ', ' + Math.floor(255 - 42.5 * j) + ', 0)'; ctx.fillRect(j * 25, i * 25, 25, 25); } } } <canvas id="canvas" width="
150" height="
150"></canvas> draw(); The result looks like this: ScreenshotLive sample A strokeStyle example This example is similar to the one above, but uses the strokeStyle property to change the colors of the shapes' outlines. We use the arc() method to draw circles instead of squares. function draw() { var ctx = document.getElementById('canvas').getContext('2d'); for (var i = 0;...
...This is done by either setting the globalAlpha property or by assigning a semi-transparent color to the stroke and/or fill style. globalAlpha = transparencyValue Applies the specifie...
...This is done by either setting the globalAlpha property or by assigning a semi-transparent color to the stroke and/or fill style. globalAlpha = transparencyValue Applies the specified transparenc...
...And 32 more matches
mix-blend-mode - CSS: Cascading Style Sheets
or | luminosity Examples Effect of different mix-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%" st...
... <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="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"> darken <div class="container darken"> <div...
... <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"> darken <div class="container darken"> <div class="group"> <div class="item firefox"></div> <svg viewBox="0 0
150
150"> <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"> screen <div class="container screen"> <div...
...And 30 more matches
Index
luding a description of the steps involved in modifying an existing C++ class to participate in XPCOM cycle collection. If you have a class that you think is involved in a cyclical-ownership leak, this page is for you. 14 Introduction to XPCOM for the DOM Developing Mozilla Warning: this document has not yet been reviewed by the DOM gurus, it might contain some errors.
15 Language bindings Embedding, Landing, Mozilla, XPCOM, XPCOM:Language Bindings An XPCOM Language Binding is a bridge between a particular language and XPCOM to provide access to XPCOM objects from that language, and to let modules written in that language be used as XPCOM objects by all other languages for which there are XPCOM bindings. 16 Components object DOM, Gecko...
...the item. Items are found, added, and removed from the hashtable by using the key. Hashtables may seem like arrays, but there are important differences: 114 How to build an XPCOM component in JavaScript Add-ons, Extensions, JavaScript, Tutorial, XPCOM If you are looking for Add-on SDK solution for XPCOM JavaScript components then check out platform/xpcom module first. 1
15 Inheriting from implementation classes XPCOM Given that IDL interfaces map to abstract classes in C++, a common problem when dealing with IDL is when you have an IDL inheritance hierarchy, and a corresponding C++ implementation hierarchy, you run into multiple inheritance. That's not inherently multiple inheritance, though, because you only mix in interfaces (i.e. the problem would ...
...XPCOM, XPCOM_Macros Throws a assertion (NS_ASSERTION) with the text "Error: (error text)", so writes this text to console (stderr) and to debug logs (NSPR logging). This macro is meant for critical errors; like assertions, NS_ERRORs should not be reachable. ...
...And 25 more matches
NSS 3.46 release notes
Other releases are available in NSS Releases. New in NSS 3.46 This release contains no significant new functionality, but concentrates on providing improved performance, stability, and security. Of particular note are significant improvements to AES-GCM performance on ARM. ...
...e, stability, and security. Of particular note are significant improvements to AES-GCM performance on ARM. ...
...he following CA certificates were Removed: Bug
1574670 - Remove expired Class 2 Primary root certificate SHA-256 Fingerprint: 0F993C8AEF97BAAF5687140ED59AD1821BB4AFACF0AA9A58B5D57A338A3AFBCB Bug
1574670 - Remove expired UTN-USERFirst-Client root certificate SHA-256 Fingerprint: 43F257412D440D627476974F877DA8F1FC2444565A367AE60EDDC27A412531AE Bug
1574670 - Remove expired Deutsche Telekom Root CA 2 root certificate SHA-256 Fingerprint: B6191A50D0C3977F7DA99BCDAAC86A227DAEB9679EC70BA3B0C9D92271C170D3 Bug
1566569 - Remove Swisscom Root CA 2 root certificate SHA-256 Fingerprint: F09B122C7114F4A09BD4EA4F4A99D558B46E4C25CD81140D29C05613914C3841 Upcoming changes to default TLS configuration The next ...
...And 22 more matches
Index
p. 14 HTTP delegation Advanced, Guide, NSS Up to version 3.11, NSS connects directly over HTTP to an OCSP responder to make the request and fetch the response. It does so in a blocking fashion, and also directly to the responder, ignoring any proxy the application may wish to use. This causes OCSP requests to fail if the network environment requires the use of a proxy.
15 HTTP delegation Advanced, Guide, NSS Up to version 3.11, NSS connects directly over HTTP to an OCSP responder to make the request and fetch the response. It does so in a blocking fashion, and also directly to the responder, ignoring any proxy the application may wish to use. This causes OCSP requests to fail if the network environment requires the use of a proxy. 16 Index...
...3.14.4 release notes Network Security Services (NSS) 3.14.4 is a patch release for NSS 3.14. The bug fixes in NSS 3.14.4 are described in the "Bugs Fixed" section below. 37 NSS 3.14.5 release notes Network Security Services (NSS) 3.14.5 is a patch release for NSS 3.14. The bug fixes in NSS 3.14.5 are described in the "Bugs Fixed" section below. ...
...e for NSS 3.14. The bug fixes in NSS 3.14.4 are described in the "Bugs Fixed" section below. 37 NSS 3.14.5 release notes Network Security Services (NSS) 3.14.5 is a patch release for NSS 3.14. The bug fixes in NSS 3.14.5 are described in the "Bugs Fixed" section below. 38 NSS 3.
15 release notes The NSS team has released Network Security Services (NSS) 3.
15, which is a minor release. ...
...And 21 more matches
Index - Archive of obsolete content
Reference, XUL, XUL Attributes, XUL Reference, accesskey No summary! 11 activetitlebarcolor XUL Attributes, XUL Reference No summary! 12 afterselected XUL Attributes, XUL Reference No summary! 13 align Reference, Reference(2), XUL No summary! 14 allowevents XUL Attributes, XUL Reference No summary!
15 allownegativeassertions XUL Attributes, XUL Reference No summary! 16 alternatingbackground XUL Attributes, XUL Reference No summary! 17 alwaysopenpopup XUL Attributes, XUL Reference No summary! 18 attribute XUL Attributes, XUL Reference No summary! 19 autoFillAfterMatch XUL Attributes, XUL Reference ...
...! 110 element XUL Attributes, XUL Reference No summary! 111 empty XUL Attributes, XUL Reference No summary! 112 emptytext XUL Attributes, XUL Reference No summary! 113 enableColumnDrag XUL Attributes, XUL Reference No summary! 114 enablehistory XUL Attributes, XUL Reference No summary! 1
15 equalsize XUL Attributes, XUL Reference No summary! 116 eventnode XUL Attributes, XUL Reference No summary! 117 events XUL Attributes, XUL Reference No summary! 118 expr XUL Attributes, XUL Reference No summary! 119 fadein XUL, XUL Attribute, XUL Reference No summary! 120 findnextaccesskey...
... Reference No summary! 145 homepage XUL Attributes, XUL Reference No summary! 146 href XUL Attributes, XUL Reference No summary! 147 icon XUL Attributes, XUL Reference No summary! 148 iconsize Toolbar, XUL, XUL Attribute No summary! 149 id XUL Attributes, XUL Reference No summary! ...
...And 19 more matches
Localization and Plurals
rd, separated by semi-colons. For example, English uses plural rule 1, and localizing plurals would require a string of "plural;plurals" where the first word is the singular form and the second is the general plural form. Plural rule #0 (1 form) Families: Asian (Chinese, Japanese, Korean), Persian, Turkic/Altaic (Turkish), Thai, Lao everything: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, ... Plural rule #1 (2 forms) Families: Germanic (Danish, Dutch, English, Faroese, Frisian, German, Norwegian, Swedish), Finno-Ugric (Estonian, Finnish, Hungarian), Language isolate (Basque), Latin/Greek (Greek), Semitic (Hebrew), Romanic (Italian, Portuguese, ...
..., 42, 43, 44, 45, 46, 47, 48, 49, ... ...
...), Vietnamese is 1: 1 everything else: 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, ... Plural rule #2 (2 forms) Families: Romanic (French, Brazilian Portuguese), Lingala is 0 or 1: 0, 1 everything else: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, ... Plural rule #3 (3 forms) Families: Baltic (Latvian, Latgalian) ends in 0: 0 ends in 1, excluding 11: 1, 21, 31, 41, 51, 61, 71, 81, 91, 101, 121, 131, 141,
151, 161, 171, 181, 191, 201, 221, 231, 241, 251, 261, 271, 281, 291, ... everything else...
...And 19 more matches
NSS 3.45 release notes
PK11_FindRawCertsWithSubject - Finds all certificates on the given slot with the given subject distinguished name and returns them as DER bytes. If no such certificates can be found, returns SECSuccess and sets *results to NULL. If a failure is encountered while fetching any of the matching certificates, SECFailure is returned and *results will be NULL. Notable Changes in NSS 3.45 Bug
1540403 - Implement Delegated Credentials (draft-ietf-tls-subcerts) This adds a new experimental function: SSL_DelegateCredential Note: In 3.45, selfserv does not yet support delegated credentials. See Bug
1548360. Note: In 3.45 the SSLChannelInfo is left unmodified, while an upcoming change in 3.46 will set SSLChannelInfo.authKeyBits to that of the delegated credential for better polic...
...ated Credentials (draft-ietf-tls-subcerts) This adds a new experimental function: SSL_DelegateCredential Note: In 3.45, selfserv does not yet support delegated credentials. See Bug
1548360. Note: In 3.45 the SSLChannelInfo is left unmodified, while an upcoming change in 3.46 will set SSLChannelInfo.authKeyBits to that of the delegated credential for better policy enforcement. See Bug
1563078. ...
...raft-ietf-tls-subcerts) This adds a new experimental function: SSL_DelegateCredential Note: In 3.45, selfserv does not yet support delegated credentials. See Bug
1548360. Note: In 3.45 the SSLChannelInfo is left unmodified, while an upcoming change in 3.46 will set SSLChannelInfo.authKeyBits to that of the delegated credential for better policy enforcement. See Bug
1563078. ...
...And 18 more matches
SubtleCrypto.unwrapKey() - Web APIs
ey. Once we have the unwrapping key we pass it into unwrapKey() with the wrapped key and other parameters. See the complete code on GitHub. /* Salt that is to be used in derivation of the key-wrapping key, alongside the password the user supplies. This must match the salt value that was originally used to derive the key. */ const saltBytes = [89,113,135,234,168,204,21,36,55,93,1,132,242,242,192,
156]; /* The wrapped key itself. */ const wrappedKeyBytes = [171,223,14,36,201,233,233,120,164,68,217,192,226,80, 224,39,199,235,239,60,212,169,100,23,61,54,244,197,160,80,109,230,207, 225,57,197,175,71,80,209]; /* Convert an array of byte values to an ArrayBuffer. */ function bytesToArrayBuffer(bytes) { const bytesAsArrayBuffer = new ArrayBuffer(bytes.length); const bytesUint8 = new U...
... of the key-wrapping key, alongside the password the user supplies. This must match the salt value that was originally used to derive the key. */ const saltBytes = [180,253,62,216,47,35,90,55,218,233,103,10,172,143,161,177]; /* IV that is to be used in decrypting the key to unwrap. This must the the same IV that was originally used to encrypt the key. ...
...atch the salt value that was originally used to derive the key. */ const saltBytes = [180,253,62,216,47,35,90,55,218,233,103,10,172,143,161,177]; /* IV that is to be used in decrypting the key to unwrap. This must the the same IV that was originally used to encrypt the key. */ const ivBytes = [212,187,26,247,172,51,37,
151,27,177,249,142]; /* The wrapped key itself. ...
...And 18 more matches
Drawing shapes with canvas - Web APIs
will have learned how to draw rectangles, triangles, lines, arcs and curves, providing familiarity with some of the basic shapes. Working with paths is essential when drawing objects onto the canvas and we will see how that can be done. The grid Before we can start drawing, we need to talk about the canvas grid or coordinate space. Our HTML skeleton from the previous page had a canvas element
150 pixels wide and
150 pixels high. To the right, you see this canvas with the default grid overlayed. Normally 1 unit in the grid corresponds to 1 pixel on the canvas. The origin of this grid is positioned in the top left corner at coordinate (0,0). All elements are placed relative to this origin. So the position of the top left corner of the blue square becomes x pixels from the left and y pixels...
...hese three functions takes the same parameters. x and y specify the position on the canvas (relative to the origin) of the top-left corner of the rectangle. width and height provide the rectangle's size. Below is the draw() function from the previous page, but now it is making use of these three functions. Rectangular shape example <html> <body onload="draw();"> <canvas id="canvas" width="
150" height="
150"></canvas> </body> </html> function draw() { var canvas = document.getElementById('canvas'); if (canvas.getContext) { var ctx = canvas.getContext('2d'); ctx.fillRect(25, 25, 100, 100); ctx.clearRect(45, 45, 60, 60); ctx.strokeRect(50, 50, 50, 50); } } This example's output is shown below. ScreenshotLive sample The fillRect() function draws a large black...
...ed or beginPath() is called, you typically will want to use the moveTo() function to place the starting point somewhere else. We could also use moveTo() to draw unconnected paths. Take a look at the smiley face below. To try this for yourself, you can use the code snippet below. Just paste it into the draw() function we saw earlier. ...
...And 17 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
applications, multimedia content, and streaming media. Adobe Flash can run from supporting web browsers via a browser plug-in. 14 Ajax AJAX, CodingScripting, Glossary, Infrastructure, l10n:priority Ajax, which initially stood for Asynchronous JavaScript And XML, is a programming practice of building complex, dynamic webpages using a technology known as XMLHttpRequest.
15 Algorithm CodingScripting, Glossary An algorithm is a self-contained series of instructions to perform a function. 16 Alignment container Alignment container, CSS, Glossary, alignment The alignment container is the rectangle that the alignment subject is aligned within. This is defined by the layout mode; it is usually the alignment subject's containing block, a...
...certificate is a data file that binds a publicly known cryptographic key to an organization. 114 Distributed Denial of Service Attack, DDoS, Denial of Service, Glossary, Intro, Security A Distributed Denial-of-Service (DDoS) is an attack in which many compromised systems are made to attack a single target, in order to swamp server resources and block legitimate users. 1
15 DoS attack Glossary, Security DoS (Denial of Service) is a network attack that prevents legitimate use of server resources by flooding the server with requests. 116 Doctype Browser, CodingScripting, DOCTYPE, Glossary, HTML, Intro In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a br...
... is "yes" when the first contentful paint completes. 149 First input delay Glossary, Reference, Web Performance First input delay (FID) measures the time from when a user first interacts with your site (i.e. when they click a link, tap on a button, or use a custom, JavaScript-powered control) to the time when the browser is actually able to respond to that interaction. ...
...And 16 more matches
IDBObjectStore - Web APIs
-- 57Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25 ...
...-- 57Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25 ...
...-- 57Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25 ...
...And 14 more matches
Index
e most typical operations that are relevant for fast program execution are property accesses and function calls. 14 JIT Optimization Strategies Junk, SpiderMonkey SpiderMonkey's optimizing JIT, IonMonkey, uses various strategies to optimize operations. The most commonplace operations that are relevant for fast program execution are property accesses and function calls.
15 JSAPI Cookbook SpiderMonkey This article shows the JSAPI equivalent for a tiny handful of common JavaScript idioms. 16 JSAPI User Guide JSAPI, SpiderMonkey This document explains how to embed SpiderMonkey, the Mozilla JavaScript engine, in your C++ program. 17 JSAPI reference NeedsContent, SpiderMonkey JS::DeflateStringToUTF8Buffer 18...
...h true in *bp if v is an instance of obj, false in *bp otherwise. 113 JSID_EMPTY JSAPI Reference, Reference, Reference(2), SpiderMonkey JSID_EMPTY is an internal jsid value which is used in type inference code. 114 JSID_IS_EMPTY JSAPI Reference, Reference, Reference(2), SpiderMonkey JSID_IS_EMPTY tests whether a specified JS ID, id, is JSID_EMPTY. 1
15 JSID_IS_GCTHING JSAPI Reference, Reference, Reference(2), SpiderMonkey JSID_IS_GCTHING tests whether a specified JS ID, id, is a GC thing, and returns true if it's a GC thing. 116 JSID_IS_INT JSAPI Reference, Reference, Reference(2), SpiderMonkey JSID_IS_INT tests whether a specified JS ID, id, is an integer, and returns true if it's an integer. 117 J...
...ec defines the attributes for a single JS property to associate with an object. Pass to JS_DefineProperties or JS_InitClass to create the properties and assign them to an object. 149 JSProtoKey JSAPI Reference, Reference, Reference(2), SpiderMonkey Each of these types corresponds to standard objects in JavaScript. Some of them are Nightly only (depends on each option). ...
...And 13 more matches
Key Values - Web APIs
ift (0xFE11) GDK_KEY_ISO_Level5_Latch (0xFE12) GDK_KEY_ISO_Level5_Lock (0xFE13) Qt::Key_AltGr (0x01001103 Qt::Key_Mode_switch (0x0100117E) "CapsLock" The Caps Lock key. Toggles the capital character lock on and off for subsequent input. VK_CAPITAL (0x14) kVK_CapsLock (0x39) GDK_KEY_Caps_Lock (0xFFE5) Qt::Key_CapsLock (0x01000024) KEYCODE_CAPS_LOCK (1
15) "Control" The Control, Ctrl, or Ctl key. Allows typing control characters. VK_CONTROL (0x11) VK_LCONTROL (0xA2) VK_RCONTROL (0xA3) kVK_Control (0x3B) kVK_RightControl (0x3E) GDK_KEY_Control_L (0xFFE3) GDK_KEY_Control_R (0xFFE4) Qt::Key_Control (0x01000021) KEYCODE_CTRL_LEFT (113) KEYCODE_CTRL_RIGHT (114) "Fn" The Fn (Function modifier) ...
...l key. Allows typing control characters. VK_CONTROL (0x11) VK_LCONTROL (0xA2) VK_RCONTROL (0xA3) kVK_Control (0x3B) kVK_RightControl (0x3E) GDK_KEY_Control_L (0xFFE3) GDK_KEY_Control_R (0xFFE4) Qt::Key_Control (0x01000021) KEYCODE_CTRL_LEFT (113) KEYCODE_CTRL_RIGHT (114) "Fn" The Fn (Function modifier) key. Used to allow generating function key (F1-F
15, for instance) characters on keyboards without a dedicated function key area. Often handled in hardware so that events aren't generated for this key. kVK_Function (0x3F) KEYCODE_FUNCTION (119) "FnLock" The FnLock or F-Lock (Function Lock) key.Toggles the function key mode described by "Fn" on and off. Often handled in hardware so that events aren't generated for this key...
... for the Space Bar key. Firefox did so until version 37, as did Internet Explorer 9, 10, and 11. Navigation keys KeyboardEvent.key Value Description Virtual Keycode Windows Mac Linux Android "ArrowDown" [1] The down arrow key. VK_DOWN (0x28) kVK_DownArrow (0x7D) GDK_KEY_Down (0xFF54) GDK_KEY_KP_Down (0xFF99) Qt::Key_Down (0x010000
15) KEYCODE_DPAD_DOWN (20) "ArrowLeft" [1] The left arrow key. VK_LEFT (0x25) kVK_LeftArrow (0x7B) GDK_KEY_Left (0xFF51) GDK_KEY_KP_Left (0xFF96) Qt::Key_Left (0x01000012) KEYCODE_DPAD_LEFT (21) "ArrowRight" [1] The right arrow key. VK_RIGHT (0x27) kVK_RightArrow (0x7C) GDK_KEY_Right (0xFF53) GDK_KEY_KP_Right (0xFF98) Qt::Key_Right (0x0...
...And 13 more matches
IDBDatabase - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/IDBDatabase" target="_top"><rect x="
151" y="1" width="110" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="206" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">IDBDatabase</text></a></svg></div> a:hover text { fill: #00...
...-- 57Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25 ...
... Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support
15Safari Full support 7WebView Android Full support YesChrome Android Full support 25Firefox Android Full support 22Opera Android Full support 14Safari iOS Full ...
...And 12 more matches
NSS 3.48 release notes
mation The HG tag is NSS_3_48_RTM. NSS 3.48 requires NSPR 4.24 or newer. NSS 3.48 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_48_RTM/src/ Other releases are available in NSS Releases. Notable Changes in NSS 3.48 TLS 1.3 is the default maximum TLS version. See Bug
1573118 for details. TLS extended master secret is enabled by default, where possible. See Bug
1575411 for details. The master password PBE now uses 10,000 iterations by default when using the default sql (key4.db) storage. Because using an iteration count higher than 1 with the legacy dbm (key3.db) storage creates files that are incompatible with previous versions of NSS, applications that wish ...
...le with previous versions of NSS, applications that wish to enable it for key3.db are required to set environment variable NSS_ALLOW_LEGACY_DBM_ITERATION_COUNT=1. Applications may set environment variable NSS_MIN_MP_PBE_ITERATION_COUNT to request a higher iteration count than the library's default, or NSS_MAX_MP_PBE_ITERATION_COUNT to request a lower iteration count for test environments. ...
...nment variable NSS_ALLOW_LEGACY_DBM_ITERATION_COUNT=1. Applications may set environment variable NSS_MIN_MP_PBE_ITERATION_COUNT to request a higher iteration count than the library's default, or NSS_MAX_MP_PBE_ITERATION_COUNT to request a lower iteration count for test environments. See Bug
1562671 for details. ...
...And 11 more matches
Index - Learn web development
ub-topic should you wish.. 14 Common questions CodingScripting, Infrastructure, Learn, Web, WebMechanics This section of the Learning Area is designed to provide answers to common questions that may come up, which are not necessarily part of the structured core learning pathways (e.g. the HTML or CSS learning articles.) These articles are designed to work on their own.
15 How can we design for all types of users? Accessibility, Beginner, Design, Example, Intro, Mobile, NeedsActiveLearning When you're building a website, one top issue to consider is Universal Design: accommodating all users regardless of disability, technical constraints, culture, location, and so on. 16 How do I start to design my website? Beginner, Composing, NeedsAct...
...lues and units Beginner, CSS, Function, Image, Learn, Number, Position, color, length, percentage, units, values This has been a quick run through of the most common types of values and units you might encounter. You can have a look at all of the different types on the CSS Values and units reference page; you will encounter many of these in use as you work through these lessons. 1
15 Cascade and inheritance Beginner, CSS, Cascade, Inheritance, Learn, rules, source order, specificity The aim of this lesson is to develop your understanding of some of the most fundamental concepts of CSS -- the cascade, specificity, and inheritance -- which control how CSS is applied to HTML and how conflicts are resolved. 116 Creating fancy letterheaded paper Assess...
...n to understand how to change this default display to create the layout needed by your design. 149 Positioning Article, Beginner, CSS, CodingScripting, Guide, Layout, Positioning, absolute, fixed, relative I'm sure you had fun playing with basic positioning; while it is not a method you would use for entire layouts, as you can see there are many tasks it is suited for.
150 Practical positioning examples Article, Beginner, CSS, CodingScripting, Guide, Layout, Learn, absolute, fixed, relative So that rounds off our look at positioning -- by now, you should have an idea of how the basic mechanics work, as well as understanding how to start applying these to build some interesting UI features. Don't worry if you didn't get this all immediately -- positio...
...And 10 more matches
NSS 3.47 release notes
ownload: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_47_RTM/src/ Other releases are available in NSS Releases. Upcoming changes to default TLS configuration The next NSS team plans to make two changes to the default TLS configuration in NSS 3.48, which will be released in early December: TLS 1.3 will be the default maximum TLS version. ...
...RTM/src/ Other releases are available in NSS Releases. Upcoming changes to default TLS configuration The next NSS team plans to make two changes to the default TLS configuration in NSS 3.48, which will be released in early December: TLS 1.3 will be the default maximum TLS version. See Bug
1573118 for details. TLS extended master secret will be enabled by default, where possible. See Bug
1575411 for details. ...
...pcoming changes to default TLS configuration The next NSS team plans to make two changes to the default TLS configuration in NSS 3.48, which will be released in early December: TLS 1.3 will be the default maximum TLS version. See Bug
1573118 for details. TLS extended master secret will be enabled by default, where possible. See Bug
1575411 for details. ...
...And 10 more matches
IDBTransaction - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/IDBTransaction" target="_top"><rect x="
151" y="1" width="140" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="221" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">IDBTransaction</text></a></svg></div> a:hover text { fil...
...-- 57Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25 ...
... Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support
15Safari Full support 7WebView Android Full support YesChrome Android Full support YesFirefox Android Full support 22Opera Android Full support 14Safari iOS Full...
...And 10 more matches
HTML documentation index - HTML: Hypertext Markup Language
TML, Reference The data-* global attributes form a class of attributes called custom data attributes, that allow proprietary information to be exchanged between the HTML and its DOM representation by scripts. 14 dir BiDi, Global attributes, HTML, Reference The dir global attribute is an enumerated attribute that indicates the directionality of the element's text.
15 draggable Global attributes, HTML, Reference The draggable global attribute is an enumerated attribute that indicates whether the element can be dragged, either with native browser behavior or the HTML Drag and Drop API. 16 dropzone Deprecated, Global attributes, HTML, Reference The dropzone global attribute is an enumerated attribute indicating what types of co...
...ation cache manifest that is downloaded in the early stages of page load. 114 <i>: The Idiomatic Text element Element, HTML, HTML text-level semantics, Reference, Web, em The HTML Idiomatic Text element (<i>) represents a range of text that is set off from the normal text for some reason, such as idiomatic text, technical terms, taxonomical designations, among others. 1
15 <iframe>: The Inline Frame element Content, Element, Embedded content, Embedding, Frames, HTML, HTML embedded content, Inline Frames, Reference, Web, embedded, iframe The HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one. 116 <image>: The obsolete Image element Element, HTML, HTML Element Refere...
...ata, Link, Reference, Web, Web Performance, metadata The HTML External Resource Link element (<link>) specifies relationships between the current document and an external resource. This element is most commonly used to link to stylesheets, but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things. ...
...And 10 more matches
Paths - SVG: Scalable Vector Graphics
he first control point. In this case the result is the same as what the Q command would have produced with the same parameters. An example of this syntax is shown below, and in the figure to the left the specified control points are shown in red, and the inferred control point in blue. <svg width="190" height="160" xmlns="http://www.w3.org/2000/svg"> <path d="M 10 80 C 40 10, 65 10, 95 80 S
150
150, 180 80" stroke="black" fill="transparent"/> </svg> The other type of Bezier curve, the quadratic curve called with Q, is actually a simpler curve than the cubic one. It requires one control point which determines the slope of the curve at both the start point and the end point. It takes two parameters: the control point and the end point of the curve. Note: The co-ordinate deltas for q a...
...he x-radius and y-radius. If needed, see <ellipse>s and how they behave. The final two parameters designate the x and y coordinates to end the stroke. Together, these four values define the basic structure of the arc. The third parameter describes the rotation of the arc. This is best explained with an example: <svg width="320" height="320" xmlns="http://www.w3.org/2000/svg"> <path d="M 10 3
15 L 110 2
15 A 30 50 0 0 1 162.55 162.45 L 172.55
152.45 A 30 50 -45 0 1 2
15.1 109.9 L 3
15 10" stroke="black" fill="green" stroke-width="2" fill-opacity="0.5"/> </svg> The example shows a <path> element that goes diagonally across the page. At its center, two elliptical arcs have been cut out (x radius = 30, y radius = 50). In the first one, th...
...ample image. For the unrotated ellipse in the image above, there are only two different arcs and not four to choose from because the line drawn from the start and end of the arc goes through the center of the ellipse. ...
...And 10 more matches
Using CSS transitions - CSS: Cascading Style Sheets
function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transform color; transition-duration: 0.5s; transition-timing-function: ease-in-out; } .box1{ transform: rotate(270deg); -webkit-transform: rotate(270deg); 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 transform -webkit-transform color; -webkit-transition-duration: 0.5s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transformv color; transition-duration: 0.5s; tr...
...t-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform color; transition-duration: 1s; transition-timing-function: ease-in-out; } .box1{ transform: rotate(270deg); -webkit-transform: rotate(270deg); 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 -webkit-transform transform color; -webkit-transition-duration: 1s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transform color; transition-duration: 1s; transit...
...g-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transform color; transition-duration: 2s; transition-timing-function: ease-in-out; } .box1{ transform: rotate(270deg); -webkit-transform: rotate(270deg); 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 transform -webkit-transform color; -webkit-transition-duration: 2s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transform color; transition-duration: 2s; transit...
...And 9 more matches
<color> - CSS: Cascading Style Sheets
magenta (synonym of fuchsia) #ff00ff mediumaquamarine #66cdaa mediumblue #0000cd mediumorchid #ba55d3 mediumpurple #9370db mediumseagreen #3cb371 mediumslateblue #7b68ee mediumspringgreen #00fa9a mediumturquoise #48d1cc mediumvioletred #c7
1585 midnightblue #191970 mintcream #f5fffa mistyrose #ffe4e1 moccasin #ffe4b5 navajowhite #ffdead oldlace #fdf5e6 olivedrab #6b8e23 orangered #ff4500 orchid #da70d6 palegoldenrod #eee8aa palegreen #98fb98 paletur...
....backgroundColor = 'white'; divElem.textContent = 'Invalid color value'; } }); Result RGB syntax variations This example shows the many ways in which a single color can be created with the various RGB color syntaxes. /* These syntax variations all specify the same color: a fully opaque hot pink. ...
...= 'white'; divElem.textContent = 'Invalid color value'; } }); Result RGB syntax variations This example shows the many ways in which a single color can be created with the various RGB color syntaxes. /* These syntax variations all specify the same color: a fully opaque hot pink. ...
...And 9 more matches
HTTP Index - HTTP
nts, size reduction of up to 70% lowers the bandwidth capacity needs. Over the years, algorithms also got more efficient, and new ones are supported by clients and servers. 14 Configuring servers for Ogg media Audio, HTTP, Media, Ogg, Video This guide covers a few server configuration changes that may be necessary for your web server to correctly serve Ogg media files.
15 Connection management in HTTP/1.x Connection Management, Guide, HTTP, Networking, Performance, WebMechanics Connection management is a key topic in HTTP: opening and maintaining connections largely impacts the performance of Web sites and Web applications. In HTTP/1.x, there are several models: short-lived connections, persistent connections, and HTTP pipelining. 16 Cont...
... DPR Client hints, HTTP, HTTP Header The DPR header is a Client Hints headers which represents the client device pixel ratio (DPR), which is the the number of physical device pixels corresponding to every CSS pixel. 114 Date General Header, HTTP, Reference, header The Date general HTTP header contains the date and time at which the message was originated. 1
15 Device-Memory Client hints, Device Memory API, HTTP, HTTP Header The Device-Memory header is a Device Memory API header that works like Client Hints header which represents the approximate amount of RAM client device has. 116 Digest HTTP, HTTP Header The Digest response HTTP header provides a digest of the requested resource. 117 ETag HTTP, Refere...
...ion API, Web USB The HTTP Feature-Policy header usb directive controls whether the current document is allowed to use the WebUSB API. 148 Feature-Policy: vibrate Directive, Feature-Policy, HTTP, Reference, Vibration API The HTTP Feature-Policy header vibrate directive controls whether the current document is allowed to trigger device vibrations via Vibration API. ...
...And 9 more matches
SVG documentation index - SVG: Scalable Vector Graphics
ttributes that specify details about exactly how the element should be handled or rendered. 14 SVG Conditional Processing Attributes Intermediate, NeedsExample, Property, Reference, SVG The SVG conditional processing attributes are all the attributes that can be specified on some SVG elements to control whether or not the element on which it appears should be rendered.
15 SVG Core Attributes Attribute, Intermediate, Reference, SVG The SVG core attributes are all the common attributes that can be specified on any SVG element. 16 SVG Event Attributes Advanced, Attribute, Draft, Landing, NeedsUpdate, SVG Event attributes always have their name starting with "on" followed by the name of the event for which they are intended. They spe...
...te> filter primitive. 113 k2 Filters, SVG, SVG Attribute The k2 attribute defines one of the values to be used within the the arithmetic operation of the <feComposite> filter primitive. 114 k3 Filters, SVG, SVG Attribute The k3 attribute defines one of the values to be used within the the arithmetic operation of the <feComposite> filter primitive. 1
15 k4 Filters, SVG, SVG Attribute The k4 attribute defines one of the values to be used within the the arithmetic operation of the <feComposite> filter primitive. 116 kernelMatrix Filters, SVG, SVG Attribute the kernelMatrix attribute defines the list of numbers that make up the kernel matrix for the <feConvolveMatrix> element. 117 kernelUnitLength F...
... it's used in. Either it defines the compositing or morphing operation to be performed. 148 order Filters, SVG, SVG Attribute the order attribute indicates the size of the matrix to be used by a <feConvolveMatrix> element. 149 orient SVG, SVG Attr The orient attribute indicates how a marker is rotated when it is placed at its position on the shape. ...
...And 9 more matches
NSS 3.44 release notes
Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_44_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.44 New Functionality New Functions in lib/certdb/cert.h CERT_GetCertificateDer - Access the DER-encoded form of a CERTCertificate. ...
...eases/NSS_3_44_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.44 New Functionality New Functions in lib/certdb/cert.h CERT_GetCertificateDer - Access the DER-encoded form of a CERTCertificate. Notable Changes in NSS 3.44 It is now possible to build NSS as a static library (Bug
1543545) Initial support for building for iOS. ...
...es/NSS_3_44_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.44 New Functionality New Functions in lib/certdb/cert.h CERT_GetCertificateDer - Access the DER-encoded form of a CERTCertificate. Notable Changes in NSS 3.44 It is now possible to build NSS as a static library (Bug
1543545) Initial support for building for iOS. ...
...And 8 more matches
Index - Firefox Developer Tools
You can use them to examine, edit, and debug HTML, CSS, and JavaScript. 2 3D view HTML, Tools, Web Development, Web Development:Tools When you click on the 3D view button, the page goes into 3D view mode; in this mode, you can see your page presented in a 3D view in which nested blocks of HTML are increasingly "tall," projecting outward from the bottom of the page. This view makes it easy to visualize the nesting of your content. ...
... app manifests Application, DevTools, Firefox, Guide, Manifest In this article we will look at inspecting app manifests using the Firefox DevTools Application panel. 14 Browser Console Browser, Debugging, Tools, Web Development, WebDevelopment:Tools The Browser Console is like the Web Console, but applied to the whole browser rather than a single content tab.
15 Browser Toolbox Debug, Firefox, JavaScript The Browser Toolbox enables you to debug add-ons and the browser's own JavaScript code rather than just web pages like the normal Toolbox. The Browser Toolbox's context is the whole browser rather than just single page on a single tab. 16 DOM Property Viewer DOM, Tools, Web Development The DOM Property Viewer lets you ...
...s, Web Development:Tools The Eyedropper tool enables you to select colors in the current page. It works like a magnifying glass over the page, enabling you to select with pixel precision. Underneath the magnifying glass it shows the color value for the current pixel using whichever scheme you've selected in Settings > Inspector > Default color unit: 34 Index Tools Found
158 pages: 35 JSON viewer Firefox includes a JSON viewer. If you open a JSON file in the browser, or view a remote URL with the Content-Type set to application/json, it is parsed and given syntax highlighting. Arrays and objects are shown collapsed, and you can expand them using the "+" icons. 36 Measure a portion of the page Design, DevTools, Developer, Firefox,...
...And 8 more matches
Basic animations - Web APIs
/files/1443/Canvas_moon.png'; earth.src = 'https://mdn.mozillademos.org/files/1429/Canvas_earth.png'; window.requestAnimationFrame(draw); } function draw() { var ctx = document.getElementById('canvas').getContext('2d'); ctx.globalCompositeOperation = 'destination-over'; ctx.clearRect(0, 0, 300, 300); // clear canvas ctx.fillStyle = 'rgba(0, 0, 0, 0.4)'; ctx.strokeStyle = 'rgba(0,
153, 255, 0.4)'; ctx.save(); ctx.translate(
150,
150); // Earth var time = new Date(); ctx.rotate(((2 * Math.PI) / 60) * time.getSeconds() + ((2 * Math.PI) / 60000) * time.getMilliseconds()); ctx.translate(105, 0); ctx.fillRect(0, -12, 40, 24); // Shadow ctx.drawImage(earth, -12, -12); // Moon ctx.save(); ctx.rotate(((2 * Math.PI) / 6) * time.getSeconds() + ((2 * Math.PI) / 60...
... function clock() { var now = new Date(); var ctx = document.getElementB...
... function clock() { var now = new Date(); var ctx = document.getElementById('...
...And 8 more matches
IDBIndex - Web APIs
-- 57Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25 ...
...-- ?Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25Firefox Android ...
...-- ?Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25Firefox Android ...
...And 8 more matches
Floats - Learn web development
a quis vestibulum sem. Aliquam tincidunt eget purus in interdum. ...
...vetica, sans-serif } .box { width:
150px; height: 100px; border-radius: 5px; background-color: rgb(207,232,220); padding: 1em; } If you save and refresh now, you'll see something much like what you'd expect -- the box is sitting above the text, in normal flow. To float the text around it add the float and margin-right properties to the .box rule: .box { float: left; margin-right:
15px; width:
150px; height: 100px; border-radius: 5px; background-color: rgb(207,232,220); padding: 1em; } Now if you save and refresh you'll see something like the following: Float Example 1 <h1>Simple float example</h1> <div class="box">Float</div> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla luctus aliquam dolor, eu lacinia lorem placerat vulputate. </p> <p>...
...cipit vel. Mauris ultricies lectus sed lobortis finibus. Vivamus eu urna eget velit cursus viverra quis vestibulum sem. Aliquam tincidunt eget purus in interdum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p> body { width: 90%; max-width: 900px; margin: 0 auto; font: .9em/1.2 Arial, Helvetica, sans-serif } .box { float: left; margin-right:
15px; width:
150px; height:
150px; border-radius: 5px; background-color: rgb(207,232,220); padding: 1em; } So let's think about how the float works -- the element with the float set on it (the <div> element in this case) is taken out of the normal layout flow of the document and stuck to the left-hand side of its parent container (<body>, in this case). Any content that comes below t...
...And 7 more matches
Linux compatibility matrix
the available library versions for the mozilla.org-distributed Firefox builds dependencies, and/or to build Firefox. ...
... 4.6 4.6 2.9 N/A Nov 2011 Feb 2013 Fedora 17 3.3 2.
15 2.32 2.24 3.4 0.24 4.7 4.7 3.0 N/A May 2012 Jul 2013 Fedora 18 3.6 2.16 2.34 2.24 3.6 0.26 4.7 4.7 3.1 N/A Jan 2013 Jan 2014 Fedora 19 3.9 2.17 2.36 2.24 3.8 0.30 4.8.1 4.8 3.3 N/A Jul 2013 Jan 20
15 Fedora 20 3.11 2.18 2.38 2.24 3.10 0.30 4.8.2 4.8 3.3 N/A Dec 2013 Jun 20
15 Fedora 21 3.17 2.20 2.42 2.24 3.14 0.32 4.9 4.9 3.4 N/A Dec 2014 Dec 20
15 Fedora 22 4.0 2.21 2.44 2.24 3.16 0.32 5.1 4.9, 5.1 3.5 N/A May 20
15 Jul 2016 Fedora 23 4.2 2.22 ...
... 4.8.2 4.8 3.3 N/A Dec 2013 Jun 20
15 Fedora 21 3.17 2.20 2.42 2.24 3.14 0.32 4.9 4.9 3.4 N/A Dec 2014 Dec 20
15 Fedora 22 4.0 2.21 2.44 2.24 3.16 0.32 5.1 4.9, 5.1 3.5 N/A May 20
15 Jul 2016 Fedora 23 4.2 2.22 2.46 2.24 3.18 0.33 5.1 5.1 3.7 N/A Nov 20
15 Dec 2016 Fedora 24 4.5 2.23 2.48 2.24 3.20 0.34 6.1 6.1 3.8 N/A Jun 2016 Aug 2017 Fedora 25 4.8 2.24 2.50 2.24 3.22.2 0.34 6.2 6.2 3.8 N/A Nov 2016 Dec 2017 Fedora 26 4.11 2.25 2.52 2.24 3.22.16 0.34 7.1 7.1 4.0 N/A Jul 2017 Jun 2018 Fedora 27 4.13 ...
...And 7 more matches
Web Console remoting - Firefox Developer Tools
We change the arguments array - we create ObjectActor instances for each object passed as an argument - and, lastly, we remove some unneeded properties (like window IDs). In the case ...
...14", "type": "networkEventUpdate", "updateType": "responseContent", "mimeType": "text/css", "contentSize": 0, "discardResponseBody": true } Actual headers, cookies, and bodies are not sent. The getRequestHeaders and other packets To get more details about a network event you can use the following packet requests (and replies). ...
...ntent", "mimeType": "text/css", "contentSize": 0, "discardResponseBody": true } Actual headers, cookies, and bodies are not sent. The getRequestHeaders and other packets To get more details about a network event you can use the following packet requests (and replies). ...
...And 7 more matches
Using images - Web APIs
derably smaller because we can avoid the need for code to generate the background. In this example, we're only using one image, so I use the image object's load event handler to execute the drawing statements. The drawImage() method places the backdrop at the coordinate (0, 0), which is the top-left corner of the canvas. ...
... canvas. <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. drawImage(image, x, y, width, height) This adds the width and height parameters, which indicate the size to which...
...terates over the rows. The second for loop iterates over the columns. The image is scaled to one third of its original size, which is 50x38 pixels. Note: Images can become blurry when scaling up or grainy if they're scaled down too much. Scaling is probably best not done if you've got some text in it which needs to remain legible. ...
...And 7 more matches
WebGL constants - Web APIs
on or stencilFunction to specify depth or stencil tests will always pass. i.e. Pixels will be drawn in the order they are drawn. Stencil actions Constants passed to WebGLRenderingContext.stencilOp(). Constant name Value Description KEEP 0x1E00 REPLACE 0x1E01 INCR 0x1E02 DECR 0x1E03 INVERT 0x
150A INCR_WRAP 0x8507 DECR_WRAP 0x8508 Textures Constants passed to WebGLRenderingContext.texParameteri(), WebGLRenderingContext.texParameterf(), WebGLRenderingContext.bindTexture(), WebGLRenderingContext.texImage2D(), and others. Constant name Value Description NEAREST 0x2600 LINEAR 0x2601 ...
... ACTIVE_TEXTURE...
...URE_MAX_LOD 0x813B TEXTURE_BASE_LEVEL 0x813C TEXTURE_MAX_LEVEL 0x813D TEXTURE_COMPARE_MODE 0x884C TEXTURE_COMPARE_FUNC 0x884D SRGB 0x8C40 SRGB8 0x8C41 SRGB8_ALPHA8 0x8C43 COMPARE_REF_TO_TEXTURE 0x884E RGBA32F 0x8814 RGB32F 0x88
15 RGBA16F 0x881A RGB16F 0x881B TEXTURE_2D_ARRAY 0x8C1A TEXTURE_BINDING_2D_ARRAY 0x8C1D R11F_G11F_B10F 0x8C3A RGB9_E5 0x8C3D RGBA32UI 0x8D70 RGB32UI 0x8D71 RGBA16UI 0x8D76 RGB16UI 0x8D77 RGBA8UI 0x8D7C ...
...And 7 more matches
Grammar and types - JavaScript
le: var n = null; console.log(n * 32); // Will log 0 to the console Variable scope When you declare a variable outside of any function, it is called a global variable, because it is available to any other code in the current document. When you declare a variable within a function, it is called a local variable, because it is available only within that function. JavaScript before ECMAScript 20
15 does not have block statement scope. Rather, a variable declared within a block is local to the function (or global scope) that the block resides within. For example, the following code will log 5, because the scope of x is the global context (or the function context if the code is part of a function). The scope of x is not limited to the immediate if statement block. if (true) { var x = 5; }...
...lobal scope) that the block resides within. For example, the following code will log 5, because the scope of x is the global context (or the function context if the code is part of a function). The scope of x is not limited to the immediate if statement block. if (true) { var x = 5; } console.log(x); // x is 5 This behavior changes when using the let declaration (introduced in ECMAScript 20
15). if (true) { let y = 5; } console.log(y); // ReferenceError: y is not defined Variable hoisting Another unusual thing about variables in JavaScript is that you can refer to a variable declared later, without getting an exception. This concept is known as hoisting. Variables in JavaScript are, in a sense, "hoisted" (or "lifted") to the top of the function or statement. However, variables ...
...* Example 1 */ var x; console.log(x === undefined); // true x = 3; /** * Example 2 */ var myvar = 'my value'; (function() { var myvar; console.log(myvar); // undefined myvar = 'local value'; })(); Because of hoisting, all var statements in a function should be placed as near to the top of the function as possible. This best practice increases the clarity of the code. In ECMAScript 20
15, let and const are hoisted but not initialized. Referencing the variable in the block before the variable declaration results in a ReferenceError, because the variable is in a "temporal dead zone" from the start of the block until the declaration is processed. console.log(x); // ReferenceError let x = 3; Function hoisting In the case of functions, only function declarations are hoisted--but no...
...And 7 more matches
Gradients in SVG - SVG: Scalable Vector Graphics
Inside the linear gradient are several <stop> nodes. These nodes tell the gradient what color it should be at certain positions by specifying an offset attribute for ...
...Inside the linear gradient are several <stop> nodes. These nodes tell the gradient what color it should be at certain positions by specifying an offset attribute for the posi...
...Inside the linear gradient are several <stop> nodes. These nodes tell the gradient what color it should be at certain positions by specifying an offset attribute for the position, and a stop-color attribute. This can be assigned dir...
...And 7 more matches
Experimental features in Firefox
or more details. Release channel Version added Enabled by default? Nightly 53 Yes Developer Edition 53 No Beta 53 No Release 53 No Preference name dom.dialog_element.enabled Global attribute: inputmode Our implementation of the inputmode global attribute has been updated as per the WHATWG spec (bug
1509527), but we still need to make other changes too, like making it available on contenteditable content. See also bug 1205133 for details. Release channel Version added Enabled by default? Nightly 75 Yes Developer Edition 75 No Beta 75 No Release 75 No Preference name dom.forms.inputmode <link rel="...
...hannel Version added Enabled by default? Nightly 75 No Developer Edition 75 No Beta 75 No Release 75 No Preference name layout.css.focus-visible.enabled Single numbers as aspect ratio in media queries Support for using a single <number> as a <ratio> when specifying the aspect ratio for a media query. See bug
1565562 for more details. Release channel Version added Enabled by default? Nightly 70 No Developer Edition 70 No Beta 70 No Release 70 No Preference name layout.css.aspect-ratio-number.enabled Property: backdrop-filter The backdrop-filter property applies filter effects to the area behind an element.
...y 77 No Developer Edition 77 No Beta 77 No Release 77 No Preference name layout.css.grid-template-masonry-value.enabled Media feature: prefers-contrast The prefers-contrast media feature is used to detect whether the user has specified a preference for higher (or lower) contrast in the presentation of web content. Refer to bug
1506364 for more details. Release channel Version added Enabled by default? Nightly 80 No Developer Edition 80 No Beta 80 No Release 80 No Preference name layout.css.prefers-contrast.enabled APIs Graphics: Canvas, WebGL, and WebGPU Interface: OffscreenCanvas The OffscreenCanvas interface provides a ...
...And 6 more matches
MathML Torture Test
/0564f346b7.png" width="27" height="18" alt="TeXbook, 16.2-16.3" /></td> <td> <math display="block"> <mrow> <msup> <mi>x</mi> <mrow> <mn>2</mn> <mi>y</mi> </mrow> </msup> </mrow> </math> </td></tr> <tr> <td>12</td> <td><img src="https://udn.realityripple.com/samples/c6/2e
157bd274.png" width="175" height="61" alt="TeXbook, 17.8" /></td> <td> <math display="block"> <mrow> <munderover> <mo>∑</mo> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>p</mi> </munderover> <munderover> <mo>∑</mo> <mrow> ...
... <msup> <mo>∂</mo> <mn>2</mn> </msup> <mrow> <mo>∂</mo> <msup> <mi>y</mi> <mn>2</mn> </msup> </mrow> </mfrac> <mo>)</mo> </mrow> <msup> <mrow> <mo minsize="
150%">|</mo> <mi>φ <!-- \varphi --></mi> <mo stretchy="false">(</mo> <mi>x</mi> <mo>+</mo> <mi mathvariant="normal">i</mi> <mi>y</mi> <mo stretchy="false">)</mo> <mo minsize="
150%">|</mo> </mrow> <mn>2</mn> </msup> <mo>=</mo> <mn>...
... <mo stretchy="false">(</mo> <mi>x</mi> <mo>+</mo> <mi mathvariant="normal">i</mi> <mi>y</mi> <mo stretchy="false">)</mo> <mo minsize="
150%">|</mo> </mrow> <mn>2</mn> </msup> <mo>=</mo> <mn>0</mn> </mrow> </math> </td></tr> <tr> <td>
15</td> <td><img src="https://udn.realityripple.com/samples/ab/983a5c2ef3.png" width="31" height="22" alt="TeXbook, 16.2-16.3" /></td> <td> <math display="block"> <mrow> <msup> <mn>2</mn> <msup> <mn>2</mn> <msup> <mn>2</mn> <mi>x</mi> </msup> </msup> ...
...And 6 more matches
NSS_3.12_release_notes.html
quest_Destroy Bug 421870: Strsclnt crashed in PKIX tests. ...
...implementation slow Bug 391294: Shared Database implementation really slow on network file systems Bug 392521: Automatic shared db update fails if user opens database R/W but never supplies a password Bug 392522: Integrity hashes must be updated when passwords are changed. ...
...CreateRDN Bug 334683: Extraneous semicolons cause Empty declaration compiler warnings Bug 335275: Compile with the GCC flag -Werror-implicit-function-declaration Bug 354565: fipstest sha_test needs to detect SHA tests that are incorrectly configured for BIT oriented implementations Bug 356595: On Windows, RNG_SystemInfoForRNG calls GetCurrentProcess, which returns the constant (HANDLE)-1. Bug 3570
15: On Windows, ReadSystemFiles reads 21 files as opposed to 10 files in C:\WINDOWS\system32. Bug 361076: Clean up the USE_PTHREADS related code in coreconf/SunOS5.mk. Bug 361077: Clean up the USE_PTHREADS related code in coreconf/HP-UX*.mk. Bug 402114: Fix the incorrect function prototypes of SSL handshake callbacks Bug 402308: Fix miscellaneous compiler warnings in nss/cmd Bug 402777: lib/util can...
...And 6 more matches
Hacking Tips
ybecx=0xfdca70) at /home/nicolas/mozilla/ionmonkey/js/src/jscntxt.cpp:495 495 if (maybecx) (gdb) call js::DumpBacktrace(maybecx) #0 (nil) typein:2 (0x7fffef1231c0 @ 0) #1 (nil) typein:2 (0x7fffef1231c0 @ 24) #2 (nil) typein:3 (0x7fffef1231c0 @ 47) #3 (nil) typein:2 (0x7fffef1231c0 @ 24) #4 (nil) typein:3 (0x7fffef1231c0 @ 47) [...] #25
157 0x7fffefbbc250 typein:2 (0x7fffef1231c0 @ 24) #25
158 0x7fffefbbc1c8 typein:3 (0x7fffef1231c0 @ 47) #25
159 0x7fffefbbc140 typein:2 (0x7fffef1231c0 @ 24) #25160 0x7fffefbbc0b8 typein:3 (0x7fffef1231c0 @ 47) #25161 0x7fffefbbc030 typein:5 (0x7fffef123280 @ 9) Note, you can do the exact same exercise above using lldb (necessary on OSX after Apple removed gdb) by running lldb -f js then ...
...Therefore, the JIT frames do not appear until you settle on the next breakpoint. To work-around this issue you can use the recording feature of gdb, to step one instruction, and settle back to where you came from with the following set of gdb commands: (gdb) record full (gdb) si (gdb) record ...
... | if (!CALL_GENERATED_2(funcPtr, exportArgs.begin(), &tlsData_)) | return false; After it's set, x/64i funcPtr will show you the trampoline code. There should be a call to an address at some point ; that's what we're targeting. Copy that address. ...
...And 6 more matches
Using the CSS Painting API - Web APIs
arency is allowed alpha is set to true by default. If set to false, all colours used on the canvas will be fully opaque */ static get contextOptions() { return { alpha: true }; } /* ctx is the 2D drawing context a subset of the HTML5 Canvas API. */ paint(ctx) { ctx.fillStyle = 'hsla(55, 90%, 60%, 1.0)'; ctx.fillRect(0,
15, 200, 20); /* order: x, y, w, h */ } }); In this class example we have defined a single context option with the contextOptions() function: we returned a simple object stating alpha transparency is allowed. We have then used the paint() function to paint to our canvas. A paint() function can take three arguments. Here we have provided one argument: the rendering context (we'll look at mor...
...tures available in the full Canvas API with the exception of the CanvasImageData, CanvasUserInterface, CanvasText, and CanvasTextDrawingStyles APIs. We define the fillStyle as being hsla(55, 90%, 60%, 1.0), which is a shade of yellow, and then call fillRect() to create a rectangle of that color. The fillRect() parameters are, in order, x-axis origin, y-axis origin, width, and height. fillRect(0,
15, 200, 20) results in the creation of a rectangle that is 200 units wide by 20 units tall, positioned 0 units from the left and
15 units from the top of the content box. We can use the CSS background-size and background-position properties to re-size or relocate this background image, but this is the default size and placement of the yellow box we created in our paint worklet. We tried to keep t...
...w box as a background: <h1 class="fancy">My Cool Header</h1> The following example will look like the image above in browsers supporting the CSS Painting API. While you can't play with the worklet's script, you can alter the background-size and background-position to change the size and location of the background image. PaintSize In the example above, we created a 20x200 unit box, painted
15 units from the top of the element it is the same regardless of the size of the element. If the text is small, the yellow box looks like a huge underline. If the text is huge, the box might look like an bar above the first three letters. It would be better if the background image was relative to the size of the element -- we can use the element's paintSize property to ensure the background image ...
...And 6 more matches
Transformations - Web APIs
you like. Each time the restore() method is called, the last saved state is popped off the stack and all saved settings are restored. A save and restore canvas state example This example tries to illustrate how the stack of drawing states functions by drawing a set of consecutive rectangles. ...
...ike. Each time the restore() method is called, the last saved state is popped off the stack and all saved settings are restored. A save and restore canvas state example This example tries to illustrate how the stack of drawing states functions by drawing a set of consecutive rectangles. ...
...ies to illustrate how the stack of drawing states functions by drawing a set of consecutive rectangles. ...
...And 6 more matches
IDBKeyRange - Web APIs
Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support
15Safari Full support 7WebView Android Full support YesChrome Android Full support YesFirefox Android Full support 22Opera Android Full support 14Safari iOS Full...
... Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support
15Safari Full support 7WebView Android Full support YesChrome Android Full support YesFirefox Android Full support 22Opera Android Full support 14Safari iOS Full...
... Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support
15Safari Full support 7WebView Android Full support YesChrome Android Full support YesFirefox Android Full support 22Opera Android Full support 14Safari iOS Full...
...And 6 more matches
DASH Adaptive Streaming for HTML 5 Video - HTML: Hypertext Markup Language
th 3.2.5). 1. Use your existing WebM file to create one audio file and multiple video files. For example: The file in.video can be any container with at least one audio and one video stream that can be decoded by ffmpeg, Create the audio using: ffmpeg -i in.video -vn -acodec libvorbis -ab 128k -dash 1 my_audio.webm Create each video variant. ...
...5). 1. Use your existing WebM file to create one audio file and multiple video files. For example: The file in.video can be any container with at least one audio and one video stream that can be decoded by ffmpeg, Create the audio using: ffmpeg -i in.video -vn -acodec libvorbis -ab 128k -dash 1 my_audio.webm Create each video variant. ...
...d one video stream that can be decoded by ffmpeg, Create the audio using: ffmpeg -i in.video -vn -acodec libvorbis -ab 128k -dash 1 my_audio.webm Create each video variant. ...
...And 6 more matches
KeyboardEvent: code values - Web APIs
"Digit8" 0x000B "Digit9" "Digit9" 0x000C "Minus" "Minus" 0x000D "Equal" "Equal" 0x000E "Backspace" "Backspace" 0x000F "Tab" "Tab" 0x0010 "KeyQ" "KeyQ" 0x0011 "KeyW" "KeyW" 0x0012 "KeyE" "KeyE" 0x0013 "KeyR" "KeyR" 0x0014 "KeyT" "KeyT" 0x00
15 "KeyY" "KeyY" 0x0016 "KeyU" "KeyU" 0x0017 "KeyI" "KeyI" 0x0018 "KeyO" "KeyO" 0x0019 "KeyP" "KeyP" 0x001A "BracketLeft" "BracketLeft" 0x001B "BracketRight" "BracketRight" 0x001C "Enter" "Enter" 0x001D "ControlLeft" "ControlLeft" 0x001E "KeyA" "KeyA" ...
...0055 "Unidentified" "" 0x0056 "IntlBackslash" "IntlBackslash" 0x0057 "F11" "F11" 0x0058 "F12" "F12" 0x0059 "NumpadEqual" "" 0x005A "Unidentified" "" 0x005B "Unidentified" "F13" 0x005C "Unidentified" "F14" 0x005D "Unidentified" "F
15" 0x005E "Unidentified" "" 0x005F "Unidentified" "" 0x0060 "Unidentified" "" 0x0061 "Unidentified" "" 0x0062 "Unidentified" "" 0x0063 "Unidentified" "F16" 0x0064 "F13" "F17" 0x0065 "F14" "F18" 0x0066 "F
15" "F19"...
...K_ANSI_W (0x0D) "KeyW" "KeyW" kVK_ANSI_E (0x0E) "KeyE" "KeyE" kVK_ANSI_R (0x0F) "KeyR" "KeyR" kVK_ANSI_Y (0x10) "KeyY" "KeyY" kVK_ANSI_T (0x11) "KeyT" "KeyT" kVK_ANSI_1 (0x12) "Digit1" "Digit1" kVK_ANSI_2 (0x13) "Digit2" "Digit2" kVK_ANSI_3 (0x14) "Digit3" "Digit3" kVK_ANSI_4 (0x
15) "Digit4" "Digit4" kVK_ANSI_6 (0x16) "Digit6" "Digit6" kVK_ANSI_5 (0x17) "Digit5" "Digit5" kVK_ANSI_Equal (0x18) "Equal" "Equal" kVK_ANSI_9 (0x19) "Digit9" "Digit9" kVK_ANSI_7 (0x1A) "Digit7" "Digit7" kVK_ANSI_Minus (0x1B) "Minus" "Minus" kVK_ANSI_8 (0x1C) "Digit8" "Digit8" kVK_...
...And 5 more matches
shape-margin - CSS: Cascading Style Sheets
Candidate Recommendation Initial definition ...
... Candidate Recommendation Initial definition ...
... Candidate Recommendation Initial definition ...
...And 5 more matches
Object initializer - JavaScript
ository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
... o = {a: 'foo', b: 42, c: {}} let a = 'foo', b = 42, c = {} let o = {a: a, b: b, c: c} let o = { property: function (parameters) {}, get property() {}, set property(value) {} }; New notations in ECMAScript 20
15 Please see the compatibility table for support for these notations. In non-supporting environments, these notations will lead to syntax errors. // Shorthand property names (ES20
15) let a = 'foo', b = 42, c = {}; let o = {a, b, c} // Shorthand method names (ES20
15) let o = { property(parameters) {} } // Computed property names (ES20
15) let prop = 'foo' let o = { [prop]: 'hey', ['b' + 'ar']: 'there' } Description An object initializer is an expression that describes the initialization of an Object. Objects consist of properties, which are used to describe an object...
... detailed information.) object.foo // "bar" object['age'] // 42 object.foo = 'baz' Property definitions We have already learned how to notate properties using the initializer syntax. Oftentimes, there are variables in your code that you would like to put into an object. You will see code like this: let a = 'foo', b = 42, c = {}; let o = { a: a, b: b, c: c } With ECMAScript 20
15, there is a shorter notation available to achieve the same: let a = 'foo', b = 42, c = {}; // Shorthand property names (ES20
15) let o = {a, b, c} // In other words, console.log((o.a === {a}.a)) // true Duplicate property names When using the same name for your properties, the second property will overwrite the first. let a = {x: 1, x: 2} console.log(a) // {x: 2} In ECMAScript 5 s...
...And 5 more matches
Windows Media in Netscape - Archive of obsolete content
liated with individual ActiveX controls in a unique manner, this allows for unique instantiation of controls. Netscape 7.1 works with both Windows Media Player 6.4 and with Windows Media Players 7 and 9, but they have unique classIDs: Windows Media Player 6.4 has this classID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 Windows Media Players 7 and 9 have this classID: 6BF52A52-394A-11d3-B
153-00C04F79FAA6 Windows Media Player 6.4 and Windows Media Player 7 and up are not backwards compatible in terms of APIs (and thus have different classIDs). Here is a snippet of code that illustrates the use of classIDs with GeckoActiveXObject: function createGeckoWMPObject(clid) { var player = null; try { player = new GeckoActiveXObject(clid); } catch(e) { ; } return...
...ot backwards compatible in terms of APIs (and thus have different classIDs). Here is a snippet of code that illustrates the use of classIDs with GeckoActiveXObject: function createGeckoWMPObject(clid) { var player = null; try { player = new GeckoActiveXObject(clid); } catch(e) { ; } return player; } // instantiate players wmp7or9 = createGeckoWMPObject("{6BF52A52-394A-11d3-B
153-00C04F79FAA6}"); if (!wmp7or9) { wmp64 = createGeckoWMPObject("{22D6F312-B0F6-11D0-94AB-0080C74C7E95}"); } ..... Note that the classIDs must be passed in curly braces "{}". The name GeckoActiveXObject rather than ActiveXObject was introduced for two reasons: GeckoActiveXObject is limited to creating instances of Windows Media Player ActiveX controls. It therefore can not be used every...
...dge-temp) was distinct. Example 2: Use of OBJECT Element to Create Control If you are running Netscape 7.1 and later or IE, and have installed Windows Media Player 7 or above, the snippet of code below should produce a Windows Media control and play a song. ...
...And 4 more matches
NSS 3.50 release notes
S 3.50 Verified primitives from HACL* were updated, bringing performance improvements for several platforms. Note that Intel processors with SSE4 but without AVX are currently unable to use the improved ChaCha20/Poly1305 due to a build issue; such platforms will fall-back to less optimized algorithms. See Bug 1609569 for details. Updated DTLS 1.3 implementation to Draft-30. ...
...ments for several platforms. Note that Intel processors with SSE4 but without AVX are currently unable to use the improved ChaCha20/Poly1305 due to a build issue; such platforms will fall-back to less optimized algorithms. See Bug 1609569 for details. Updated DTLS 1.3 implementation to Draft-30. See Bug
1599514 for details. Added NIST SP800-108 KBKDF - PKCS#11 implementation. See Bug
1599603 for details. ...
...ocessors with SSE4 but without AVX are currently unable to use the improved ChaCha20/Poly1305 due to a build issue; such platforms will fall-back to less optimized algorithms. See Bug 1609569 for details. Updated DTLS 1.3 implementation to Draft-30. See Bug
1599514 for details. Added NIST SP800-108 KBKDF - PKCS#11 implementation. See Bug
1599603 for details. Bugs fixed in NSS 3.50 Bug
1599514 - Update DTLS 1.3 implementation to Draft-30 Bug 1603438 - Fix native tools build failure due to lack of zlib include dir if external Bug
1599603 - NIST SP800-108 KBKDF - PKCS#11 implementation Bug 1606992 - Cache the most recent PBKDF1 password hash, to speed up repeated SDR operations, important with the increased KDF iteration counts. NSS 3.49.1 sped up PBKDF2 operations, though PBKDF1...
...And 4 more matches
NSS 3.54 release notes
. NSS 3.54 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_54_RTM/src/ Other releases are available in NSS Releases. Notable Changes in NSS 3.54 Support for TLS 1.3 external pre-shared keys (Bug 1603042). Use ARM Cryptography Extension for SHA256, when available. ...
...Cryptography Extension for SHA256, when available. (Bug
1528113). ...
... - certSIGN Root CA G2 SHA-256 Fingerprint: 657CFE2FA73FAA38462571F332A2363A46FCE7020951710702CDFBB6EEDA3305 Bug 1645174 - e-Szigno Root CA 2017 SHA-256 Fingerprint: BEB00B30839B9BC32C32E4447905950641F26421B
15ED089198B518AE2EA1B99 Bug 1641716 - Microsoft ECC Root Certificate Authority 2017 SHA-256 Fingerprint: 358DF39D764AF9E1B766E9C972DF352EE
15CFAC227AF6AD1D70E8E4A6EDCBA02 Bug 1641716 - Microsoft RSA Root Certificate Authority 2017 SHA-256 Fingerprint: C741F70F4B2A8D88BF2E71C14122EF53EF10EBA0CFA5E64CFA20F418853073E0 The following CA certificates were Removed: Bug 1645199 - AddTrust Class 1 CA Root SHA-256 Fingerprint: 8C7209279AC04E275E16D07FD3B775E80
154B5968046E31F52DD25766324E...
...And 4 more matches
nsIDOMWindowUtils
t(in AString aType, in AString aData, in AString aLocale); Obsolete since Gecko 38.0 void sendContentCommandEvent(in AString aType, [optional] in nsITransferable aTransferable); void getClassName(in object aObj); boolean sendKeyEvent(in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, [optional] in boolean aPreventDefault); Obsolete since Gecko
15.0 boolean sendKeyEvent(in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, [optional] in unsigned long aAdditionalFlags); Deprecated since Gecko 38.0 void sendMouseEvent(in AString aType, in float aX, in float aY, in long aButton, in long aClickCount, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); void sendMouseEventToWindow(...
...solete soon), use nsITextInputProcessor instead. boolean sendKeyEvent( in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, in unsigned long aAdditionalFlags Optional ); Deprecated since Gecko 38.0 boolean sendKeyEvent( in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, in boolean aPreventDefault Optional ); Obsolete since Gecko
15.0 Parameters aType Event type. aKeyCode Key code. aCharCode Character code. aModifiers Modifiers pressed. Using constants defined in nsIDOMNSEvent. Obsolete since Gecko
15.0 Using constants defined as MODIFIER_*. aPreventDefault Optional Obsolete since Gecko
15.0 If true, preventDefault() the event before dispatch. aAdditionalFlags Optional 0 or KEY_FLAG_PREVENT_DEFAULT and/o...
...float aY, in long aButton, in long aClickCount, in long aModifiers, in boolean aIgnoreRootScrollFrame Optional ); Parameters aType Event type. aX X offset in CSS pixels. aY Y offset in CSS pixels. aButton Button to synthesize. aClickCount Number of clicks that have been performed. aModifiers Modifiers pressed. Using constants defined in nsIDOMNSEvent. Obsolete since Gecko
15.0 Using constants defined as MODIFIER_*. aIgnoreRootScrollFrame Optional Whether the event should ignore viewport bounds during dispatch. sendMouseEventToWindow() The same as sendMouseEvent() but ensures that the event is dispatched to this DOM window or one of its children. void sendMouseEventToWindow( in AString aType, in float aX, in float aY, in long aButton, in long aClick...
...And 4 more matches
nsISmsRequestManager
nsISmsRequestManager dom/sms/interfaces/nsISmsRequestManager.idlScriptable Used to manage SMS related requests and notifications for the WebSMS API 1.0 66 Introduced Gecko 13.0 Inherits from: nsISupports Last changed in Gecko
15.0 (Firefox
15.0 / Thunderbird
15.0 / SeaMonkey 2.12) Implemented by: @mozilla.org/sms/smsrequestmanager;1. To create an instance, use: var smsRequestManager = Components.classes["@mozilla.org/sms/smsrequestmanager;1"] .createInstance(Components.interfaces.nsISmsRequestManager); Method overview long addRequest(in nsIDOMMozSmsRequest aRequest); long createRequest(in nsIDOMMozSmsManager aManager, out nsIDOMMozSmsRequest aRequest); void notifyCreateMessageList(in long aRequestId, in long aListId, in ...
...tMessage( in long aRequestId, in nsIDOMMozSmsMessage aMessage ); Parameters aRequestId A number representing the id of the request. aMessage An SmsMessage. notifyGotSms() void notifyGotSms( in long aRequestId, in nsIDOMMozSmsMessage aMessage ); Parameters aRequestId A number representing the id of the request. aMessage An SmsMessage. ...
...n long aRequestId, in nsIDOMMozSmsMessage aMessage ); Parameters aRequestId A number representing the id of the request. aMessage An SmsMessage. notifyGotSms() void notifyGotSms( in long aRequestId, in nsIDOMMozSmsMessage aMessage ); Parameters aRequestId A number representing the id of the request. aMessage An SmsMessage. ...
...And 4 more matches
:is() (:matches(), :any()) - CSS: Cascading Style Sheets
:is(:valid, :unsupported) { ... } Will still parse correctly and match :valid even in browsers which don't support :unsupported, whereas: :valid, :unsupported { ... } Will be ignored in browsers which don't ...
...ktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet:is()Chrome Full support 68Notes Disabled Full support 68Notes Disabled Notes Combinators in the selector list argument may not match correctly (see bug 842
157).Disabled From version 68: this feature is behind the #enable-experimental-web-platform-features preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags. No support 66 -- 71Notes Alternate Name Disabled Notes Combinators in the selector list argument may not match correctly (see bug 842
157).Alternate Name Uses the non-standard name...
... Full support 79Notes Alternate Name Notes Doesn't support combinators.Alternate Name Uses the non-standard name: :-webkit-any()Firefox Full support 78 Ful...
...And 4 more matches
Border-image generator - CSS: Cascading Style Sheets
ID OF TWELVE * ========================================================================== */ .span_12 { width: 100%; } .span_11 { width: 91.46%; } .span_10 { width: 83%; } .span_9 { width: 74.54%; } .span_8 { width: 66.08%; } .span_7 { width: 57.62%; } .span_6 { width: 49.16%; } .span_5 { width: 40.7%; } .span_4 { width: 32.24%; } .span_3 { width: 23.78%; } .span_2 { width:
15.32%; } .span_1 { width: 6.86%; } /* SECTIONS * ========================================================================== */ .section { clear: both; padding: 0px; margin: 0px; } /* GROUPING * ========================================================================== */ .group:before, .group:after { content: ""; display: table; } .group:after { clear:both; } .group { ...
...: border-box; box-sizing: border-box; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-dropdown:hover { cursor: pointer; background-color: #208B20; } /* Dropdown Select Button */ .ui-dropdown-select { height: inherit; padding: 0 0.75em; color: #FFF; line-height: 2em; } /* Dropdown List */ .ui-dropdown-list { width: 100%; height:
150px; max-height:
150px; margin: 0; padding: 0 0.3em; border: 3px solid #3490D2; border-color: #208B20; background: #666; background-color: #EEF1F5; color: #000; position: absolute; top: 2em; left: 0; z-index: 100; overflow: hidden; transition: all 0.3s; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .ui-dropdown-list:hover { overflow: ...
...ttps://mdn.mozillademos.org/files/6003/arrow-right-white.png'); background-repeat: no-repeat; background-position: center center; } #remote-url { width: 200px; height: 23px; margin: 10px; padding: 0 5px; border: 1px solid #379B4A; border-radius: 2px; float: left; transition: width 0.5s; } #remote-url:focus { box-shadow: 0px 0px 3px -1px #379B4A; /*#68ACE8; */ border-color: rgba(55,
155, 74, 0.5); width: 450px; } /* * Visible Area */ #preview_section { position: relative; min-height: 400px; } /* Image Control */ #subject { width: 300px; height: 300px; background-repeat: no-repeat; background-size: 100%; background-color: #FFF; border: 1px solid #CCC; position: absolute; z-index: 10; top:
15%; left: 10%; box-shadow: 0 0 3px 0 #BABABA; transition-property: ...
...And 4 more matches
A re-introduction to JavaScript (JS tutorial) - JavaScript
r. The standard received a significant update as ECMAScript edition 3 in 1999, and it has stayed pretty much stable ever since. The fourth edition was abandoned, due to political differences concerning language complexity. Many parts of the fourth edition formed the basis for ECMAScript edition 5, published in December of 2009, and for the 6th major edition of the standard, published in June of 20
15. Because it is more familiar, we will refer to ECMAScript as "JavaScript" from this point on. Unlike most programming languages, the JavaScript language has no concept of input or output. It is designed to run as a scripting language in a host environment, and it is up to the host environment to provide mechanisms for communicating with the outside world. The most common host environment is t...
...ms), and others. Overview JavaScript is a multi-paradigm, dynamic language with types and operators, standard built-in objects, and methods. Its syntax is based on the Java and C languages -- many structures from those languages apply to JavaScript as well. JavaScript supports object-oriented programming with object prototypes, instead of classes (see more about prototypical inheritance and ES20
15 classes). JavaScript also supports functional programming -- because they are objects, functions may be stored in variables and passed around like any other object. Let's start off by looking at the building blocks of any language: the types. JavaScript programs manipulate values, and those values all belong to a type. JavaScript's types are: Number String Boolean Function Object Symbol ...
...avaScript also supports functional programming -- because they are objects, functions may be stored in variables and passed around like any other object. Let's start off by looking at the building blocks of any language: the types. JavaScript programs manipulate values, and those values all belong to a type. ...
...And 4 more matches
Strict mode - JavaScript
for a function, put the exact statement "use strict"; (or 'use strict';) in the function's body before any other statements. function strict() { // Function-level strict mode syntax 'use strict'; function nested() { return 'And so am I!'; } return "Hi! I'm a strict mode function! " + nested(); } function notStrict() { return "I'm not strict."; } Strict mode for modules ECMAScript 20
15 introduced JavaScript modules and therefore a 3rd way to enter strict mode. The entire contents of JavaScript modules are automatically in strict mode, with no statement needed to initiate it. function strict() { // because this is a module, I'm strict by default } export default strict; Changes in strict mode Strict mode changes both syntax and runtime behavior. Changes generally fall i...
...al be unique. The normal code may duplicate property names, with the last one determining the property's value. But since only the last one does anything, the duplication is simply a vector for bugs, if the code is modified to change the property value other than by changing the last instance. Duplicate property names are a syntax error in strict mode: This is no longer the case in ECMAScript 20
15 (bug 1041128). 'use strict'; var o = { p: 1, p: 2 }; // !!! syntax error Fifth, strict mode requires that function parameter names be unique. In normal code the last duplicated argument hides previous identically-named arguments. Those previous arguments remain available through arguments[i], so they're not completely inaccessible. Still, this hiding makes little sense and is probably undesir...
... strict mode duplicate argument names are a syntax error: function sum(a, a, c) { // !!! syntax error 'use strict'; return a + a + c; // wrong if this code ran } Sixth, a strict mode in ECMAScript 5 forbids octal syntax. The octal syntax isn't part of ECMAScript 5, but it's supported in all browsers by prefixing the octal number with a zero: 0644 === 420 and "\045" === "%". ...
...And 4 more matches
StringView - Archive of obsolete content
s framework is released under the GNU Lesser General Public License, version 3 or later. ...
...nIdx++] = 0xc0 /* 192 */ + (nChar >>> 6); aTarget[nIdx++] = 0x80 /* 128 */ + (nChar & 0x3f /* 63 */); } else if (nChar < 0x10000 /* 65536 */) { /* three bytes */ aTarget[nIdx++] = 0xe0 /* 224 */ + (nChar >>> 12); aTarget[nIdx++] = 0x80 /* 128 */ + ((nChar >>> 6) & 0x3f /* 63 */); aTarget[nIdx++] = 0x80 /* 128 */ + (nChar & 0x3f /* 63 */); } else if (nChar < 0x200000 /* 2097
152 */) { /* four bytes */ aTarget[nIdx++] = 0xf0 /* 240 */ + (nChar >>> 18); aTarget[nIdx++] = 0x80 /* 128 */ + ((nChar >>> 12) & 0x3f /* 63 */); aTarget[nIdx++] = 0x80 /* 128 */ + ((nChar >>> 6) & 0x3f /* 63 */); aTarget[nIdx++] = 0x80 /* 128 */ + (nChar & 0x3f /* 63 */); } else if (nChar < 0x4000000 /* 67108864 */) { /* five bytes */ aTarget[nIdx++] = 0xf8 /* 248 */ ...
...ufferView or a new arrayBufferView of stringView.buffer will be created (depending on startOffset and length arguments passed). A new arrayBufferView of stringView.buffer will be created. encoding Optional A string expressing the encoding type. Possible values are: UTF-8 (default) UTF-16 UTF-32 Another custom string. In this case it will be treated as ASCII ISO/IEC 8859-
15 during conversion to and/or from string. However it is usable also for binary strings. If not specified (or specified as null) it will default to UTF-8. startOffset Optional A number expressing: The start offset of the new stringView in bytes if the input argument is an arrayBuffer The start offset of the new stringView in raw elements if the input argument is a typed array or other or...
...And 3 more matches
reftest opportunities files - Archive of obsolete content
3 http://dbaron.org/css/test/linebox4 http://dbaron.org/css/test/inlinetest 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/sec1202 http://dbaron.org/css/test/sec140201image http://dbaron.org/css/test/sec
150203c http://dbaron.org/css/test/sec
150203d http://dbaron.org/css/test/shadow http://dbaron.org/css/test/sec1702 http://dbaron.org/css/test/sec170201 http://dbaron.org/css/test/sec1704 http://dbaron.org/css/test/sec1704b http://dbaron.org/css/test/sec170401 http://dbaron.org/css/test/sec170501 http://dbaron.org/css/test/sec170501a http://dbaron.org/css/test/sec170501b http://dbaron.org/css/test/se...
...parser/tests/html/span003.html parser/htmlparser/tests/html/span002.html parser/htmlparser/tests/html/span001.html parser/htmlparser/tests/html/residual.html parser/htmlparser/tests/html/quote003.html parser/htmlparser/tests/html/quote002.html parser/htmlparser/tests/html/quote001.html parser/htmlparser/tests/html/q001.html parser/htmlparser/tests/html/pre016.html parser/htmlparser/tests/html/pre0
15.html parser/htmlparser/tests/html/pre012.html parser/htmlparser/tests/html/pre007.html parser/htmlparser/tests/html/pre006.html parser/htmlparser/tests/html/pre005.html parser/htmlparser/tests/html/pre004.html parser/htmlparser/tests/html/pre003.html parser/htmlparser/tests/html/pre002.html parser/htmlparser/tests/html/pre001.html parser/htmlparser/tests/html/param002.html parser/htmlparser/tests...
...er/htmlparser/tests/html/del007.html parser/htmlparser/tests/html/del006.html parser/htmlparser/tests/html/del005.html parser/htmlparser/tests/html/del004.html parser/htmlparser/tests/html/del003.html parser/htmlparser/tests/html/del002.html parser/htmlparser/tests/html/del001.html parser/htmlparser/tests/html/comments.html parser/htmlparser/tests/html/col016.html parser/htmlparser/tests/html/col0
15.html parser/htmlparser/tests/html/col014.html parser/htmlparser/tests/html/col013.html parser/htmlparser/tests/html/col012.html parser/htmlparser/tests/html/col011.html parser/htmlparser/tests/html/col010.html parser/htmlparser/tests/html/col009.html parser/htmlparser/tests/html/col008.html parser/htmlparser/tests/html/col007.html parser/htmlparser/tests/html/col006.html parser/htmlparser/tests/h...
...And 3 more matches
What is RSS - Archive of obsolete content
For example: <?xml version="1.0"?> <rss version="2.0"> <channel> <title>Joe Blow's Blog</title> <description>This is the Weblog of Joe Blow</description> <last...
...:08 -0700</pubDate> <link>http://news.example.com/artcle/552</link> </item> </channel> </rss> Bloggers use RSS to provide everyone with a list of their newest blog posts. ...
...version="2.0"> <channel> <title>Joe Blow's Blog</title> <description>This is the Weblog of Joe Blow</description> <lastBuildDate>Sun,
15 May 2005 13:02:08 -0500</lastBuildDate> <link>http://joe-blow.example.net/</link> <item> <title>I Be Blogging...</title> <guid>http://joe-blow.example.net/log/21</guid> <pubDate>Sun,
15 May 2005 13:02:08 -0500</pubDate> <link>http://joe-blow.example.net/log/21</link> </item> <item> <title>I am so SMRT</title> <guid>http://joe-blow.example.net/log/20</guid> <pubDate>Sat, 14 May 2005 22:19:18 -0500</pubDate> <link>http://joe-blow.example.net/log/20</link> </item> <item> <title>H...
...And 3 more matches
Legacy layout methods - Learn web development
In the <style> element, add the following code, which gives the wrapper container a width of 980 pixels, with padding on the right ...
...us 720 pixels for our columns. If we now divide that by 12, we know that each column should be 60 pixels wide. Our next step is to create a rule for the class .col, floating it left, giving it a margin-left of 20 pixels to form the gutter, and a width of 60 pixels. Add the following rule to the bottom of your CSS: .col { float: left; margin-left: 20px; width: 60px; background: rgb(255,
150,
150); } The top row of single columns will now lay out neatly as a grid. Note: We've also given each column a light red color so you can see exactly how much space each one takes up. Layout containers that we want to span more than one column need to be given special classes to adjust their width values to the required number of columns (plus gutters in between). We need to create an addit...
...: body { width: 90%; max-width: 980px; margin: 0 auto; } .wrapper { padding-right: 2.08333333%; } Not only have we given it a percentage width, we have also added a max-width property in order to stop the layout becoming too wide. Next, update the fourth CSS rule (with the .col selector) like so: .col { float: left; margin-left: 2.08333333%; width: 6.25%; background: rgb(255,
150,
150); } Now comes the slightly more laborious part -- we need to update all our .col.span rules to use percentages rather than pixel widths. This takes a bit of time with a calculator; to save you some effort, we've done it for you below. Update the bottom block of CSS rules with the following: /* Two column widths (12.5%) plus one gutter width (2.08333333%) */ .col.span2 { width: 14.5833333...
...And 3 more matches
How CSS is structured - Learn web development
is is because shorthand properties set several values in a single line. For example, this one line of code: /* In 4-value shorthands like padding and margin, the values are applied in the order top, right, bottom, left (clockwise from the top). ...
... because shorthand properties set several values in a single line. For example, this one line of code: /* In 4-value shorthands like padding and margin, the values are applied in the order top, right, bottom, left (clockwise from the top). ...
... line of code: /* In 4-value shorthands like padding and margin, the values are applied in the order top, right, bottom, left (clockwise from the top). There are also other shorthand types, for example 2-value shorthands, which set padding/margin for top/bottom, then left/right */ padding: 10px
15px
15px 5px; is equivalent to these four lines of code: padding-top: 10px; padding-right:
15px; padding-bottom:
15px; padding-left: 5px; This one line: background: red url(bg-graphic.png) 10px 10px repeat-x fixed; is equivalent to these five lines: background-color: red; background-image: url(bg-graphic.png); background-position: 10px 10px; background-repeat: repeat-x; background-attachment: fixed; Later in the course, you will encounter many other examples of shorthand properties. ...
...And 3 more matches
Debugging Frame Reflow
width="100"> <tbody> <tr> <td>foo</td> </tr> </tbody> </table> </body> </html> will create the following log: VP 00B97C30 r=0 a=9180,4470 c=9180,4470 cnt=856 scroll 00B97EE0 r=0 a=9180,4470 c=9180,4470 cnt=857 scroll 00B97EE0 r=0 a=9180,4470 c=9180,4470 cnt=858 canvas 00B97C6C r=0 a=9180,UC c=9180,4470 cnt=859 area 02D7AFE4 r=0 a=9180,UC c=9180,UC cnt=860 text 02D7B
150 r=0 a=9180,UC c=UC,UC cnt=861 text 02D7B
150 d=0,0 block 02D7B210 r=0 a=9180,UC c=8940,UC cnt=862 block 02D7B210 d=8940,0 area 02D7AFE4 d=9180,120 canvas 00B97C6C d=9180,4470 scroll 00B97EE0 d=9180,4470 scroll 00B97EE0 d=9180,4470 VP 00B97C30 d=9180,4470 VP 00B97C30 r=1 a=9180,4470 c=9180,4470 cnt=863 scroll 00B97EE0 r=1 a=9180,4470 c=9180,4470 cnt=864 scroll 00B97EE0 r=1 a=9...
...E0 r=1 a=9180,4470 c=9180,4470 cnt=864 scroll 00B97EE0 r=1 a=9180,4470 c=9180,4470 cnt=865 canvas 00B97C6C r=1 a=9180,UC c=9180,4470 cnt=866 area 02D7AFE4 r=1 a=9180,UC c=9180,UC cnt=867 block 02D7B210 r=1 a=9180,UC c=8940,UC cnt=868 text 02D7B3F8 r=0 a=8940,UC c=UC,UC cnt=869 text 02D7B3F8 d=0,0 tblO 02D7B5F0 r=0 a=8940,UC c=0,0 cnt=870 tbl 02D7B7EC r=0 a=8940,UC c=
1500,UC cnt=871 rowG 00B984A4 r=0 a=UC,UC c=UC,UC cnt=872 row 02D7BAF8 r=0 a=UC,UC c=UC,UC cnt=873 cell 02D7BC98 r=0 a=UC,UC c=UC,UC cnt=874 block 02D7BCF8 r=0 a=UC,UC c=UC,UC cnt=875 text 02D7BE84 r=0 a=UC,UC c=UC,UC cnt=876 text 02D7BE84 d=300,285 me=300 block 02D7BCF8 d=300,300 me=300 cell 02D7BC98 d=330,330 me=330 ...
...r=0 a=UC,UC c=UC,UC cnt=874 block 02D7BCF8 r=0 a=UC,UC c=UC,UC cnt=875 text 02D7BE84 r=0 a=UC,UC c=UC,UC cnt=876 text 02D7BE84 d=300,285 me=300 block 02D7BCF8 d=300,300 me=300 cell 02D7BC98 d=330,330 me=330 row 02D7BAF8 d=UC,330 rowG 00B984A4 d=UC,330 colG 02D7BFB0 r=0 a=UC,UC c=UC,UC cnt=877 col 02D7C0D8 r=0 a=0,0 c=
1500,UC cnt=878 col 02D7C0D8 d=0,0 colG 02D7BFB0 d=0,0 rowG 00B984A4 r=2 a=
1500,UC c=
1500,UC cnt=879 row 02D7BAF8 r=2 a=
1500,UC c=
1500,UC cnt=880 cell 02D7BC98 r=2 a=1440,UC c=1410,UC cnt=881 block 02D7BCF8 r=2 a=1410,UC c=1410,UC cnt=882 block 02D7BCF8 d=1410,300 cell 02D7BC98 d=1440,330 row 02D7BAF8 d=
1500,330 rowG ...
...And 3 more matches
DMD
ary": gives measurements of the total heap, and the unreported/once-reported/twice-reported portions of it. The "Twice-reported stack trace records" and "Unreported stack trace records" sections are the most important, because they indicate ways in which the memory reporters can be improved. Here's an example stack trace record from the "Unreported stack trace records" section. ...
...orted stack trace records" and "Unreported stack trace records" sections are the most important, because they indicate ways in which the memory reporters can be improved. Here's an example stack trace record from the "Unreported stack trace records" section. ...
...f 5,495 21,600 bytes (20,400 requested / 1,200 slop) Individual block sizes: 144 x
150 0.00% of the heap (16.85% cumulative) 0.02% of unreported (94.68% cumulative) Allocated at { #01: replace_malloc (/home/njn/moz/mi5/go64dmd/memory/replace/dmd/../../../../memory/replace/dmd/DMD.cpp:1286) #02: malloc (/home/njn/moz/mi5/go64dmd/memory/build/../../../memory/build/replace_malloc.c:
153) #03: moz_xmalloc (/home/njn/moz/mi5/memory/mozalloc/mozalloc.cpp:84) #04: nsCycleCollectingAutoRefCnt::incr(void*, nsCycleCollectionParticipant*) (/home/njn/moz/mi5/go64dmd/dom/xul/../../dist/include/nsISupportsImpl.h:250) #05: nsXULElement::Create(nsXULPrototypeElement*, nsIDocument*, bool, bool,mozilla::dom::Element**) (/home/njn/moz/mi5/dom/xul/nsXULElement.cpp:287) #06: nsXB...
...And 3 more matches
NSS 3.44.1 release notes
s: Greg Rubin Distribution Information The HG tag is NSS_3_44_1_RTM. NSS 3.44.1 requires NSPR 4.21 or newer. NSS 3.44.1 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_44_1_RTM/src/ Other releases are available in NSS Releases. ...
... Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_44_1_RTM/src/ Other releases are available in NSS Releases. ...
...illa.org/security/nss/releases/NSS_3_44_1_RTM/src/ Other releases are available in NSS Releases. ...
...And 3 more matches
NSS 3.49 release notes
requires NSPR 4.24 or newer. NSS 3.49 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_49_RTM/src/ Other releases are available in NSS Releases. Notable Changes in NSS 3.49 The legacy DBM database, libnssdbm, is no longer built by default when using gyp builds. ...
...butions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_49_RTM/src/ Other releases are available in NSS Releases. Notable Changes in NSS 3.49 The legacy DBM database, libnssdbm, is no longer built by default when using gyp builds. See Bug
1594933 for details. ...
...lt when using gyp builds. See Bug
1594933 for details. Bugs fixed in NSS 3.49 Bug
1513586 - Set downgrade sentinel for client TLS versions lower than 1.2. ...
...And 3 more matches
nsMsgSearchOpValue
Is also applies */ 160 const nsMsgSearc...
...Is also applies */ 160 const nsMsgSearc...
...Is also applies */ 160 const nsMsgSearc...
...And 3 more matches
Fullscreen API - Web APIs
t-data and send us a pull request. ...
...ences in Firefox, visit about:config. ...
.... ...
...And 3 more matches
Example and tutorial: Simple synth keyboard - Web APIs
several octaves not shown for brevity ... noteFreq[2]["C"] = 65.406391325149658; noteFreq[2]["C#"] = 69.295657744218024; noteFreq[2]["D"] = 73.416191979351890; noteFreq[2]["D#"] = 77.781745930520227; noteFreq[2]["E"] = 82.406889228217482; noteFreq[2]["F"] = 87.307057858250971; noteFreq[2]["F#"] = 92.498605677908599; noteFreq[2]["G"] = 97.998858995437323; noteFreq[2][...
...eq[2]["E"] = 82.406889228217482; noteFreq[2]["F"] = 87.307057858250971; noteFreq[2]["F#"] = 92.498605677908599; noteFreq[2]["G"] = 97.998858995437323; noteFreq[2]["G#"] = 103.826174394986284; noteFreq[2]["A"] = 110.000000000000000; noteFreq[2]["A#"] = 116.540940379522479; noteFreq[2]["B"] = 123.470825314031027; noteFreq[3]["C"] = 130.812782650299317; noteFreq[3]["C#"] = 138.5913
15488436048; noteFreq[3]["D"] = 146.832383958703780; noteFreq[3]["D#"] =
155.563491861040455; noteFreq[3]["E"] = 164.813778456434964; noteFreq[3]["F"] = 174.6141
15716501942; noteFreq[3]["F#"] = 184.997211355817199; noteFreq[3]["G"] = 195.997717990874647; noteFreq[3]["G#"] = 207.652348789972569; noteFreq[3]["A"] = 220.000000000000000; noteFreq[3]["A#"] = 233.081880759044958; noteF...
...eFreq[3]["B"] = 246.941650628062055; noteFreq[4]["C"] = 261.625565300598634; noteFreq[4]["C#"] = 277.182630976872096; noteFreq[4]["D"] = 293.664767917407560; noteFreq[4]["D#"] = 311.126983722080910; noteFreq[4]["E"] = 329.627556912869929; noteFreq[4]["F"] = 349.228231433003884; noteFreq[4]["F#"] = 369.994422711634398; noteFreq[4]["G"] = 391.995435981749294; noteFreq[4]["G#"] = 4
15.304697579945138; noteFreq[4]["A"] = 440.000000000000000; noteFreq[4]["A#"] = 466.16376
1518089916; noteFreq[4]["B"] = 493.883301256124111; noteFreq[5]["C"] = 523.251130601197269; noteFreq[5]["C#"] = 554.365261953744192; noteFreq[5]["D"] = 587.3295358348
15120; noteFreq[5]["D#"] = 622.253967444161821; noteFreq[5]["E"] = 659.255113825739859; noteFreq[5]["F"] = 698.456462866007768; ...
...And 3 more matches
CSS Grid Layout and Progressive Enhancement - CSS: Cascading Style Sheets
yout happened in Internet Explorer 10. This early specification did not contain all of the properties and values that the up-to-date specification has. There are also substantial differences between what shipped in IE10 and the current specification, even where the properties and values appear the same. This early implementation is also the version of Grid Layout implemented in Edge up to version
15. ...
...ernet Explorer 10. This early specification did not contain all of the properties and values that the up-to-date specification has. There are also substantial differences between what shipped in IE10 and the current specification, even where the properties and values appear the same. This early implementation is also the version of Grid Layout implemented in Edge up to version
15. ...
...ate specification has. There are also substantial differences between what shipped in IE10 and the current specification, even where the properties and values appear the same. This early implementation is also the version of Grid Layout implemented in Edge up to version
15. The IE/Edge (<=
15) version of the specification is prefixed with an -ms prefix and the properties implemented in IE/Edge (<=
15) are as follows: grid-template-columns as -ms-grid-columns grid-template-rows as -ms-grid-rows grid-row-start as -ms-grid-row grid-column-start as -ms-grid-column align-self as -ms-grid-row-align justify-self as -ms-grid-column-align The IE version has additional properties not required in the new specification of -ms-grid-column-span and -ms-grid-row-span. This version does not include...
...And 3 more matches
Using CSS gradients - CSS: Cascading Style Sheets
In the second example, the second color stop for each color is at the same location as the first color stop for the adjacent color, creating a striped effect. In both examples, the gradient is written twice: the first is the CSS Images Level 3 method of repeating the color for each stop and the second example is the CSS Images Level 4 multiple color stop method of i...
...t(to top, black, 20%, cyan); } .regular-progression { background: linear-gradient(to top, black, cyan); } Overlaying gradients Gradients support transparency, so you can stack multiple backgrounds to achieve some pretty fancy effects. The backgrounds are stacked from top to bottom, with the first specified being on top. <div class="layered-image"></div> div { width: 300px; height:
150px; } .layered-image { background: linear-gradient(to right, transparent, mistyrose), url("https://mdn.mozillademos.org/files/
15525/critters.png"); } Stacked gradients You can even stack gradients with other gradients. As long as the top gradients aren't entirely opaque, the gradients below will still be visible. <div class="stacked-linear"></div> div { width: 200px; height...
...s, optionally with different background-position property values, for each gradient image. We are using transparency. In this case the gradient lines are 300px, 230px, and 300px long. ...
...And 3 more matches
Scaling of SVG backgrounds - CSS: Cascading Style Sheets
l be treated just like a raster image of the same size. Source image examples Before diving in to look at the results of using different kinds of source images and seeing how they look when used with background-size, it would be helpful to look at a few example source images that have different dimensions and sizing settings. In each case, we show what the source image looks like rendered in a
150x
150 box, and provide a link to the SVG source. Dimensionless and proportionless This image is both dimensionless and proportionless. It doesn't care what size it is, nor does it care about remaining at a particular aspect ratio. This would make a good gradient desktop background that would work regardless of your screen size and its aspect ratio. SVG source One specified dimension and prop...
...r not the source image has specified its dimensions and/or aspect ratio. ...
...nd-size: contain; The rendered output looks like this: Source: One specified dimension with intrinsic ratio Things change when you specify an intrinsic ratio. In this case, rule 1 isn't relevant, so rule 2 is applied: we try to preserve any intrinsic ratio (while respecting contain or cover). For example, preserving a 3:4 intrinsic aspect ratio for a 300x200 box with contain means drawing a
150x200 background. contain case background: url(100px-height-3x4-ratio.svg); background-size: contain; The rendered output looks like this: Notice how the entire image is rendered, fitting as best as possible into the box without clipping any of it away. cover case background: url(100px-height-3x4-ratio.svg); background-size: cover; The rendered output looks like this: Here, the 3:4 r...
...And 3 more matches
Evolution of HTTP - HTTP
owing metadata to be transmitted and making the protocol extremely flexible and extensible. With the help of the new HTTP headers, the ability to transmit other documents than plain HTML files has been added (thanks to the Content-Type header). ...
...A lot of interoperability problems were common. ...
...ccept-Encoding (content) GET /static/img/header-background.png HTTP/1.1 Host: developer.cdn.mozilla.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0 Accept: */* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Referer: https://developer.mozilla.org/docs/Glossary/Simple_header 200 OK Age: 9578461 Cache-Control: public, max-age=3
15360000 Connection: keep-alive Content-Length: 3077 Content-Type: image/png Date: Thu, 31 Mar 2016 13:34:46 GMT Last-Modified: Wed, 21 Oct 20
15 18:27:50 GMT Server: Apache (image content of 3077 bytes) HTTP/1.1 was first published as RFC 2068 in January 1997. More than
15 years of extensions Thanks to its extensibility - creating new headers or methods is easy - and even if the HTTP/1.1 protoco...
...And 3 more matches
begin - SVG: Scalable Vector Graphics
get element. Value <begin-value-list> Default value 0s Animatable No The definition of <begin-value-list> is the same as for the other animation elements. ...
... Examples Offset example <svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1"> <!-- animated rectangles --> <rect x="10" y="35" height="
15" width="0"> <animate attributeType="XML" attributeName="width" to="100" begin="0s" dur="8s" fill="freeze" /> </rect> <rect x="35" y="60" height="
15" width="0"> <animate attributeType="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="...
..."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="60" y="60" height="
15" width="0"> <animate attributeType="XML" attributeName="width" to="25" id="second" begin="first.end" dur="2s" /> </rect> <rect x="85" y="85" height="
15" width="0"> <anim...
...And 3 more matches
<feComposite> - SVG: Scalable Vector Graphics
(900,25)" xlink:href="#TwoBlueTriangles"/> </g> </defs> <rect fill="none" stroke="blue" x="1" y="1" width="1098" height="648"/> <g font-family="Verdana" font-size="40" shape-rendering="crispEdges"> <desc>Render the examples using the filters that draw on top of an opaque white surface, thus obliterating the background.</desc> <g enable-background="new"> <text x="
15" y="75">opacity 1.0</text> <text x="
15" y="1
15" font-size="27">(with feFlood)</text> <text x="
15" y="200">opacity 0.5</text> <text x="
15" y="240" font-size="27">(with feFlood)</text> <use xlink:href="#BlueTriangles"/> <g transform="translate(275,25)"> <use xlink:href="#Red100" filter="url(#overFlood)" /> <use xlink:href="#Red50" filter="url(#overFlood...
...> </g> <g transform="translate(400,25)"> <use xlink:href="#Red100" filter="url(#inFlood)" /> <use xlink:href="#Red50" filter="url(#inFlood)" /> <text x="35" y="275">in</text> </g> <g transform="translate(525,25)"> <use xlink:href="#Red100" filter="url(#outFlood)" /> <use xlink:href="#Red50" filter="url(#outFlood)" /> <text x="
15" y="275">out</text> </g> <g transform="translate(650,25)"> <use xlink:href="#Red100" filter="url(#atopFlood)" /> <use xlink:href="#Red50" filter="url(#atopFlood)" /> <text x="10" y="275">atop</text> </g> <g transform="translate(775,25)"> <use xlink:href="#Red100" filter="url(#xorFlood)" /> <use xlink:href="#Red50" filter="url(#xorFlo...
... </g> <g transform="translate(650,25)"> <use xlink:href="#Red100" filter="url(#atopFlood)" /> <use xlink:href="#Red50" filter="url(#atopFlood)" /> <text x="10" y="275">atop</text> </g> <g transform="translate(775,25)"> <use xlink:href="#Red100" filter="url(#xorFlood)" /> <use xlink:href="#Red50" filter="url(#xorFlood)" /> <text x="
15" y="275">xor</text> </g> <g transform="translate(900,25)"> <use xlink:href="#Red100" filter="url(#arithmeticFlood)" /> <use xlink:href="#Red50" filter="url(#arithmeticFlood)" /> <text x="-25" y="275">arithmetic</text> </g> </g> <g transform="translate(0,325)" enable-background="new"> <desc>Render the examples using the filters that do not obli...
...And 3 more matches
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
When that radio element is selected, the value of its value attribute is copied to the radiogroup, so that you can check for the selected radio button simply by fetching the radiogroup element's value attribute. There may be situations where you want to locate a radio element outside of a radiogroup element. ...
...In HTML, there are two separate elements--input for one line of text, and textarea for multiple lines. ...
...In HTML, there are two separate elements--input for one line of text, and textarea for multiple lines. But both these functions are handled by textbox as shown in Listing 16, which produces output as shown in Figure 13. ...
...And 2 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
ion Store menu item under the Tools menu. Phase 2: Implement functionality In Phase 2, we'll use JavaScript to implement the session save and restore functions using the session store API. Figure out JavaScript skeleton Decide on method names and variable names for each of the processes you'll need to implement these features, and put them into an overlay.js file. Follow the code in Listing
15. ...
...u item under the Tools menu. Phase 2: Implement functionality In Phase 2, we'll use JavaScript to implement the session save and restore functions using the session store API. Figure out JavaScript skeleton Decide on method names and variable names for each of the processes you'll need to implement these features, and put them into an overlay.js file. Follow the code in Listing
15. ...
...Take note that when using an extension to create an overlay on the browser window, any global variables and functions defined within JavaScript that get opened as overlays on top of browser.xul all become properties of the browser.xul window object. This means that all those variables and funct...
...And 2 more matches
Document Loading - From Load Start to Finding a Handler - Archive of obsolete content
onds to a docshell and handles most of the data types that Mozilla handles internally. nsIExternalHelperAppService If we can't do anything else with a load, we give it to the nsIExternalHelperAppService and let it look for a helper app, put up the "what do I do now?" dialog, and so forth. ...
...The prose description below has been updated. The changes do ...
...The prose description below has been updated. The changes do not affect functionality and the step numbers in the diagram...
...And 2 more matches
Why RSS Content Module is Popular - Including HTML Contents - Archive of obsolete content
he wording of this note should be reconsidered. ...
...g/rss/1.0/modules/content/" > <channel> <title>Example</title> <description>An RSS Example with Slash</description> <lastBuildDate>Sun,
15 May 2005 13:02:08 -0500</lastBuildDate> <link>http://www.example.com</link> <item> <title>A Link in Here</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/
15/114</guid> <pubDate>Sun,
15 May 2005 13:02:08 -0500</pubDate> <link>http://www.example.com/blog/2005/05/
15/114</link> <content:encoded><![CDATA[This is a <a href="http://example.com/">link</a>.]]></content:encoded> </item> <item> <title>Some Italics HTML</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0...
... <pubDate>Sun,
15 May 2005 13:02:08 -0500</pubDate> <link>http://www.example.com/blog/2005/05/
15/114</link> <content:encoded><![CDATA[This is a <a href="http://example.com/">link</a>.]]></content:encoded> </item> <item> <title>Some Italics HTML</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/
15/113</guid> <pubDate>Sun,
15 May 2005 10:55:12 -0500</pubDate> <link>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/
15/113</link> <content:encoded><![CDATA[This is <i>italics</i>.]]></content:encoded> </item> <item> <title>Some Bold HTML</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/
15/112<...
...And 2 more matches
Choosing the right approach - Learn web development
r prefix: mozNotes Callback parameter is a DOMTimestamp. This means millisecond precision and zero time as Date.now(). ...
... means millisecond precision and zero time as Date.now(). ...
... No support 4 -- 11Prefixed Notes Prefixed Implemented with the vendor prefix: mozNotes Could be called with no input parameters.IE Full support 10Opera Full support
15 Full support
15 Full support
15Prefixed Prefixed Implemented with the vendor prefix: webkitSafari Full support 6.1 Full support 6.1 Full support 6Prefixed Prefixed Implemented with the vendor prefix: webkitWebView Android Full support <=37 ...
...And 2 more matches
Drawing graphics - Learn web development
>Add suitable fallback here.</p> </canvas> We have added a class to the <canvas> element so it will be easier to select if we have multiple canvases on the page, but we have removed the width and height attributes for now (you could add them back in if you wanted, but we will set them using JavaScript in a below section). Canvases with no explicit width and height default to 300 pixels wide by
150 pixels high. Now add the following lines of JavaScript inside the <script> element: const canvas = document.querySelector('.myCanvas'); const width = canvas.width = window.innerWidth; const height = canvas.height = window.innerHeight; Here we have stored a reference to the canvas in the canvas constant. In the second line we set both a new constant width and the canvas' width propert...
...ing in the shape. Below we'll show how to do both. Simple rectangles Let's start with some simple rectangles. First of all, take a copy of your newly coded canvas template (or make a local copy of 1_canvas_template.html if you didn't follow the above steps). Next, add the following lines to the bottom of your JavaScript: ctx.fillStyle = 'rgb(255, 0, 0)'; ctx.fillRect(50, 50, 100,
150); If you save and refresh, you should see a red rectangle has appeared on your canvas. Its top left corner is 50 pixels away from the top and left of the canvas edge (as defined by the first two parameters), and it is 100 pixels wide and
150 pixels tall (as defined by the third and fourth parameters). Let's add another rectangle into the mix -- a green one this time. Add the following a...
... Next, start off your path by adding the following below your previous addition; here we set a color for our triangle, start drawing a path, and then move the pen to (50, 50) without drawing anything. That's where we'll start drawing our triangle. ctx.fillStyle = 'rgb(255, 0, 0)'; ctx.beginPath(); ctx.moveTo(50, 50); Now add the following lines at the bottom of your script: ctx.lineTo(
150, 50); let triHeight = 50 * Math.tan(degToRad(60)); ctx.lineTo(100, 50+triHeight); ctx.lineTo(50, 50); ctx.fill(); Let's run through this in order: First we draw a line across to (
150, 50) -- our path now goes 100 pixels to the right along the x axis. Second, we work out the height of our equalateral triangle, using a bit of simple trigonometry. Basically, we are drawing the triangle poi...
...And 2 more matches
Starting our Svelte Todo list app - Learn web development
Moreover, our editor can display this warning even before calling the compiler: You can tell Svelte to ignore this warning for the next block of markup with a comment beginning with svelte-ignore, like this: <!-- svelte-ignore a11y-missing-attribute --> <img height="32" width="88" src="https://udn.realityripple.com/samples/b0/98dase3c7d.png"> Note: With VS...
... accessibility checks are still missing. You can check the meaning of each rule by clicking on its link. Styling our markup Let's make the todo list look a little better. ...
...one; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; line-height: normal; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; -webkit-appearance: none; } button::-moz-focus-inner { border: 0; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.
15; margin: 0; } button, input { overflow: visible; } input[type="text"] { border-radius: 0; } body { width: 100%; max-width: 68rem; margin: 0 auto; font: 1.6rem/1.25 Arial, sans-serif; background-color: #f5f5f5; color: #4d4d4d; } @media screen and (min-width: 620px) { body { font-size: 1.9rem; line-height: 1.3
1579; } } /*END RESETS*/ /* GLOBAL STYLES */ .form-group > ...
...And 2 more matches
Styling Vue components with CSS - Learn web development
ke SCSS) or post-processors (like PostCSS). While this tutorial will not be using such tools, it's good to know that when including such code in the assets folder it will be processed automatically. ...
...one; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; line-height: normal; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; -webkit-appearance: none; } button::-moz-focus-inner { border: 0; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.
15; margin: 0; } button, input { /* 1 */ overflow: visible; } input[type="text"] { border-radius: 0; } body { width: 100%; max-width: 68rem; margin: 0 auto; font: 1.6rem/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif; background-color: #f5f5f5; color: #4d4d4d; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } @media screen and (min-width: 620px) ...
... The reset styles should be applied to the app now. The images below show the look of the app before and after the reset is applied. Before: After: Noticeable changes inc...
...And 2 more matches
Error codes returned by Mozilla APIs
070057) An argument supplied to a method was not valid, for instance a null value was supplied as an argument which does not allow null values, or a value was out of range. NS_ERROR_NO_AGGREGATION (0x80040110) NS_ERROR_NOT_AVAILABLE (0x80040111) An operation could not be completed because some other necessary component or resource was not available. NS_ERROR_FACTORY_NOT_REGISTERED (0x80040
154) Returned when a service could not be found. NS_ERROR_FACTORY_REGISTER_AGAIN (0x80040
155) This error is returned when registering a component and the registration should try registering again later. NS_ERROR_FACTORY_NOT_LOADED (0x800401f8) NS_ERROR_FACTORY_EXISTS (0xC1F30100) NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT (0xC1F30101) NS_ERROR_PROXY_INVALID_IN_PARAMETER (0x80010010) N...
...le is not writable, the directory containing the file is not writable or the disk is write protected. Use nsIFile.isWritable() to check if the file can be written to. NS_ERROR_FILE_DIR_NOT_EMPTY (0x80520014) When calling nsIFile.remove() on a directory and the 'recursive' argument to this method is false, this error will occur if the directory is not empty. NS_ERROR_FILE_ACCESS_DENIED (0x805200
15) An operation was not performed on a file because the file cannot be accessed, typically because the permissions set for the file do not allow the operation. Stream Errors NS_BASE_STREAM_CLOSED (0x80470002) This error occurs when an operation is performed on a stream that has already been closed. NS_BASE_STREAM_OSERROR (0x80470003) This error occurs when an operating system error occurs.
...from nsIChannel.asyncOpen() to indicate that OnDataAvailable will not be called because there is no content available. This is used by helper app style protocols (for example, mailto). NS_ERROR_UNKNOWN_PROTOCOL (0x804B0012) The URI scheme corresponds to an unknown protocol handler. ...
...And 2 more matches
Extras
<mo>=</mo> <mo>[</mo> <mtable> <mtr> <mtd><mn>1</mn></mtd> <mtd> <mtext> <img width="16" height="16" src="https://udn.realityripple.com/samples/3f/9341cbddc0.png" alt="mozilla-16" /> </mtext> </mtd> </mtr> <mtr> <mtd> <mtext><input value="type" size="4"/></mtext> </mtd> <mtd><mn>4</mn></mtd> </mtr> </mtable> <mo>]</mo> </mrow> </math> <math display="block"> <msqrt> <mpadded width="30px" height="
15px" depth="
15px" voffset="-
15px"> <mtext> <svg width="30px" height="30px"> <defs> <radialGradient id="radGrad1" cx="50%" cy="50%" r="50%" fx="50%" fy="50%"> <stop offset="0%" style="stop-color:rgb(255,255,255); stop-opacity:1;"/> <stop offset="100%" style="stop-color:rgb(255,0,0); stop-opacity:.8;"/> </radialGradient> </defs> <g t...
...fset="-
15px"> <mtext> <svg width="30px" height="30px"> <defs> <radialGradient id="radGrad1" cx="50%" cy="50%" r="50%" fx="50%" fy="50%"> <stop offset="0%" style="stop-color:rgb(255,255,255); stop-opacity:1;"/> <stop offset="100%" style="stop-color:rgb(255,0,0); stop-opacity:.8;"/> </radialGradient> </defs> <g transform="translate(
15,
15)"> <g> <animateTransform attributeName="transform" attributeType="XML" type="rotate" from="360" to="0" dur="
15s" repeatCount="indefinite"/> <g transform="translate(-
15, -
15)"> <path fill="url(#radGrad1)" d="M
15 0 L 20 10 L 30
15 L 20 20 L
15 30 L 10 20...
...> <g> <animateTransform attributeName="transform" attributeType="XML" type="rotate" from="360" to="0" dur="
15s" repeatCount="indefinite"/> <g transform="translate(-
15, -
15)"> <path fill="url(#radGrad1)" d="M
15 0 L 20 10 L 30
15 L 20 20 L
15 30 L 10 20 L 0
15 L 10 10"/> </g> </g> </g> </svg> </mtext> </mpadded> </msqrt> <mo>=</mo> <msubsup> <mo>?</mo> <mn>0</mn> <mfrac> <mi>?</mi> <mn>2</mn> </mfrac> </msubsup> <msup> <mi>?</mi> <mtext> <svg width="
15px" height="
15px"> <defs> <radialGradient id="radGrad2" cx="50%" cy="50%" r="50%" fx="50%" fy="50%"> <stop offset="0%" style="stop-color:rgb(255,255,255); stop-...
...And 2 more matches
TraceMalloc
produces a type histogram that can be diffed with histogram-diff.sh to produce output that looks like this: ---- Base ---- ---- Incr ---- ----- Difference ---- Type Count Bytes Count Bytes Count Bytes %Total TOTAL 48942 4754774 76136 6566453 27194 1811679 100.00 nsTokenAllocator 17 110007 60 388260 43 278253
15.36 nsImageGTK 476 2197708 341 2366564 -135 168856 9.32 nsMemCacheRecord 843 45767 2328 124767 1485 79000 4.36 nsTextNode 209 11704 1614 90384 1405 78680 4.34 HTMLAttributesImpl 482 14288 2824 88400 2342 74112 4.09 nsScanner 58 76824 94 146300 36 69476 3...
... Also, y...
... Also, your JavaScript can call the following DOM window methods: Trace...
...And 2 more matches
powermetrics
rocesses, e.g. the Firefox parent process and child processes. --show-process-gpu tells it to show per-process GPU measurements. -n 1 tells it to take one sample and then stop. -i 5000 tells it to use a sample length of 5 seconds (5000 ms). Change this number to get shorter or longer samples. ...
..., e.g. the Firefox parent process and child processes. --show-process-gpu tells it to show per-process GPU measurements. -n 1 tells it to take one sample and then stop. -i 5000 tells it to use a sample length of 5 seconds (5000 ms). Change this number to get shorter or longer samples. ...
...led system activity (Fri Sep 4 17:
15:14 20
15 +1000) (5009.63ms elapsed) *** *** Running tasks *** Name ID CPU ms/s User% Deadlines (<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 17.29 Terminal 694 9.86 79.94 0.00 0.00 4.39 2.20 0.00 powermetrics 84694 1.21 31.53 0.00 0.00 0.20 0.20 ...
...And 2 more matches
NSS 3.41 release notes
s NSS_3_41_RTM. NSS 3.41 requires NSPR 4.20 or newer. NSS 3.41 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_41_RTM/src/ New in NSS 3.41 New Functionality Bug 1252891 - Implemented EKU handling for IPsec IKE. Bug 1423043 - Enable half-closed states for TLS. ...
...LS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 TLS_RSA_WITH_AES_256_GCM_SHA384 New Functions none Notable Changes in NSS 3.41 The following CA certificates were Added: CN = Certigna Root CA SHA-256 Fingerprint: D48D3D23EEDB50A459E55197601C27774B9D7B18C94D5A059511A10250B93168 CN = GTS Root R1 SHA-256 Fingerprint: 2A575471E31340BC2
1581CBD2CF13E
158463203ECE94BCF9D3CC196BF09A5472 CN = GTS Root R2 SHA-256 Fingerprint: C45D7BB08E6D67E62E4235110B564E5F78FD92EF058C840AEA4E6455D7585C60 CN = GTS Root R3 SHA-256 Fingerprint:
15D5B8774619EA7D54CE1CA6D0B0C403E037A917F131E8A04E1E6B7A71BABCE5 CN = GTS Root R4 SHA-256 Fingerprint: 71CCA5391F9E794B04802530B363E121DA8A3043BB26662FEA4DCA7FC951A4BD ...
...BD9988393382E5161AA0493C CN = UCA Extended Validation Root SHA-256 Fingerprint: D43AF9B35473755C9684FC06D7D8CB70EE5C28E773FB294EB41EE71722924D24 The following CA certificates were Removed: CN = AC Raiz Certicamara S.A. ...
...And 2 more matches
NSS 3.43 release notes
chash.h HASH_GetHashOidTagByHashType - convert type HASH_HashType to type SECOidTag in sslexp.h SSL_SendCertificateRequest - allow server to request post-handshake client authentication. To use this both peers need to enable the SSL_ENABLE_POST_HANDSHAKE_AUTH option. ...
...o use this both peers need to enable the SSL_ENABLE_POST_HANDSHAKE_AUTH option. ...
...erprint: 40F6AF0346A99AA1CD1D555A4E9CCE62C7F9634603EE4066
15833DC8C8D00367 CN = emSign ECC Root CA - G3 SHA-256 Fingerprint: 86A1ECBA089C4A8D3BBE2734C612BA341D813E043CF9E8A862CD5C57A36BBE6B CN = emSign Root CA - C1 SHA-256 Fingerprint: 125609AA301DA0A249B97A8239CB6A34216F44DCAC9F3954B14292F2E8C8608F CN = emSign ECC Root CA - C3 SHA-256 Fingerprint: BC4D809B
15189D78DB3E1D8CF4F9726A795DA1643CA5F1358E1DDB0EDC0D7EB3 CN = Hongkong Post Root CA 3 SHA-256 Fingerprint: 5A2FC03F0C83B090BBFA40604B0988446C7636183DF9846E17101A447FB8EFD6 The following CA certificates were Removed: None Bugs fixed in NSS 3.43 Bug
1528669 and Bug
1529308 - Improve Gyp build system handling Bug
1529950 and Bug
1521174 - Improve NSS S/MIME tests ...
...And 2 more matches
NSS_3.12.3_release_notes.html
oid.h) For the 2 functions above see also (in secoidt.h): NSS_USE_ALG_IN_CERT_SIGNATURE NSS_USE_ALG_IN_CMS_SIGNATURE NSS_USE_ALG_RESERVED Support for the Watcom C compiler is removed The file watcomfx.h is removed. Bugs Fixed The following bugs have been fixed in NSS 3.12.3. ...
... Bug 394077: libpkix need to return revocation status of a cert Bug 412468: modify certutil Bug 417092: Modify pkix_CertSelector API to return an error if cert was rejected. ...
...pdate of CRLs stops after first update Bug 380784: PK11MODE in non FIPS mode failed. Bug 394077: libpkix need to return revocation status of a cert Bug 412468: modify certutil Bug 417092: Modify pkix_CertSelector API to return an error if cert was rejected. ...
...And 2 more matches
Download Rhino
Rhino is available for download both in source and compiled form. ...
... Rhino is available for download both in source and compiled form. ...
... Rhino is available for download both in source and compiled form. ...
...And 2 more matches
SpiderMonkey 38
efox 38. It continues to improve performance over previous SpiderMonkey releases, with XXX blah blah blah. It also contains new language and API features described in detail below. Please let us know about your experiences with this release by posting in the mozilla.dev.tech.js-engine newsgroup. Or file bugs at bugzilla.mozilla.org under Product: Core, Component: JavaScript engine. -- Sep 17, 20
15 The download url is outdated and SpiderMonkey not RELEASE alone! Get it here mozilla-esr38 You will find it in "Firefox Extended Support Release 38" package on hg release Platform support SpiderMonkey 38 is supported on all the platforms where Firefox 38 runs. Compiling it requires a C++ compiler, and the JSAPI can only be used from C++ code. If you are compiling with Microsoft's Visual ...
...nternal use). ...
...bug 1107639) JS::RemoveObjectRoot (bug 1107639) JS::RemoveObjectRootRT (bug 1107639) JS::RemoveScriptRoot (bug 1107639) JS::RemoveScriptRootRT (bug 1107639) JS::RemoveStringRoot (bug 1107639) JS::RemoveStringRootRT (bug 1107639) JS::RemoveValueRoot (bug 1107639) JS::RemoveValueRootRT (bug 1107639) JSCLASS_NEW_ENUMERATE (bug 1097267) JSCLASS_NEW_RESOLVE (bug 993026) JSID_IS_OBJECT (bug 9
15482) JSNewResolveOp (bug 993026) JSVAL_IS_BOOLEAN (bug 952650) JSVAL_IS_DOUBLE (bug 952650) JSVAL_IS_GCTHING (bug 952650) JSVAL_IS_INT (bug 952650) JSVAL_IS_NULL (bug 952650) JSVAL_IS_NUMBER (bug 952650) JSVAL_IS_PRIMITIVE (bug 952650) JSVAL_IS_STRING (bug 952650) JSVAL_IS_VOID (bug 952650) JSVAL_TO_BOOLEAN (bug 952650) JSVAL_TO_DOUBLE (bug 952650) JSVAL_TO_GCTHING (bug 952650) JSVAL...
...And 2 more matches
SpiderMonkey 45
ete. You should now use nullptr instead. (Supporting decltype(nullptr)). New JavaScript language features JavaScript 45 includes significant updates to its language features, yo. New C++ APIs JSAPI is a C++ exclusive API. Please note that SpiderMonkey reserves the JS:: namespace for itself for public exports and the js:: namespace for internal use. ...
...(Supporting decltype(nullptr)). New JavaScript language features JavaScript 45 includes significant updates to its language features, yo. New C++ APIs JSAPI is a C++ exclusive API. Please note that SpiderMonkey reserves the JS:: namespace for itself for public exports and the js:: namespace for internal use. ...
...Script language features JavaScript 45 includes significant updates to its language features, yo. New C++ APIs JSAPI is a C++ exclusive API. Please note that SpiderMonkey reserves the JS:: namespace for itself for public exports and the js:: namespace for internal use. ...
...And 2 more matches
Basic usage of canvas - Web APIs
<< PreviousNext >> Let's start this tutorial by looking at the <canvas> HTML element itself. At the end of this page, you will know how to set up a canvas 2D context and have drawn a first example in your browser. The <canvas> element <canvas id="tutorial" width="
150" height="
150"></canvas> At first sight a <canvas> looks like the <img> element, with the only clear difference being that it doesn't have the src and alt attributes. Indeed, the <canvas> element has only two attributes, width and height. These are both optional and can also be set using DOM properties. When no width and height attributes are specified, the canvas will initially be 300 pixels wide and
150 pixels high. The element can be sized arbitrarily by CSS, but during rendering the image is scaled to f...
...rt <canvas> will ignore the container and render the fallback content inside it. Browsers that do support <canvas> will ignore the content inside the container, and just render the canvas normally. For example, we could provide a text description of the canvas content or provide a static image of the dynamically rendered content. This can look something like this: <canvas id="stockGraph" width="
150" height="
150"> current stock price: $3.
15 + 0.
15 </canvas> <canvas id="clock" width="
150" height="
150"> <img src="images/clock.png" width="
150" height="
150" alt=""/> </canvas> Telling the user to use a different browser that supports canvas does not help users who can't read the canvas at all, for example. Providing a useful fallback text or sub DOM helps to make the canvas more accessibl...
...This function, or one like it, could also be called using window.setTimeout(), window.setInterval(), or any other event handler, as long as the page has been loaded first. Here is how a template ...
...And 2 more matches
Compositing and clipping - Web APIs
lling the path. By default the <canvas> element has a clipping path that's the exact same size as the canvas itself. In other words, no clipping occurs. A clip example In this example, we'll use a circular clipping path to restrict the drawing of a set of random stars to a particular region. ...
... the path. By default the <canvas> element has a clipping path that's the exact same size as the canvas itself. In other words, no clipping occurs. A clip example In this example, we'll use a circular clipping path to restrict the drawing of a set of random stars to a particular region. ...
...').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.createLinearGradient(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.floor(Math.random() * 4) + 2); ctx.restore(); } } function drawStar(ctx, r) { ctx.save(); ctx.beginPath(); ctx.moveTo(r, 0); for (var i = 0; i < ...
...And 2 more matches
Web Video Text Tracks Format (WebVTT) - Web APIs
lines or the string "-->". A blank line, which is equivalent to two consecutive newlines. Zero or more cues or comments. Zero or more blank lines. Example 1 - Simplest possible WebVTT file WEBVTT Example 2 - Very simple WebVTT file with a text header WEBVTT - This file has no cues. Example 3 - Common WebVTT example with a header and cues WEBVTT - This file has cues. 14 00:01:14.8
15 --> 00:01:18.114 - What? - Where are we now?
15 00:01:18.171 --> 00:01:20.991 - This is big bat country. 16 00:01:21.058 --> 00:01:23.868 - [ Bats Screeching ] - They won't get in your hair. They're after the bugs. Inner structure of a WebVTT file Let's re-examine one of our previous examples, and look at the cue structure in a bit more detail. WEBVTT 00:01.000 --> 00:04.000 - Never drink ...
.... Example 4 - Common WebVTT example NOTE This is a comment Example 5 - Multi-line comment NOTE One comment that is spanning more than one line. NOTE You can also make a comment across more than one line this way. Example 6 - Common comment usage WEBVTT - Translation of that film I like NOTE This translation was done by Kyle so that some friends can watch it with their parents. 1 00:02:
15.000 --> 00:02:20.000 - Ta en kopp varmt te. - Det ar inte varmt. 2 00:02:20.000 --> 00:02:25.000 - Har en kopp te. - Det smakar som te. NOTE This last line may not translate well. 3 00:02:25.000 --> 00:02:30.000 - Ta en kopp Styling WebVTT cues You can style WebVTT cues by looking for elements which match the ::cue pseudo-element. Within site CSS video::cue { background-image: linear-gr...
...ne and cannot contain the string "-->". It must end with a single newline. They do not have to be unique, although it is common to number them (e.g., 1, 2, 3, ...). Example 8 - Cue identifier from Example 7 1 - Title Crawl Example 9 - Common usage of identifiers WEBVTT 1 00:00:22.230 --> 00:00:24.606 This is the first subtitle. 2 00:00:30.739 --> 00:00:34.074 This is the second. 3 00:00:34.
159 --> 00:00:35.743 Third Cue timings A cue timing indicates when the cue is shown. It has a start and end time which are represented by timestamps. The end time must be greater than the start time, and the start time must be greater than or equal to all previous start times. Cues may have overlapping timings. If the WebVTT file is being used for chapters (<track> kind is chapters) then the fil...
...And 2 more matches
WindowOrWorkerGlobalScope.setInterval() - Web APIs
true; }; this.pause = function () { clearInterval(nIntervId); bTyping = false; }; this.terminate = function () { oCurrent.nodeValue += sPart; sPart = ""; for (nIdx; nIdx < aSheets.length; scroll(aSheets[nIdx++], 0, false)); clean(); }; } /* usage: */ var oTWExample1 = new Typewriter(/* elements: */ '#article, h1, #info, #copyleft', /* frame rate (optional): */
15); /* default frame rate is 100: */ var oTWExample2 = new Typewriter('#controls'); /* you can also change the frame rate value modifying the "rate" property; for example: */ // oTWExample2.rate =
150; onload = function () { oTWExample1.play(); oTWExample2.play(); }; </script> <style type="text/css"> span.intLink, a, a:visited { cursor: pointer; color: #000000; text-decoration: underli...
...oTWExample2 = new Typewriter('#controls'); /* you can also change the frame rate value modifying the "rate" property; for example: */ // oTWExample2.rate =
150; onload = function () { oTWExample1.play(); oTWExample2.play(); }; </script> <style type="text/css"> span.intLink, a, a:visited { cursor: pointer; color: #000000; text-decoration: underline; } #info { width: 180px; height:
150px; float: right; background-color: #eeeeff; padding: 4px; overflow: auto; font-size: 12px; margin: 4px; border-radius: 5px; /* visibility: hidden; */ } </style> </head> <body> <p id="copyleft" style="font-style: italic; font-size: 12px; text-align: center;">CopyLeft 2012 by <a href="https://developer.mozilla.org/" target="_blank">Mozilla Developer Network</a></p> <p id="control...
...f setInterval() - the problem, in fact, is the same for both timers): myArray = ['zero', 'one', 'two']; myArray.myMethod = function (sProperty) { alert(arguments.length > 0 ? ...
...And 2 more matches
Color picker tool - CSS: Cascading Style Sheets
idth: 375px; height: 114px; max-height: 218px; margin: 0 10px 0 30px; overflow: hidden; position: relative; float: left; transition: all 0.2s; } #picker-samples .sample { width: 40px; height: 40px; margin: 5px; border: 1px solid #DDD; position: absolute; float: left; transition: all 0.2s; } #picker-samples .sample:hover { cursor: pointer; border-color: #BBB; transform: scale(1.
15); border-radius: 3px; } #picker-samples .sample[data-active='true'] { border-color: #999; } #picker-samples .sample[data-active='true']:after { content: ""; position: absolute; background: url('https://mdn.mozillademos.org/files/6065/arrow.png') center no-repeat; width: 100%; height: 12px; top: -12px; z-index: 2; } #picker-samples #add-icon { width: 100%; height: 100%; position: re...
...box-shadow: inset 0px 0px 2px 0px #DDD; } #picker-samples #add-icon:hover { cursor: pointer; border-color: #DDD; box-shadow: inset 0px 0px 5px 0px #CCC; } #picker-samples #add-icon:before, #picker-samples #add-icon:after { content: ""; position: absolute; background-color: #EEE; box-shadow: 0 0 1px 0 #EEE; } #picker-samples #add-icon:before { width: 70%; height: 16%; top: 42%; left:
15%; } #picker-samples #add-icon:after { width: 16%; height: 70%; top:
15%; left: 42%; } #picker-samples #add-icon:hover:before, #picker-samples #add-icon:hover:after { background-color: #DDD; box-shadow: 0 0 1px 0 #DDD; } /** * Controls */ #controls { width: 110px; padding: 10px; float: right; } #controls #picker-switch { text-align: center; float: left; } #controls .icon { wid...
...box; transition: all 0.2s; } #delete[drag-state='enter'] { background-color: #999; } /** * Color Theme */ #color-theme { margin: 0 8px 0 0; border: 1px solid #EEE; display: inline-block; float: right; } #color-theme .box { width: 80px; height: 92px; float: left; } /** * Color info box */ #color-info { width: 360px; float: left; } #color-info .title { width: 100%; padding:
15px; font-size: 18px; text-align: center; background-image: url('https://mdn.mozillademos.org/files/6071/color-wheel.png'); background-repeat:no-repeat; background-position: center left 30%; } #color-info .copy-container { position: absolute; top: -100%; } #color-info .property { min-width: 280px; height: 30px; margin: 10px 0; text-align: center; line-height: 30px; } #color-info .pro...
...And 2 more matches
min-width - CSS: Cascading Style Sheets
3Prefixed Notes Prefixed Implemented with the vendor prefix: -moz-Notes Firefox implements the definitions given in CSS3 Basic Box. This defines available and not fit-available. ...
...h the vendor prefix: -moz-Notes Firefox implements the definitions given in CSS3 Basic Box. This defines available and not fit-available. ...
...the vendor prefix: -webkit-Firefox Full support 66 Full support 66 Full support 3Prefixed Prefixed Implemented with the vendor prefix: -moz-IE No support NoOpera Full support
15Prefixed Full support
15Prefixed Prefixed Implemented with the vendor prefix: -webkit-Safari Full support 11 Full support 11 Full support 2Alternate Name Alternate Name Uses the non-standard name: intrinsicWebView Andro...
...And 2 more matches
transition-duration - CSS: Cascading Style Sheets
e transition-property property, which acts as a master list. If there are fewer durations specified than in the master list, the user agent repeat the list of durations. If there are more durations, the list is simply truncated to the right size. In both case the CSS declaration stays valid. Syntax /* <time> values */ transition-duration: 6s; transition-duration: 120ms; transition-duration: 1s,
15s; transition-duration: 10s, 30s, 230ms; /* Global values */ transition-duration: inherit; transition-duration: initial; transition-duration: unset; Values <time> Is a <time> denoting the amount of time the transition from the old value of a property to the new value should take. A time of 0s indicates that no transition will happen, that is the switch between the two states will be instant...
...-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transform color; transition-duration:0.5s; transition-timing-function: ease-in-out; } .box1{ transform: rotate(270deg); -webkit-transform: rotate(270deg); 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 transform -webkit-transform color; -webkit-transition-duration:0.5s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transformv color; transition-duration:0.5s; transi...
...it-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform color; transition-duration:1s; transition-timing-function: ease-in-out; } .box1{ transform: rotate(270deg); -webkit-transform: rotate(270deg); 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 -webkit-transform transform color; -webkit-transition-duration:1s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transform color; transition-duration:1s; transition-...
...And 2 more matches
<tr>: The Table Row element - HTML: Hypertext Markup Language
That way, both header and data cells are easily demarcated. table { border: 1px solid black; } th, td { border: 1px solid black; } Result Row and column spanning Now, let's introduce another column that shows th...
...Note the use of rowspan on to make the "Name", "ID", and "Balance" headers occupy two rows instead of just one, and the use of colspan to make the "Membership Dates" header cell span across two columns. The CSS is unchanged from before. ...
...Note the use of rowspan on to make the "Name", "ID", and "Balance" headers occupy two rows instead of just one, and the use of colspan to make the "Membership Dates" header cell span across two columns. Once again, we haven't ...
...And 2 more matches
HTTP range requests - HTTP
downloading files with pause and resume functions, for example. Checking if a server supports partial requests If the Accept-Ranges is present in HTTP responses (and its value isn't "none"), the server supports range requests. You can check this by issuing a HEAD request with cURL, for example. curl -I http://i.imgur.com/z4d4kWk.jpg HTTP/1.1 200 OK ... Accept-Ranges: bytes Content-Length: 1465
15 In this response, Accept-Ranges: bytes indicates that bytes can be used as unit to define a range. Here the Content-Length header is also useful as it indicates the full size of the image to retrieve. If sites omit the Accept-Ranges header, they likely don't support partial requests. Some sites also explicitly send "none" as a value, indicating no support. In some apps, download managers disab...
...ll append a header line to the request, which in this case is the Range header requesting the first 1024 bytes. curl http://i.imgur.com/z4d4kWk.jpg -i -H "Range: bytes=0-1023" The issued request looks like this: GET /z4d4kWk.jpg HTTP/1.1 Host: i.imgur.com Range: bytes=0-1023 The server responses with the 206 Partial Content status: HTTP/1.1 206 Partial Content Content-Range: bytes 0-1023/1465
15 Content-Length: 1024 ... (binary content) The Content-Length header now indicates the size of the requested range (and not the full size of the image). The Content-Range response header indicates where in the full resource this partial message belongs. Multipart ranges The Range header also allows you to get multiple ranges at once in a multipart document. The ranges are separated by a comma.
...gth header now indicates the size of the requested range (and not the full size of the image). The Content-Range response header indicates where in the full resource this partial message belongs. Multipart ranges The Range header also allows you to get multiple ranges at once in a multipart document. The ranges are separated by a comma. curl http://www.example.com -i -H "Range: bytes=0-50, 100-
150" The server responses with the 206 Partial Content status and a Content-Type: multipart/byteranges; boundary=3d6b6a416f9b5 header, indicating that a multipart byterange follows. Each part contains its own Content-Type and Content-Range fields and the required boundary parameter specifies the boundary string used to separate each body-part. HTTP/1.1 206 Partial Content Content-Type: multipart/b...
...And 2 more matches
206 Partial Content - HTTP
, the Content-Type of the whole response is set to the type of the document, and a Content-Range is provided. If several ranges are sent back, the Content-Type is set to multipart/byteranges and each fragment covers one range, with Content-Range and Content-Type describing it. ...
...tent-Type of the whole response is set to the type of the document, and a Content-Range is provided. If several ranges are sent back, the Content-Type is set to multipart/byteranges and each fragment covers one range, with Content-Range and Content-Type describing it. ...
...et to the type of the document, and a Content-Range is provided. If several ranges are sent back, the Content-Type is set to multipart/byteranges and each fragment covers one range, with Content-Range and Content-Type describing it. ...
...And 2 more matches
Arrow function expressions - JavaScript
lobal variables when assigning to an undeclared identifier in a function. ...
...le using Chrome 81 demonstrates that arrow functions allow the creation of global variables in such situations (both for a concise body and for a normal function body): > f1 = x => { y = x; console.log(`x: ${x}, y: ${y}`); return x + 1; } x => { y = x; console.log(`x: ${x}, y: ${y}`); return x + 1; } > y VM5
1587:1 Uncaught ReferenceError: y is not defined at <anonymous>:1:1 (anonymous) @ VM5
1587:1 > f1(3) VM5
1533:1 x: 3, y: 3 4 > y 3 > f2 = x => { 'use strict'; z = x; console.log(`x: ${x}, z: ${z}`); return x + 1; } x => { 'use strict'; z = x; console.log(`x: ${x}, z: ${z}`); return x + 1; } > z VM51757:1 Uncaught ReferenceError: z is not defined at <anonymous>:1:1 (anonymous) @ VM51757:1 > f2(4) VM51712:1 Uncaught ReferenceError: z is not defined at f2 (<anonymous>:1:29) ...
... var arr = [5, 6, 13, 0, 1, 18, 23]; var sum = arr.reduce((a, b) => a + b); // 66 var even = arr.filter(v => v % 2 == 0); // [6, 0, 18] var double = arr.map(v => v * 2); // [10, 12, 26, 0, 2, 36, 46] // More concise promise chains promise.then(a => { // ... }).then(b => {...
...And 2 more matches
Functions - JavaScript
efined object that supports the addition of new properties. The syntax for defining getters and setters uses the object literal syntax. get Binds an object property to a function that will be called when that property is looked up. set Binds an object property to a function to be called when there is an attempt to set that property. Method definition syntax Starting with ECMAScript 20
15, you are able to define own methods in a shorter syntax, similar to the getters and setters. See method definitions for more information. var obj = { foo() {}, bar() {} }; Constructor vs. declaration vs. expression Compare the following: A function defined with the Function constructor assigned to the variable multiply: var multiply = new Function('x', 'y', 'return x * y'); A function d...
... 'use strict'; function f() { return 1; } { function f() { return 2; } } f() === 1; // true // f() === 2 in non-strict mode Block-level functions in non-strict code In a word: Don't. In non-strict code, function declarations inside blocks behave strangely.
...}) // function expression x = function hello() {} if (x) { // function expression function world() {} } // function declaration function a() { // function declaration function b() {} if (0) { // function expression function c() {} } } Block-level functions In strict mode, starting with ES20
15, functions inside blocks are now scoped to that block. Prior to ES20
15, block-level functions were forbidden in strict mode. 'use strict'; function f() { return 1; } { function f() { return 2; } } f() === 1; // true // f() === 2 in non-strict mode Block-level functions in non-strict code In a word: Don't. In non-strict code, function declarations inside blocks behave strangely. For example: if (shouldDefineZero) { function zero() { // DANG...
...And 2 more matches
Function.name - JavaScript
e is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Property attributes of Function.name Writable no Enumerable no Configurable yes Note that in non-standard, pre-ES20
15 implementations the configurable attribute was false as well. JavaScript compressors and minifiers Warning: Be careful when using Function.name and source code transformations, such as those carried out by JavaScript compressors (minifiers) or obfuscators. These tools are often used as part of a JavaScript build pipeline to reduce the size of a program prior to deploying it to production. Su...
...w Function).name; // "anonymous" Anonymous function expression Anonymous function expressions that were created using the keyword function or arrow functions would have ""(an empty string) as their name. (function() {}).name; // "" (() => {}).name; // "" Inferred function names Variables and methods can infer the name of an anonymous function from its syntactic position (new in ECMAScript 20
15). let f = function() {}; let object = { someMethod: function() {} }; console.log(f.name); // "f" console.log(object.someMethod.name); // "someMethod" You can define a function with a name in a function expression: let object = { someMethod: function object_someMethod() {} }; console.log(object.someMethod.name); // logs "object_someMethod" try { object_someMethod } catch(e) { console.log...
... properties, "get" or "set" will appear in the function name. ...
...And 2 more matches
Comparing Reflect and Object methods - JavaScript
Although some of the methods appear to be similar in their behavior, there are often subtle differences between them. The table below details the differences between the methods available on the Object and Reflect APIs. Please note that if a method does not exist in an API, it is marked as N/A. Method Name Object Reflect defineProperty() Object.defineProperty() returns the object that was passed to the function. ...
...scriptors() returns an object containing a property descriptor of each passed-in object. Returns an empty object if the passed-in object has no owned property descriptors. N/A getPrototypeOf() Object.getPrototypeOf() returns the prototype of the given object. Returns null if there are no inherited properties. Throws a TypeError for non-objects in ES5, but coerces non-objects in ES20
15. Reflect.getPrototypeOf() returns the prototype of the given object. Returns null if there are no inherited properties, and throws a TypeError for non-objects. setPrototypeOf() Object.setPrototypeOf() returns the object itself if its prototype was set successfully. Throws a TypeError if the prototype being set was anything other than an Object or null, or if the prototype for the o...
...e if it wasn't (including if the prototype is non-extensible). Throws a TypeError if the target passed in was not an Object, or if the prototype being set was anything other than an Object or null. isExtensible() Object.isExtensible() returns true if the object is extensible, and false if it is not. Throws a TypeError in ES5 if the first argument is not an object (a primitive). In ES20
15, it will be coerced into a non-extensible, ordinary object and will return false. Reflect.isExtensible() returns true if the object is extensible, and false if it is not. Throws a TypeError if the first argument is not an object (a primitive). preventExtensions() Object.preventExtensions() returns the object that is being made non-extensible. Throws a TypeErrorin ES5 ...
...And 2 more matches
Lexical grammar - JavaScript
rk in a browser it is not advised to use BOM in a script with hasbang. BOM will not work when you try to run the script in Unix/Linux. So use UTF-8 without BOM if you want to run scripts directly from shell. You must only use the #! comment style to specify a JavaScript interpreter. In all other cases just use a // comment (or mulitiline comment). Keywords Reserved keywords as of ECMAScript 20
15 break case catch class const continue debugger default delete do else export extends finally for function if import in instanceof new return super switch this throw try typeof var void while with yield Future reserved keywords The following are reserved as future keywords by the ECMAScript specification. They have no special functionality at present, but they...
...ich serves as separator or exponent indicator) and N, which is exponent or power number - a signed integer (as per 2019 ECMA-262 specs): 0e-5 // => 0 0e+5 // => 0 5e1 // => 50 175e-2 // => 1.75 1e3 // => 1000 1e-3 // => 0.001 Binary Binary number syntax uses a leading zero followed by a lowercase or uppercase Latin letter "B" (0b or 0B). Because this syntax is new in ECMAScript 20
15, see the browser compatibility table, below. If the digits after the 0b are not 0 or 1, the following SyntaxError is thrown: "Missing binary digits after 0b". var FLT_SIGNBIT = 0b10000000000000000000000000000000; // 2147483648 var FLT_EXPONENT = 0b01111111100000000000000000000000; // 2139095040 var FLT_MANTISSA = 0B00000000011111111111111111111111; // 8388607 Octal Octal number syntax uses a ...
...wn: "Missing binary digits after 0b". var FLT_SIGNBIT = 0b10000000000000000000000000000000; // 2147483648 var FLT_EXPONENT = 0b01111111100000000000000000000000; // 2139095040 var FLT_MANTISSA = 0B00000000011111111111111111111111; // 8388607 Octal Octal number syntax uses a leading zero followed by a lowercase or uppercase Latin letter "O" (0o or 0O). Because this syntax is new in ECMAScript 20
15, see the browser compatibility table, below. If the digits after the 0o are outside the range (01234567), the following SyntaxError is thrown: "Missing octal digits after 0o". var n = 0O755; // 493 var m = 0o644; // 420 // Also possible with just a leading zero (see note about decimals above) 0755 0644 Hexadecimal Hexadecimal number syntax uses a leading zero followed by a lowercase or upper...
...And 2 more matches
preserveAspectRatio - SVG: Scalable Vector Graphics
" height="10"><use href="#smiley" /></svg> <svg preserveAspectRatio="xMinYMid meet" x="25" y="0" viewBox="0 0 100 100" width="20" height="10"><use href="#smiley" /></svg> <svg preserveAspectRatio="xMaxYMid meet" x="50" y="0" viewBox="0 0 100 100" width="20" height="10"><use href="#smiley" /></svg> <!-- (width>height) slice --> <svg preserveAspectRatio="xMidYMin slice" x="0" y="
15" viewBox="0 0 100 100" width="20" height="10"><use href="#smiley" /></svg> <svg preserveAspectRatio="xMidYMid slice" x="25" y="
15" viewBox="0 0 100 100" width="20" height="10"><use href="#smiley" /></svg> <svg preserveAspectRatio="xMidYMax slice" x="50" y="
15" viewBox="0 0 100 100" width="20" height="10"><use href="#smiley" /></svg> <!-- (width<height) meet --> <svg preserveAspectRa...
...idth="10" height="25"><use href="#smiley" /></svg> <!-- (width<height) slice --> <svg preserveAspectRatio="xMinYMid slice" x="120" y="0" viewBox="0 0 100 100" width="10" height="25"><use href="#smiley" /></svg> <svg preserveAspectRatio="xMidYMid slice" x="135" y="0" viewBox="0 0 100 100" width="10" height="25"><use href="#smiley" /></svg> <svg preserveAspectRatio="xMaxYMid slice" x="
150" y="0" viewBox="0 0 100 100" width="10" height="25"><use href="#smiley" /></svg> <!-- none --> <svg preserveAspectRatio="none" x="0" y="30" viewBox="0 0 100 100" width="160" height="60"><use href="#smiley" /></svg> </svg> topExample html,body,svg { height:100% } <svg viewBox="-1 -1 162 92" xmlns="http://www.w3.org/2000/svg"> <defs> <path id="smiley" d="M50,10 A40,4...
...width="20" height="10" preserveAspectRatio="xMinYMid meet" x="25" y="0"> <use href="#smiley" /> </svg> <rect x="50" y="0" width="20" height="10"> <title>xMaxYMid meet</title> </rect> <svg viewBox="0 0 100 100" width="20" height="10" preserveAspectRatio="xMaxYMid meet" x="50" y="0"> <use href="#smiley" /> </svg> <!-- (width>height) slice --> <rect x="0" y="
15" width="20" height="10"> <title>xMidYMin slice</title> </rect> <svg viewBox="0 0 100 100" width="20" height="10" preserveAspectRatio="xMidYMin slice" x="0" y="
15"> <use href="#smiley" /> </svg> <rect x="25" y="
15" width="20" height="10"> <title>xMidYMid slice</title> </rect> <svg viewBox="0 0 100 100" width="20" height="10" preserveAspectRatio="xMidYMid slic...
...And 2 more matches
<metadata> - SVG: Scalable Vector Graphics
path { fill: none; } </style> <!-- Define symbols used in the SVG --> <defs> <!-- hubPlug symbol. ...
...="71" r="7" /> <!-- five groups each using the defined socket --> <g id="sock1et" transform="translate(25 20)"> <title>Socket 1</title> <use xlink:href="#hubPlug"/> </g> <g id="socket2" transform="translate(70 20)"> <title>Socket 2</title> <use xlink:href="#hubPlug"/> </g> <g id="socket3" transform="translate(1
15 20)"> <title>Socket 3</title> <use xlink:href="#hubPlug"/> </g> <g id="socket4" transform="translate(160 20)"> <title>Socket 4</title> <use xlink:href="#hubPlug"/> </g> <g id="socket5" transform="translate(205 20)"> <title>Socket 5</title> <use xlink:href="#hubPlug"/> </g> </g> </symbol> ...
...--> <g id="Hub" transform="translate(80 45)"> <title>Hub</title> <use xlink:href="#hub" transform="scale(0.75)"/> </g> <!-- Use the computer symbol. --> <g id="ComputerA" transform="translate(20 170)"> <title>Computer A<...
...And 2 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
derbird.cfg (Version 2 with AD) Using Thunderbird 9.0.1 and try to use a Active Directory (Windows Server 2008) as LDAP-Source did not work with Version 1. Here's my own version. //Note: for accessing the Active Directory of Windows Server later than 2000 //it is necessary to allow anonymous read access. Please see //(German) http://interop.blog.de/2010/02/13/kapitel-1-ldap-anfragen-linux-ad-800
1564/ //or search the net how to do it. If it is not possible to give access to anonymous, //you have to enable this function first, please see //http://technet.microsoft.com/de-de/library/cc816788(WS.10).aspx // // //put everything in a try/catch try { var userInfo = new Object(); // This will hold LDAP results userInfo.envUser = getenv("USERNAME"); // USERNAME userInfo.envHome = getenv("HOME"...
...l to get LDAP values for Firefox extra config, for example to set the default home page to the labeledURI LDAP attribute of the user. Firefox 22 omni.jar archive file became omni.ja since http://blog.ffextensionguru.com/2011/11/16/omni-jar-to-become-omni-ja/ [root@localhost firefox]# unzip -l /usr/lib/firefox/browser/omni.ja | grep defaults/pr warning [/usr/lib/firefox/browser/omni.ja]: 35988
15 extra bytes at beginning or within zipfile (attempting to process anyway) error [/usr/lib/firefox/browser/omni.ja]: reported length of central directory is -35988
15 bytes too long (Atari STZip zipfile? J.H.Holm ZIPSPLIT 1.1 zipfile?). Compensating... 3850 01-01-2010 00:00 defaults/profile/bookmarks.html 869 01-01-2010 00:00 defaults/profile/chrome/userContent-example.css...
...1-01-2010 00:00 defaults/profile/chrome/userContent-example.css 1165 01-01-2010 00:00 defaults/profile/chrome/userChrome-example.css 366 01-01-2010 00:00 defaults/profile/localstore.rdf 569 01-01-2010 00:00 defaults/profile/mimeTypes.rdf 76 01-01-2010 00:00 defaults/preferences/firefox-l10n.js 91656 01-01-2010 00:00 defaults/preferences/firefox.js
1593 01-01-2010 00:00 defaults/preferences/firefox-branding.js 473 01-01-2010 00:00 defaults/profile/prefs.js Unlike old Thunderbird 8, Firefox 8 didn't include prefcalls.js in omni.jar , but other .js files though: [root@arvouin firefox]# jar tvf omni.jar | grep defaults/pref 0 Fri Nov 04 21:34:18 CET 2011 defaults/preferences/ 604 Fri Nov 04 21:34:18 CET 2011 defaults/pref...
...ed Updated to revision c10119db13cad9797b05750bfe18a57261a88922. Executing command: ['hg', 'clone', 'http://hg.mozilla.org/releases/mozilla-1.9.1/', './mozilla'] requesting all changes adding changesets ... Executing command: ['hg', 'update', '-r', 'default', '-R', './mozilla/extensions/inspector'] 0 files updated, 0 files merged, 0 files removed, 0 files unresolved Updated to revision 51c6d483a4c
15a657df18540219bd0201896c6f2. CVS checkout begin: 2009-06-30 10:28:31 UTC Executing command: ['cvs', '-d', ':pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot', '-q', 'checkout', '-P', '-r', 'LDAPCSDK_6_0_6B_MOZILLA_RTM', '-d', 'c-sdk', 'mozilla/directory/c-sdk'] U c-sdk/.cvsignore U c-sdk/Makefile.in ... updating working directory 163 files updated, 0 files merged, 0 files removed, 0 files unresol...
Mozilla Crypto FAQ - Archive of obsolete content
ions governing export from the U.S. of encryption software? The Export Administration Regulations, the Export Administration Act of 1979, and related U.S. presidential executive orders address export of encryption software from the U.S. The main U.S. government regulations governing the export from the U.S. of cryptographic software are the Export Administration Regulations (EAR), also known as
15 CFR chapter VII subchapter C, or
15 CFR Parts 730-774. ("CFR" stands for "Code of Federal Regulations.") The Export Administration Regulations were created by the Bureau of Export Administration (BXA) and were designed primarily to implement the requirements of the Export Administration Act of 1979 (as amended), also known as 50 USC appendices 2401-2420. ("USC" stands for "United States Code.") T...
...tration Act of 1979 (as amended), also known as 50 USC appendices 2401-2420. ("USC" stands for "United States Code.") The EAA was passed as temporary legislation; however the President of the United States has periodically issued orders to continue the EAA and EAR, exercising authority under the International Emergency Economic Powers Act, also known as 50 USC 1701-1706. For more information see
15 CFR Part 730, section 730.2 (concerning statutory authority for the EAR), and the document "Principal Statutory Authority for the Export Administration Regulations", which contains copies of the Export Administration Act of 1979 (as amended), the International Emergency Economic Powers Act (as amended), and related legislation and executive orders. I thought export of encryption software from th...
...rnational Traffic in Arms Regulations. What happened to the ITAR? The ITAR still exist, but are no longer used in the context of export control of encryption software; for this purpose they have been replaced by the EAR. Authority for non-military encryption export was transferred from the U.S. State Department to the U.S. Department of Commerce by Presidential Executive Order 13026 on November
15, 1996, for regulation under the Export Administration Regulations (EAR), along with all other export-controlled commercial products. At that time encryption hardware, software, and technology was transferred from the U.S. Munitions List to the Commerce Control List (CCL) of the EAR. For more information see the document "Principal Statutory Authority for the Export Administration Regulations", w...
...ally requested to do, i.e., publish his encryption source code online. For more information see the archives on the Bernstein case maintained by the Electronic Frontier Foundation, particularly the 9th Circuit Court of Appeals ruling, the press release issued by the U.S. Bureau of Export Administration immediately afterward, and the U.S. Export Administration Regulations themselves, particularly
15 CFR Part 774, Supplement No. 1, Category 5, Part 2, entry 5D002 (note on "functional capacity") and
15 CFR Part 734, paragraphs 734.3(b)(2) and (b)(3) and accompanying note (printed form vs. electronic form). See also the request for an advisory opinion made to the Bureau of Export Administration by Bernstein's lawyers and the resulting advisory opinion issued by BXA in response to that request. ...
Why RSS Slash is Popular - Counting Your Comments - Archive of obsolete content
tem>, so the RSS Slash Module exists to fill in this gap. ...
...rss/1.0/modules/slash/" > <channel> <title>Example</title> <description>An RSS Example with Slash</description> <lastBuildDate>Sun,
15 May 2005 13:02:08 -0500</lastBuildDate> <link>http://www.example.com</link> <item> <title>Review of Sin City</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/
15/114</guid> <pubDate>Sun,
15 May 2005 13:02:08 -0500</lastBuildDate></pubDate> <link>http://www.example.com/blog/2005/05/
15/114</link> <slash:comments>43</slash:comments> </item> <item> <title>What is the 3571st Prime Number</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/
15/113</guid> ...
... <pubDate>Sun,
15 May 2005 13:02:08 -0500</lastBuildDate></pubDate> <link>http://www.example.com/blog/2005/05/
15/114</link> <slash:comments>43</slash:comments> </item> <item> <title>What is the 3571st Prime Number</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/
15/113</guid> <pubDate>Sun,
15 May 2005 10:55:12 -0500</lastBuildDate></pubDate> <link>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/
15/113</link> <slash:comments>72</slash:comments> </item> <item> <title>First Article!</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:2005/05/
15/112</guid> <pubDate>Sun,
15 May 2005 08:14:11 -0500...
...This element gives the (current) total number of comments made for the item -- for the blog post. ...
Styling the Amazing Netscape Fish Cam Page - Archive of obsolete content
emselves, it was necessary to strip out all of the tables, font tags, and other non-validating stuff. At the end of it, there were a series of div elements that contained a picture of the fish, the name of the fish, and one or more paragraphs of text about the fish. Here's a typical (and short) example. <div class="card"> <img src="thumb_clown_trigger.jpg" alt="Clown Trigger" border="0" width="
150" height="1
15"> <h3>Clown Trigger</h3> <p> Our clown trigger is a bold little fish, though for a few weeks he slept a lot and didn't look well in general. He's much better now. </p> </div> Basically, that's all that was needed. The reason for the class value being card is that the original idea was to style each fish's description like a trading card. Although this design approach was abandoned ...
...alue. In order to create visual appeal, I decided to offset the top let corners of the fish image and fish name. With just a few simple margin and padding changes, this was possible. ...
...: 4px 0 0 0; border: 1px solid #339;} div.card h3 {margin: 0 0 0 4px; padding: 0.2em 0 1px
150px; border: 1px solid #339; border-left: 5px double #339; background: #EEC url(body-bg-tan.jpg) bottom left no-repeat fixed; color: #339;} Note how the image is pushed downward four pixels, while the h3 is pushed rightward four pixels. At the same time, the heading's padding was set to that it had
150 pixels of left padding. Thus, the text starts
159 pixels from the leftmost edge of the card (4px left margin plus 5px left border plus
150px left padding). Since all the fish images are
150 pixels wide, that's a good interval between image and text. The last thing to do was style the paragraphs of text in each card. In most cases, there is only one paragraph per card, but a few have two. Theref...
...hs won't wrap under the floated images. This is desirable for the cases where only one word would wrap under an image. It's better to keep the text as if it's in a column of its own. div.card {float: left; width: 45%; margin: 1em 2% 0 2%;} div.card img {float: left; position: relative; z-index: 10; margin: 4px 0 0 0; border: 1px solid #339;} div.card h3 {margin: 0 0 0 4px; padding: 0.2em 0 1px
150px; border: 1px solid #339; border-left: 5px double #339; background: #EEC url(body-bg-tan.jpg) bottom left no-repeat fixed; color: #339;} div.card p {margin: 0.5em 0.5em 0.5em 160px;} And voila! The cards are done. Conclusion Redesigning a classic is something like being asked to reviseMoby Dick for modern audiences: you're thrilled at the opportunity, but afraid of doing injustice to t...
Implementation Status - Archive of obsolete content
4.4.10 xforms-enabled supported 4.4.11 xforms-disabled supported 4.4.12 DOMActivate supported 4.4.13 DOMFocusIn supported 4.4.14 DOMFocusOut supported 4.4.
15 xforms-select xforms-deselect supported 4.4.16 xforms-in-range supported 4.4.17 xforms-out-of-range supported 4.4.18 xforms-scroll-first xforms-scroll-last supported 4.4.19 xforms-submit-done supported ...
...Getting a few issues with in/out of range notifications. 282840; 303351; 333464; 333529; 352398; 8.2.1 choices supported 8.2.2 item supported ...
...XForms Actions Section Title Status Notes Bugs 10 XForms Action Module n/a 10.1 action su...
...XForms Submission Model S...
Function - MDN Web Docs Glossary: Definitions of Web-related terms
nction declaration or function expression. The function name's scope depends on whether the function name is a declaration or expression. Different types of functions An anonymous function is a function without a function name. ...
...pression (function () {}); // or using the ECMAScript 20
15 arrow notation () => {}; The following terms are not used in the ECMAScript language specification, they're jargon used to refer to different types of functions. A named function is a function with a function name: // Function declaration function foo() {}; // Named function expression (function bar() {}); // or using the ECMAScript 20
15 arrow notation const foo = () => {}; An inner function is a function inside another function (square in this case). ...
...on expression (function bar() {}); // or using the ECMAScript 20
15 arrow notation const foo = () => {}; An inner function is a function inside another function (square in this case). An outer function is a function containing a function (addSquares in this case): function addSquares(a,b) { function square(x) { return x * x; } return square(a) + square(b); }; //Using ECMAScript 20
15 arrow notation const addSquares = (a,b) => { const square = x => x*x; return square(a) + square(b); }; A recursive function is a function that calls itself. See recursion. ...
...on addSquares(a,b) { function square(x) { return x * x; } return square(a) + square(b); }; //Using ECMAScript 20
15 arrow notation const addSquares = (a,b) => { const square = x => x*x; return square(a) + square(b); }; A recursive function is a function that calls itself. See recursion. function loop(x) { if (x >= 10) return; loop(x + 1); }; //Using ECMAScript 20
15 arrow notation const loop = x => { if (x >= 10) return; loop(x + 1); }; An Immediately Invoked Function Expressions (IIFE) is a function that is called directly after the function is loaded into the browser's compiler. The way to identify an IIFE is by locating the extra left and right parenthesis at the end of the function's definition. // Declared functions can't be called immedi...
Advanced text formatting - Learn web development
ou can always reset it using the Reset button. If you get really stuck, press the Show solution button to see the answer. Playable code 2 <h2>Live output</h2> <div class="output" style="min-height: 50px;"> </div> <h2>Editable code</h2> <p class="a11y-label">Press Esc to move focus away from the code area (Tab inserts a tab character).</p> <textarea id="code" class="input" style="min-height:
150px; width: 95%"> <p>Hello and welcome to my motivation page. As Confucius' quotes site says:</p> <p>It does not matter how slowly you go as long as you do not stop.</p> <p>I also love the concept of positive thinking, and The Need To Eliminate Negative Self Talk (as mentioned in Affirmations for Positive Thinking.)</p> </textarea> <div class="playable-buttons"> <input id="reset" type="button" ...
...For example: <time datetime="2016-01-20">20 January 2016</time> Why is this useful? Well, there are many different ways that humans writ...
...For example: <time datetime="2016-01-20">20 January 2016</time> Why is this useful? Well, there are many different ways that humans write down dates. The above date could be writte...
...For example: <time datetime="2016-01-20">20 January 2016</time> Why is this useful? Well, there are many different ways that humans write down dates. The above date could be written as: 20 January 2016 20th...
Beginning our React todo list - Learn web development
in our earlier code snippet has a value of true because aria-pressed is not a true boolean attribute in the way checked is. ...
...one; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; line-height: normal; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; -webkit-appearance: none; } button::-moz-focus-inner { border: 0; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.
15; margin: 0; } button, input { overflow: visible; } input[type="text"] { border-radius: 0; } body { width: 100%; max-width: 68rem; margin: 0 auto; font: 1.6rem/1.25 Arial, sans-serif; background-color: #f5f5f5; color: #4d4d4d; } @media screen and (min-width: 620px) { body { font-size: 1.9rem; line-height: 1.3
1579; } } /*END RESETS*/ /* GLOBAL STYLES */ .form-group > i...
...0 rgba(0, 0, 0, 0.2), 0 2.5rem 5rem 0 rgba(0, 0, 0, 0.1); } @media screen and (min-width: 550px) { .todoapp { padding: 4rem; } } .todoapp > * { max-width: 50rem; margin-left: auto; margin-right: auto; } .todoapp > form { max-width: 100%; } .todoapp > h1 { display: block; max-width: 100%; text-align: center; margin: 0; margin-bottom: 1rem; } .label__lg { line-height: 1.0
1567; font-weight: 300; padding: 0.8rem; margin-bottom: 1rem; text-align: center; } .input__lg { padding: 2rem; border: 2px solid #000; } .input__lg:focus { border-color: #4d4d4d; box-shadow: inset 0 0 0 2px; } [class*="__lg"] { display: inline-block; width: 100%; font-size: 1.9rem; } [class*="__lg"]:not(:last-child) { margin-bottom: 1rem; } @media screen and (min-width: 620p...
...heckbox"] { box-sizing: border-box; top: -2px; left: -2px; width: 44px; height: 44px; } .c-cb > input[type="checkbox"] { -webkit-font-smoothing: antialiased; cursor: pointer; position: absolute; z-index: 1; margin: 0; opacity: 0; } .c-cb > label { font-size: inherit; font-family: inherit; line-height: inherit; display: inline-block; margin-bottom: 0; padding: 8px
15px 5px; cursor: pointer; touch-action: manipulation; } .c-cb > label::before { content: ""; position: absolute; border: 2px solid currentColor; background: transparent; } .c-cb > input[type="checkbox"]:focus + label::before { border-width: 4px; outline: 3px dashed #228bec; } .c-cb > label::after { box-sizing: content-box; content: ""; position: absolute; top: 11px; left: ...
Debugging on Mac OS X
to build the application you're going to debug using --disable-optimize--enable-debug-symbols in your .mozconfig (also add --enable-debug if you want assertions etc. compiled in). See Building Firefox for macOS if you need help creating your own build. Debugging Firefox on macOS 10.14+ macOS 10.14 introduced Notarization and Hardened Runtime features for improved application security. macOS 10.
15 went further, requiring applications to be Notarized with Hardened Runtime enabled in order to launch (ignoring workarounds.) When run on earlier macOS versions, Notarization and Hardened Runtime settings have no effect. Official Builds At this time, official builds of Firefox 69 and later are Notarized. Uplifts to Firefox 68 and ESR 68 to enable Notarization are planned. As a result, it is not...
...differences are explained below. try Server Builds In most cases, developers needing to debug a build as close as possible to the production environment should use a try build. These builds enable Hardened Runtime and only differ from production builds in that they are not Notarized which should not otherwise affect functionality, (other than the ability to easily launch the browser on macOS 10.
15+ -- see quarantine note below). At this time, developers can obtain a Hardened Runtime build with the com.apple.security.get-task-allow entitlement allowed by submitting a try build and downloading the dmg generated by the "Rpk" shippable build job. A debugger can be attached to Firefox processes of these builds. try builds use the developer.entitlements.xml file from the source tree while produc...
... can obtain a Hardened Runtime build with the com.apple.security.get-task-allow entitlement allowed by submitting a try build and downloading the dmg generated by the "Rpk" shippable build job. A debugger can be attached to Firefox processes of these builds. try builds use the developer.entitlements.xml file from the source tree while production builds use production.entitlements.xml. On macOS 10.
15+, downloaded try builds will not launch by default because Notarization is required. To workaround this problem, remove the quarantine extended attribute from the downloaded Nightly: $ xattr -r -d com.apple.quarantine /Path/to/Nightly.app Local Builds Local builds of mozilla-central do not enable Hardened Runtime and hence do not have debugging restrictions. As a result, some functionality w...
...blem, remove the quarantine extended attribute from the downloaded Nightly: $ xattr -r -d com.apple.quarantine /Path/to/Nightly.app Local Builds Local builds of mozilla-central do not enable Hardened Runtime and hence do not have debugging restrictions. As a result, some functionality will be permitted on local builds, but blocked on production builds which have Hardened Runtime enabled. Bug
1522409 was filed to automate codesigning local builds to enable Hardened Runtime by default and eliminate this discrepancy. To obtain a Hardened Runtime build without using try infrastructure, a developer can manually codesign builds using the macOS codesign(1) command with the developer.entitlements.xml file from the tree. This requires creating a codesigning identity. Disabling System Integrity...
Mozilla Port Blocking
A simple exploit of this hole allows an attacker to send forged unsigned mail through a mail server behind your firewall: A really nasty hole. Mozilla responded by modifying how protocols can access ports. By default, Mozilla now blocks access to specific ports which are used by vulnerable services in order to prevent security vulnerabilites due to "Cross-Protocol Scripting". ...
...ref/ sub-directory in the installation directory. ...
... telnet 25 smtp 37 time 42 name 43 nicname 53 domain 77 priv-rjs 79 finger 87 ttylink 95 supdup 101 hostriame 102 iso-tsap 103 gppitnp 104 acr-nema 109 POP2 110 POP3 111 sunrpc 113 auth 1
15 sftp 117 uucp-path 119 NNTP 123 NTP 135 loc-srv / epmap 139 netbios 143 IMAP2 179 BGP 389 LDAP 465 SMTP+SSL 512 print / exec 513 login 514 shell 5
15 printer 526 tempo 530 courier 531 chat 532 ...
...er protocol port blocking/enabling preferences. Better User Interface Allow the user to decide if the blocking is really required. Some kind of way to manage the ports which are blocked. More Information nsIOService.cpp gbadPortList bug 83401 Vulnerability Note VU#476267 dougt@netscape.com Original Document Information Author(s): Doug Turner Last Updated Date: August
15, 2007 Copyright Information: Portions of this content are (C) 1998-2007 by individual mozilla.org contributors; content available under a Creative Commons license | Details. ...
NSS 3.42 release notes
rc/ Other releases are available in NSS Releases. ...
...Thanks to Han...
...on New Functions none Notable Changes in NSS 3.42 The following CA certificates were Added: None The following CA certificates were Removed: None Added support for some of the testcases from the Wycheproof project: Bug
1508666 - Added AES-GCM test cases Bug
1508673 - Added ChaCha20-Poly1305 test cases Bug
1514999 - Added the Curve25519 test cases Thanks to Jonas Allmann for adapting these tests. Bugs fixed in NSS 3.42 Bug 1490006 - Reject invalid CH.legacy_version in TLS 1.3 Bug
1507135 and Bug
1507174 - Add additional null checks to several CMS functions to fix a rare CMS crash. Thanks to Hanno Bock and Damian Poddebniak for the discovery and fixes. Note: This was mistake...
...nas Allmann for adapting these tests. Bugs fixed in NSS 3.42 Bug 1490006 - Reject invalid CH.legacy_version in TLS 1.3 Bug
1507135 and Bug
1507174 - Add additional null checks to several CMS functions to fix a rare CMS crash. Thanks to Hanno Bock and Damian Poddebniak for the discovery and fixes. Note: This was mistakenly not in release 3.42, and is instead in NSS 3.42.1. ...
NSS 3.51 release notes
608892 for details. Bugs fixed in NSS 3.51 Bug 1608892 - Update DTLS 1.3 implementation to draft-34. ...
...g 1611209 - Correct swapped PKCS11 values of CKM_AES_CMAC and CKM_AES_CMAC_GENERAL Bug 1612259 - Complete integration of Wycheproof ECDH test cases Bug 1614183 - Check if PPC __has_include(<sys/auxv.h>) Bug 1614786 - Fix a compilation error for 'getFIPSEnv' "defined but not used" Bug 16
15208 - Send DTLS version numbers in DTLS 1.3 supported_versions extension to avoid an incompatibility. ...
...e integration of Wycheproof ECDH test cases Bug 1614183 - Check if PPC __has_include(<sys/auxv.h>) Bug 1614786 - Fix a compilation error for 'getFIPSEnv' "defined but not used" Bug 16
15208 - Send DTLS version numbers in DTLS 1.3 supported_versions extension to avoid an incompatibility. ...
...nd DTLS version numbers in DTLS 1.3 supported_versions extension to avoid an incompatibility. ...
NSS 3.52 release notes
ChaChaPoly. Bug 1623184 - Fix freebl_cpuid for querying Extended Features. Bug 1622555 - Fix argument parsing in lowhashtest. Bug 1620799 - Introduce NSS_DISABLE_GCM_ARM32_NEON to build on arm32 without NEON support. Bug 1619102 - Add workaround option to include both DTLS and TLS versions in DTLS supported_versions. Bug 1619056 - Update README: TLS 1.3 is not experimental anymore. Bug 16189
15 - Fix UBSAN issue in ssl_ParseSessionTicket. Bug 1618739 - Don't assert fuzzer behavior in SSL_ParseSessionTicket. Bug 1617968 - Update Delegated Credentials implementation to draft-07. Bug 1617533 - Update HACL* dependencies for libintvector.h Bug 1613238 - Add vector accelerated SHA2 for POWER 8+. Bug 1612493 - Integrate AVX2 ChaCha20, Poly1305, and ChaCha20Poly1305 from HACL*. Bug 161228...
...ly1305 from HACL*. Bug 1612281 - Maintain PKCS11 C_GetAttributeValue semantics on attributes that lack NSS database columns. Bug 1612260 - Add Wycheproof RSA test vectors. Bug 1608250 - broken fipstest handling of KI_len. Bug 1608245 - Consistently handle NULL slot/session. Bug 1603801 - Avoid dcache pollution from sdb_measureAccess(). Bug 1603628 - Update NSS to support PKCS #11 v3.0. ...
..._GetAttributeValue semantics on attributes that lack NSS database columns. Bug 1612260 - Add Wycheproof RSA test vectors. Bug 1608250 - broken fipstest handling of KI_len. Bug 1608245 - Consistently handle NULL slot/session. Bug 1603801 - Avoid dcache pollution from sdb_measureAccess(). Bug 1603628 - Update NSS to support PKCS #11 v3.0. Bug
1561637 - TLS 1.3 does not work in FIPS mode. ...
...#11 v3.0. Bug
1561637 - TLS 1.3 does not work in FIPS mode. Bug
1531906 - Fix overzealous assertion when evicting a cached sessionID or using external cache. Bug 1465613 - Fix issue where testlib makefile build produced extraneous object files. Bug 1619959 - Properly handle multi-block SEED ECB inputs. ...
sslerr.html
12217 "Bulk data decryption algorithm failed in selected cipher suite." SSL_ERROR_SOCKET_WRITE_FAILURE -12216 "Attempt to write encrypted data to underlying socket failed." After the data to be sent was encrypted, the attempt to send it out the socket failed. Likely causes include that the peer has closed the connection. ...
...ONSE -8163 Certificate library: no response. SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE -8162 The certificate issuer's certificate has expired. SEC_ERROR_CRL_EXPIRED -8161 The CRL for the certificate's issuer has expired. SEC_ERROR_CRL_BAD_SIGNATURE -8160 The CRL for the certificate's issuer has an invalid signature. SEC_ERROR_CRL_INVALID -8
159 New CRL has an invalid format. SEC_ERROR_EXTENSION_VALUE_INVALID -8
158 Certificate extension value is invalid. SEC_ERROR_EXTENSION_NOT_FOUND -8
157 Certificate extension not found. SEC_ERROR_CA_CERT_INVALID -8
156 Issuer certificate is invalid. SEC_ERROR_PATH_LEN_CONSTRAINT_INVALID -8
155 Certificate path length constraint is invalid. ...
... SEC_ERROR_EXTENSION_VALUE_INVALID -8
158 Certificate extension value is invalid. SEC_ERROR_EXTENSION_NOT_FOUND -8
157 Certificate extension not found. SEC_ERROR_CA_CERT_INVALID -8
156 Issuer certificate is invalid. SEC_ERROR_PATH_LEN_CONSTRAINT_INVALID -8
155 Certificate path length constraint is invalid. SEC_ERROR_CERT_USAGES_INVALID -8
154 Certificate usages field is invalid. SEC_INTERNAL_ONLY -8
153 Internal-only module. SEC_ERROR_INVALID_KEY -8
152 The key does not support the requested operation. SEC_ERROR_UNKNOWN_CRITICAL_EXTENSION -8
151 Certificate contains unknown critical extension. SEC_ERROR_OLD_CRL -8
150 New CRL is not later than the current one. SEC_ER...
... XP_JAVA_DELETE_PRIVILEGE_ERROR -8119 Couldn't delete the privilege XP_JAVA_CERT_NOT_EXISTS_ERROR -8118 This principal doesn't have a certificate. SEC_ERROR_BAD_EXPORT_ALGORITHM -8117 Required algorithm is not allowed. SEC_ERROR_EXPORTING_CERTIFICATES -8116 Error attempting to export certificates. SEC_ERROR_IMPORTING_CERTIFICATES -81
15 Error attempting to import certificates. SEC_ERROR_PKCS12_DECODING_PFX -8114 Unable to import. Decoding error. File not valid. SEC_ERROR_PKCS12_INVALID_MAC -8113 Unable to import. Invalid MAC. Incorrect password or corrupt file. SEC_ERROR_PKCS12_UNSUPPORTED_MAC_ALGORITHM -8112 Unable to import. MAC algorithm not supported. SEC_ERROR_PKCS12_...
NSS Tools crlutil
on script syntax: CRL generation script file has the following syntax: Line with comments should have <bold>#</bold> as a first symbol of a line Set "this update" or "next update" CRL fields: update=YYYYMMDDhhmmssZ nextupdate=YYYYMMDDhhmmssZ Field "next update" is optional. Time should be in GeneralizedTime format (YYYYMMDDhhmmssZ). For example: 20050204
153000Z Add an extension to a CRL or a crl certificate entry: addext extension-name critical/non-critical [arg1[arg2 ...]] Where: extension-name: string value of a name of known extensions. critical/non-critical: is 1 when extension is critical and 0 otherwise. arg1, arg2: specific to extension type extension parameters addext uses the range t...
... Listing CRLs in a Database This example lists all the CRLs in the NSS database in the specified directory: crlutil -L -d certdir The CRL Management Tool displays output similar to the following: CRL Name CRL Type CN=NSS Test CA,O=BOGUS NSS,L=Mountain View,ST=Cal...
... Listing CRLs in a Database This example lists all the CRLs in the NSS database in the specified directory: crlutil -L -d certdir The CRL Management Tool displays output similar to the following: CRL Name CRL Type CN=NSS Test CA,O=BOGUS NSS,L=Mountain View,ST=California,C=US CRL CN=John Smit...
...abase This example imports CRL into a database: crlutil -I -i crl-file -d certdir File should has binary format of ASN.1 encoded CRL data. Modifying CRL in a Database This example modifies a new CRL and importing it in to a Database in the specified directory: crlutil -G -d certdir -n cert-nickname -c crl-script-file or crlutil -M -d certdir -n cert-nickname <<EOF update=20050204
153000Z addcert 40-60 20050105
153000Z EOF The CRL Management Tool extracts existing CRL from a database, will modify and sign with certificate cert-nickname and will store it in database. To modify while importing CRL from file user should supply -i import-crl-file option. ...
Network request details - Firefox Developer Tools
Copy All, the entire header is copied in JSON format, giving you something like this (after running the results through a JSON validator): { "Response headers (1.113 KB)": { "headers": [ { "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": "inline; filename=api-result.js" }, { "name": "content-encoding", "value": "gzip" }, { "name": "content-length", "value": "673" }, { ...
..." }, { "name": "x-analytics", "value": "ns=-1;special=Badtitle;WMF-Last-Access=11-Jun-2019;WMF-Last-Access-Global=11-Jun-2019;https=1" }, { "name": "x-cache", "value": "cp1075 pass, cp1075 pass" }, { "name": "x-cache-status", "value": "pass" }, { "name": "x-client-ip", "value": "204.210.
158.136" }, { "name": "x-content-type-options", "value": "nosniff" }, { "name": "X-Firefox-Spdy", "value": "h2" }, { "name": "x-frame-options", "value": "SAMEORIGIN" }, { "name": "x-powered-by", "value": "HHVM/3.18.6-dev" }, { "name": "x-search-id", "value": "es...
...ormatting, or as plain, unformatted text. Cookies tab This tab lists full details of any cookies sent with the request or response: As with headers, you can filter the list of cookies displayed. The full list of cookie attributes is shown--see the following screenshot showing Response cookies with further attributes shown. The samesite attribute has been shown since Firefox 62 (bug 14527
15). Params tab This tab displays the GET parameters and POST data of a request: Response tab The complete content of the response. If the response is HTML, JS, or CSS, it will be shown as text: If the response is JSON, it will be shown as an inspectable object: If the response is an image, the tab displays a preview: For network responses that are initiated by a WebSocket connection,...
... we now show the following timings at the top of the Timings tab, making dependency analysis a lot easier: Queued: When the resource was queued for download. Started: When the resource started downloading. Downloaded: When the the resource finished downloading. Note: Future versions will also show this information when entries in the network monitor timeline graph are moused over (see bug
1580493). Request Timing The Request Timing section breaks a network request down into the following subset of the stages defined in the HTTP Archive specification: Name Description Blocked Time spent in a queue waiting for a network connection. The browser imposes a limit on the number of simultaneous connections that can be made to a single server. In Fire...
Rich output - Firefox Developer Tools
ent. The output will look something like this: console.log(todoList) Array(4) [ {...}, {...}, {...}, {...} ] debugger eval code:1:9 undefined If you expand objects, such as arrays, you get slightly different content. ...
.....}, {...} ] debugger eval code:1:9 undefined If you expand objects, such as arrays, you get slightly different content. ...
...ightly different content. ...
... ...
CanvasRenderingContext2D.lineCap - Web APIs
nds of lines are squared off by adding a box with an equal width and half the height of the line's thickness. Examples Changing the shape of line caps This example rounds the end caps of a straight line. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.beginPath(); ctx.moveTo(20, 20); ctx.lineWidth =
15; ctx.lineCap = 'round'; ctx.lineTo(100, 100); ctx.stroke(); Result Comparison of line caps In this example three lines are drawn, each with a different value for the lineCap property. Two guides to see the exact differences between the three are added. Each of these lines starts and ends exactly on these guides. The line on the left uses the default "butt" option. It's drawn completely flu...
...ly on these guides. The line on the left uses the default "butt" option. It's drawn completely flush with the guides. The second is set to use the "round" option. This adds a semicircle to the end that has a radius half the width of the line. The line on the right uses the "square" option. This adds a box with an equal width and half the height of the line thickness. ...
...uides. The line on the left uses the default "butt" option. It's drawn completely flush with the guides. The second is set to use the "round" option. This adds a semicircle to the end that has a radius half the width of the line. The line on the right uses the "square" option. This adds a box with an equal width and half the height of the line thickness. ...
... Living Standard ...
CanvasRenderingContext2D.lineJoin - Web APIs
it property. Default value. Examples Changing the joins in a path This example applies rounded line joins to a path. ...
... = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.lineWidth = 20; ctx.lineJoin = 'round'; ctx.beginPath(); ctx.moveTo(20, 20); ctx.lineTo(190, 100); ctx.lineTo(280, 20); ctx.lineTo(280,
150); ctx.stroke(); Result Comparison of line joins The example below draws three different paths, demonstrating each of the three lineJoin options. ...
...etElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.lineWidth = 20; ctx.lineJoin = 'round'; ctx.beginPath(); ctx.moveTo(20, 20); ctx.lineTo(190, 100); ctx.lineTo(280, 20); ctx.lineTo(280,
150); ctx.stroke(); Result Comparison of line joins The example below draws three different paths, demonstrating each of the three lineJoin options. ...
...neJoin options. <canvas id="canvas" width="
150" height="
150"></canvas> var ctx = document.getElementById('canvas').getContext('2d'); var lineJoin = ['round', 'bevel', 'miter']; ctx.lineWidth = 10; for (let i = 0; i < lineJoin.length; i++) { ctx.lineJoin = lineJoin[i]; ctx.beginPath(); ctx.moveTo(-5, 5 + i * 40); ctx.lineTo(35, 45 + i * 40); ctx.lineTo(75, 5 + i * 40); ctx.lineTo(1
15, 45 + i * 40); ctx.lineTo(
155, 5 + i * 40); ctx.stroke(); } ScreenshotLive sample Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.lineJoin' in that specification. Living Standard ...
CanvasRenderingContext2D.setLineDash() - Web APIs
hich describe the pattern. Note: To return to using solid lines, set the line dash list to an empty array. Syntax ctx.setLineDash(segments); Parameters segments An Array of numbers that specify distances to alternately draw a line and a gap (in coordinate space units). If the number of elements in the array is odd, the elements of the array get copied and concatenated. For example, [5,
15, 25] will become [5,
15, 25, 5,
15, 25]. If the array is empty, the line dash list is cleared and line strokes return to being solid. Return value undefined. Examples Basic example This example uses the setLineDash() method to draw a dashed line above a solid line. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getCont...
... the line dash list is cleared and line strokes return to being solid. Return value undefined. Examples Basic example This example uses the setLineDash() method to draw a dashed line above a solid line. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); // Dashed line ctx.beginPath(); ctx.setLineDash([5,
15]); ctx.moveTo(0, 50); ctx.lineTo(300, 50); ctx.stroke(); // Solid line ctx.beginPath(); ctx.setLineDash([]); ctx.moveTo(0, 100); ctx.lineTo(300, 100); ctx.stroke(); Result Some common patterns This example illustrates a variety of common line dash patterns. HTML <canvas id="canvas"></canvas> JavaScript The drawDashedLine() function created below makes the drawing of multiple dashed li...
...pt The drawDashedLine() function created below makes the drawing of multiple dashed lines simple. It receives a pattern array as its only parameter. ...
...tern array as its only parameter. function drawDashedLine(pattern) { ctx.beginPath(); ctx.setLineDash(pattern); ctx.moveTo(0, y); ctx.lineTo(300, y); ctx.stroke(); y += 20; } const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); let y =
15; drawDashedLine([]); drawDashedLine([1, 1]); drawDashedLine([10, 10]); drawDashedLine([20, 5]); drawDashedLine([
15, 3, 3, 3]); drawDashedLine([20, 3, 3, 3, 3, 3, 3, 3]); drawDashedLine([12, 3, 3]); // Equals [12, 3, 3, 12, 3, 3] Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.setLineDash' in that specification. Living Standard ...
FileSystem - Web APIs
ng the the DataTransferItem.webkitGetAsEntry() method. ...
...ble for use in file or folder picker panels (such as when you use an <input> element with the HTMLInputElement.webkitdirectory attribute.Firefox Full support 50IE No support NoOpera Full support
15Prefixed Full support
15Prefixed Prefixed Implemented with the vendor prefix: webkitSafari Full support 11.1WebView Android Full support <=37Alternate Name Full support <=37Alternate Name Alternate Name Uses the non-standard name: DOMFileSystemChrome Android Full support ...
... 1.0Prefixed Prefixed Implemented with the vendor prefix: webkitnameChrome Full support 7Edge Full support <=18Firefox Full support 50IE No support NoOpera Full support
15Safari Full support 11.1WebView Android Full support <=37Chrome Android Full support 18Firefox Android Full support 50Opera Android Full support 14Safari iOS F...
... Android Full support 1.0rootChrome Full support 7Edge Full support <=18Firefox Full support 50IE No support NoOpera Full support
15Safari Full support 11.1WebView Android Full support <=37Chrome Android Full support 18Firefox Android Full support 50Opera Android Full support 14Safari iOS F...
HTMLTimeElement.dateTime - Web APIs
e and time value. ...
...lue. ...
... Valid yearless date string MM-DD 11-12 Valid time string HH:MM HH:MM:SS HH:MM:SS.mmm 23:59 12:
15:47 12:
15:52.998 Valid local date and time string YYYY-MM-DD HH:MM YYYY-MM-DD HH:MM:SS YYYY-MM-DD HH:MM:SS.mmm YYYY-MM-DDTHH:MM YYYY-MM-DDTHH:MM:SS YYYY-MM-DDTHH:MM:SS.mmm 2013-12-25 11:12 1972-07-25 13:43:07 1941-03-
15 07:06:23.678 2013-12-25T11:12 1972-07-25T13:43:07 1941-03-
15T07:06:23.678 Valid time-zone offset string Z +HHMM +HH:MM -HHMM -HH:MM Z +0200 +04:30 -0300 -08:00 Valid global date and time string Any combination of a valid local date and time string followed by a valid time-zone offset string 2013-12-25 11:12+0200 1972-07...
...:12 1972-07-25T13:43:07 1941-03-
15T07:06:23.678 Valid time-zone offset string Z +HHMM +HH:MM -HHMM -HH:MM Z +0200 +04:30 -0300 -08:00 Valid global date and time string Any combination of a valid local date and time string followed by a valid time-zone offset string 2013-12-25 11:12+0200 1972-07-25 13:43:07+04:30 1941-03-
15 07:06:23.678Z 2013-12-25T11:12-08:00 Valid week string YYYY-WWW 2013-W46 Four or more ASCII digits YYYY 2013, 0001 Valid duration string PdDThHmMsS PdDThHmMs.XS PdDThHmMs.XXS PdDThHmMs.XXXS PThHmMsS PThHmMs.XS PThHmMs.XXS PThHmMs.XXXS ww dd hh mm ss P12DT7H12M13S P12DT7H12M13.3S P12DT7H12M13.45S P12DT7H12...
IDBFactory - Web APIs
-- 57Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25 ...
...-- ?Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25Firefox Android ...
...-- ?Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25Firefox Android ...
...-- ?Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25Firefox Android ...
Border-radius generator - CSS: Cascading Style Sheets
pic="bottom-left-h" data-unit=" px" data-sensivity="2"></div> </div> </div> </div> </div> <div id="controls" class="group section"> <div class="group section"> <div id="dimensions"> <div class="ui-input-slider" data-topic="width" data-info="width" data-unit=" px" data-min="
150" data-max="700" data-sensivity="1"></div> <div class="ui-input-slider" data-topic="height" data-info="height" data-unit=" px" data-min="75" data-max="350" data-sensivity="1"></div> </div> <div id="output"></div> </div> <div class="group section"> <div id="radius-lock"> <div class="info"> ro...
... GRID OF TEN * ========================================================================== */ .span_12 { width: 100%; } .span_11 { width: 91.46%; } .span_10 { width: 83%; } .span_9 { width: 74.54%; } .span_8 { width: 66.08%; } .span_7 { width: 57.62%; } .span_6 { width: 49.16%; } .span_5 { width: 40.7%; } .span_4 { width: 32.24%; } .span_3 { width: 23.78%; } .span_2 { width:
15.32%; } .span_1 { width: 6.86%; } /* SECTIONS * ========================================================================== */ .section { clear: both; padding: 0px; margin: 0px; } /* GROUPING * ========================================================================== */ .group:before, .group:after { content: ""; display: table; } .group:after { clear:both; } .group {...
...*****************************************************/ /* * Preview Area */ #preview { height: 500px; border: 1px solid #CCC; border-radius: 3px; text-align: center; overflow: hidden; position: relative; } #preview .content { width: 100%; height: 100%; display: block; } #preview input { color: #333; border: 1px solid #CCC; border-radius: 3px; } #subject { width: 400px; height:
150px; margin: 0 auto; border: 3px solid #C60; background: #FFF; position: relative; } .radius { width: 50%; height: 50%; border: 1px solid #CCC; display: none; position: absolute; z-index: 1; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .handle { width: 16px; height: 16px; position: absolute; z-index: 2; } .handle-top-left { top: -12px;...
... #bottom-right .radius { border-bottom-right-radius: 100%; bottom: 0; right: 0; } /* BOTTOM lEFT */ #bottom-left { bottom: 0; left: 0; } #bottom-left .radius { border-bottom-left-radius: 100%; bottom: 0; } /* INPUT SLIDERS */ #preview .ui-input-slider { margin: 10px; position: absolute; z-index: 10; } #radius-ui-sliders { width: 100%; height: 100%; min-height: 75px; min-width:
150px; padding: 20px 50px; top: -20px; left: -50px; position: relative; } #tlr { top: -30px; left: -50px; display: none; } #tlw { top: -30px; left: 30px; } #tlh { top: 20px; left: -50px; } #trr { top: -30px; right: -50px; display: none; } #trw { top: -30px; right: 30px; } #trh { top: 20px; right: -50px; } #brr { bottom: -30px; right: -50px; display: none; } #brw { botto...
Linear-gradient Generator - CSS: Cascading Style Sheets
-webkit-box-sizing: border-box; box-sizing: border-box; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-dropdown:hover { cursor: pointer; background-color: #208B20; } /* Dropdown Select Button */ .ui-dropdown-select { padding: 0 0.75em; color: #FFF; line-height: 2em; } /* Dropdown List */ .ui-dropdown-list { width: 100%; height:
150px; max-height:
150px; margin: 0; padding: 0 0.3em; border: 1px solid #3490D2; border-color: #208B20; background: #666; background-color: #EEF1F5; color: #000; position: absolute; top: 100%; left: 0; z-index: 100; overflow: hidden; transition: all 0.3s; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .ui-dropdown-list:hover { overflow:...
... } #controls .section .title { width: 90%; margin: 0 0 10px 0; padding: 5px; border-bottom: 1px solid #DDD; font-size: 18px; color: #777; } #controls .property { width: 100%; height: 24px; margin: 10px 0; padding: 3px 0; display: table; } #controls .property > * { float: left; } #controls .property .name { width: 90px; padding: 0px 10px 0px 0px; text-align: right; line-height:
150%; } /* Button */ #controls .button { height: 24px; padding: 0 10px; background-color: #379B4A; border-radius: 3px; font-size: 14px; color: #FFF; display: inline; float: left; } #controls .button[data-state='disabled'] { background-color: #CCC !important; color: #777 !important; } #controls .button[data-state='disabled']:hover { background-color: #CCC !important; cursor: default !
...px 0 0 0; } #controls .ui-input-slider[data-topic="axis-rotation"] { } #controls .ui-dropdown { width: 130px; height: 24px; } #controls .ui-dropdown-select { line-height: 24px; } #controls .ui-dropdown-list { height: 66px; line-height: 2.5em; overflow: hidden; } #delete-axis { margin: 0 38px 0 0; float: right !important; } /* Tool controls */ #tool-section .property .name { width:
150px; } #canvas-bg { width: 16px; height: 16px; margin: 5px; background: url("images/toggle-background.png") center right no-repeat; } #canvas-bg:hover { cursor: pointer; } #canvas-bg[data-alpha='false'] { background-position: center left; } #canvas-bg[data-alpha='true'] { background-position: center right; } /* Order gradients */ #order { margin-left: 24px; } #gradient-axes { width...
...ght: 16px; margin: 5px; background: url("images/toggle-background.png") center right no-repeat; } #canvas-bg:hover { cursor: pointer; } #canvas-bg[data-alpha='false'] { background-position: center left; } #canvas-bg[data-alpha='true'] { background-position: center right; } /* Order gradients */ #order { margin-left: 24px; } #gradient-axes { width: 100%; height: 30px; padding: 0 0 0
15px; display: table; position: relative; } #gradient-axes .axis { width: 50px; height: 20px; margin: 5px 0; background-color: #DDD; text-align: center; float: left; transition: all 0.3s; position: absolute; } #gradient-axes .axis:hover { margin: 2px 0; height: 26px; background-color: #CCC; cursor: pointer; } #gradient-axes .axis[data-state='active'] { margin: 2px 0; height: 26px;...
transform-box - CSS: Cascading Style Sheets
transform-box: fill-box is used to make the the transform-origin the center of the bounding box, so the rectangle spins in place. Without it, the transform origin is the center of the SV...
...transform-box: fill-box is used to make the the transform-origin the center of the bounding box, so the rectangle spins in place. Without it, the transform origin is the center of the SVG c...
... Specifications Specification Status Comment CSS Transforms Level 1The definition of 'transform-box' in that specification. Worki...
... Specifications Specification Status Comment CSS Transforms Level 1The definition of 'transform-box' in that specification. Working Dr...
transition-delay - CSS: Cascading Style Sheets
ition-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 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; transitio...
...ransition-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-transition-timing-function: linear; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:1s; transition-tim...
...ransition-duration:2s; -webkit-transition-delay:2s; -webkit-transition-timing-function: linear; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay: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-delay:2s; -webkit-transition-timing-function: linear; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:2s; transition-tim...
...duration:2s; -webkit-transition-delay:4s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:4s; transition-timing-function: ease-in-out; } .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:4s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:4s; transitio...
<input type="range"> - HTML: Hypertext Markup Language
range control: <input type="range" id="volume" min="0" max="11" value="7" step="1"> ScreenshotLive sample This control is horizontal (at least on most if not all major browers; others might vary). Standards According to the specification, making it vertical requires adding CSS to change the dimensions of the control so that it's taller than it is wide, like this: CSS #volume { height:
150px; width: 50px; } HTML <input type="range" id="volume" min="0" max="11" value="7" step="1"> Result ScreenshotLive sample Unfortunately, no major browsers currently support vertical range controls directly. transform: rotate(-90deg) You can, however, create a vertical range control by drawing a horizontal range control on its side. The easiest way is to use CSS: by applying a transform...
...lue="7" step="1"> </div> CSS Now we need some CSS. First is the CSS for the wrapper itself; this specifies the display mode and size we want so that the page lays out correctly; in essence, it's reserving an area of the page for the slider so that the rotated slider fits into the reserved space without making a mess of things. .slider-wrapper { display: inline-block; width: 20px; height:
150px; padding: 0; } Then comes the style information for the <input> element within the reserved space: .slider-wrapper input { width:
150px; height: 20px; margin: 0; transform-origin: 75px 75px; transform: rotate(-90deg); } The size of the control is set to be
150 pixels long by 20 pixels tall. The margins are set to 0 and the transform-origin is shifted to the middle of the space ...
...Offsetting the origin by 75px on each axis means we will rotate around the center of that space. Finally, we rotate counter-clockwise by 90?. ...
...Offsetting the origin by 75px on each axis means we will rotate around the center of that space. Finally, we rotate counter-clockwise by 90?. The result: a range input which is rotated so the maximum value is at the top and the minimum value is at the bottom. ...
<nextid>: The NeXT ID element (Obsolete) - HTML: Hypertext Markup Language
<HEAD> <TITLE> ... whatever ... </TITLE> <LINK, META, BASE, etc. ...
... <A NAME="z12" HREF="#z18">NINTH SECTION HEADING</A> <A NAME="z13" HREF="#z19">TENTH SECTION HEADING</A> <H2><A NAME="z4">FIRST SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z5">SECOND SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z14">NEWLY INSERTED THIRD SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z
15">NEWLY INSERTED FOURTH SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z6">ORIGINAL THIRD (NOW FIFTH) SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z7">ORIGINAL FOURTH (NOW SIXTH) SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z16">SEVENTH SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z17">EIGHTH SECT...
... <HEAD> <TITLE> ... whatever ... </TITLE> <LINK, META, BASE, etc. ...
...="z22" HREF="#z27">NEW ELEVENTH SECTION HEADING</A> <A NAME="e23" HREF="#z28">NEW TWELFTH SECTION HEADING</A> <H2><A NAME="z4">FIRST SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z5">SECOND SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z14">NEWLY INSERTED THIRD SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z
15">NEWLY INSERTED FOURTH SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z6">ORIGINAL THIRD (NOW FIFTH) SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z16">SEVENTH (NOW SIXTH) SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z17">EIGHTH (NOW SEVENTH) SECTION HEADING</A></H1><P> ... whatever ... </P> <H2><A NAME="z18">NINTH...
Browser detection using the user agent - HTTP
That's why brows...
... to trigger false-positives when detecting the rendering engine. Must contain Gecko Gecko/xyz WebKit AppleWebKit/xyz Pay attention, WebKit browsers add a 'like Gecko' string that may trigger false positive for Gecko if the detection is not careful. Presto Opera/xyz Note: Presto is no longer used in Opera browser builds >= version
15 (see 'Blink') Trident Trident/xyz Internet Explorer put this token in the comment part of the User Agent String EdgeHTML Edge/xyz The non-Chromium Edge puts its engine version after the Edge/ token, not the application version. Note: EdgeHTML is no longer used in Edge browser builds >= version 79 (see 'Blink'). Blink Chrome/xyz Rendering eng...
...refox) Mobile or Tablet token in the comment. Mozilla/5.0 (Android; Mobile; rv:13.0) Gecko/13.0 Firefox/13.0 WebKit-based (Android, Safari) Mobile Safari token outside the comment. ...
... Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0) Edge on Windows 10 Mobile Mobile/xyz & Edge/ tokens outside the comment. ...
Equality comparisons and sameness - JavaScript
There are four equality algorithms in ES20
15: Abstract Equality Comparison (==) Strict Equality Comparison (===): used by Array.prototype.indexOf, Array.prototype.lastIndexOf, and case-matching SameValueZero: used by %TypedArray% and ArrayBuffer constructors, as well as Map and Set operations, and also String.prototype.includes and Array.prototype.includes since ES2016 SameValue: used in all other places JavaScript provides three different value-comparison operations: === - Strict Equality Comparison ("strict equality", "identity", "triple equals") == - Abstract Equality Comparison ("loose equality", "double equals") Object.is provides SameValue (new in ES20
15). Which operation you choose depends on what sort of comparison you are looking to perform. Briefly: double equals...
...ract Equality Algorithm. The === comparison is 11.9.6, The Strict Equality Algorithm. (Go look at these. They're brief and readable. Hint: read the strict equality algorithm first.) ES5 also describes, in Section 9.12, The SameValue Algorithm for use internally by the JS engine. It's largely the same as the Strict Equality Algorithm, except that 11.9.6.4 and 9.12.4 differ in handling Numbers. ...
...For example, someone might say that double equals is an extended version of triple equals, because the former does everything that the latter does, but with type conversion on its operands. E.g., 6 == "6". ...
...might say that double equals is the baseline, and triple equals is an enhanced version, because it requires the two operands to be the same type, so it adds an extra constraint. Which one is the better model for understanding depends on how you choose to view things.) However, this way of thinking about the built-in sameness operators is not a model that can be stretched to allow a place for ES20
15's Object.is on this "spectrum". Object.is isn't simply "looser" than double equals or "stricter" than triple equals, nor does it fit somewhere in between (i.e., being both stricter than double equals, but looser than triple equals). We can see from the sameness comparisons table below that this is due to the way that Object.is handles NaN. Notice that if Object.is(NaN, NaN) evaluated to false, we...
Functions - JavaScript
" myConcat('. ', 'sage', 'basil', 'oregano', 'pepper', 'parsley'); Note: The arguments variable is "array-like", but not an array. It is array-like in that it has a numbered index and a length property. However, it does not possess all of the array-manipulation methods. See the Function object in the JavaScript reference for more information. ...
... In the following example, if no value is provided for b, its value would be undefined when evaluating a*b, and a call to multiply would normally have returned NaN. ...
... they are undefined. In the following example, if no value is provided for b, its value would be undefined when evaluating a*b, and a call to multiply would normally have returned NaN. However, this is prevented by the second line in this example: function multiply(a, b) { b = typeof b !== 'undefined' ? b : 1; return a * b; } multiply(5); // 5 With default parameters (post-ECMAScript 20
15) With default parameters, a manual check in the function body is no longer necessary. You can simply put 1 as the default value for b in the function head: function multiply(a, b = 1) { return a * b; } multiply(5); // 5 For more details, see default parameters in the reference. Rest parameters The rest parameter syntax allows us to represent an indefinite number of arguments as an array. ...
...e code of an Object. isFinite() The global isFinite() function determines whether the passed value is a finite number. If needed, the parameter is first converted to a number. isNaN() The isNaN() function determines whether a value is NaN or not. Note: coercion inside the isNaN function has interesting rules; you may alternatively want to use Number.isNaN(), as defined in ECMAScript 20
15, or you can use typeof to determine if the value is Not-A-Number. parseFloat() The parseFloat() function parses a string argument and returns a floating point number. parseInt() The parseInt() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral systems). decodeURI() The decodeURI() function decodes a Uniform Resource ...
Indexed collections - JavaScript
a RangeError, if N is a non-whole number whose fractional portion is non-zero. The following example illustrates this behavior. let arr = Array(9.3) // RangeError: Invalid array length If your code needs to create arrays with single elements of an arbitrary data type, it is safer to use array literals. Alternatively, create an empty array first before adding the single element to it. In ES20
15, you can use the Array.of static method to create arrays with single element. let wisenArray = Array.of(9.3) // wisenArray contains only one element 9.3 Referring to array elements Because elements are also properties, you can access the using property accessors. Suppose you define the following array: let myArray = ['Wind', 'Rain', 'Fire'] You can refer to the first element of the array ...
...te: If you supply a non-integer value to the array operator in the code above, a property will be created in the object representing the array, instead of an array element. let arr = [] arr[3.4] = 'Oranges' console.log(arr.length) // 0 console.log(arr.hasOwnProperty(3.4)) // true You can also populate an array when you create it: let myArray = new Array('Hello', myVar, 3.14
159) // OR let myArray = ['Mango', 'Apple', 'Orange'] Understanding length At the implementation level, JavaScript's arrays actually store their elements as standard object properties, using the array index as the property name. The length property is special. It always returns the index of the last element plus one. (In the example below, 'Dusty' is indexed at 30, so cats.length returns 30 + 1)...
... of the array, and ensures that the div variable is reassigned to the current item each time around the loop for added convenience. The forEach() method provides another way of iterating over an array: let colors = ['red', 'green', 'blue'] colors.forEach(function(color) { console.log(color) }) // red // green // blue Alternatively, you can shorten the code for the forEach parameter with ES20
15 Arrow Functions: let colors = ['red', 'green', 'blue'] colors.forEach(color => console.log(color)) // red // green // blue The function passed to forEach is executed once for every item in the array, with the array item passed as the argument to the function. Unassigned values are not iterated in a forEach loop. Note that the elements of an array that are omitted when the array is defined are...
... int32_t Uint32Array 0 to 4294967295 4 32-bit unsigned integer unsigned long uint32_t Float32Array 1.2x10-38 to 3.4x1038 4 32-bit IEEE floating point number (7 significant digits e.g., 1.1234567) unrestricted float float Float64Array 5.0x10-324 to 1.8x10308 8 64-bit IEEE floating point number (16 significant digits e.g., 1.123...
15) unrestricted double double BigInt64Array -263 to 263-1 8 64-bit two's complement signed integer bigint int64_t (signed long long) BigUint64Array 0 to 264-1 8 64-bit unsigned integer bigint uint64_t (unsigned long long) For more information, see JavaScript typed arrays and the reference documentation for the different TypedArray objects...
JavaScript language resources - JavaScript
e also the E4X errata. ECMA-262 5.1 Edition PDF, HTML June 2011 This version is fully aligned with the 3rd edition of the international standard ISO/IEC 16262:2011. It includes ES5 errata fixes, no new features. ...
...ta. ECMA-262 5.1 Edition PDF, HTML June 2011 This version is fully aligned with the 3rd edition of the international standard ISO/IEC 16262:2011. It includes ES5 errata fixes, no new features. ...
...on is fully aligned with the 3rd edition of the international standard ISO/IEC 16262:2011. It includes ES5 errata fixes, no new features. ...
... with the 3rd edition of the international standard ISO/IEC 16262:2011. It includes ES5 errata fixes, no new features. ...
Array.prototype.lastIndexOf() - JavaScript
the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of lastIndexOf in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming Object, TypeError, Number, Math.floor, Math.abs, and Math.min have their original values. ...
...ndard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of lastIndexOf in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming Object, TypeError, Number, Math.floor, Math.abs, and Math.min have their original values. ...
...ting the following code at the beginning of your scripts, allowing use of lastIndexOf in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming Object, TypeError, Number, Math.floor, Math.abs, and Math.min have their original values. ...
...e following code at the beginning of your scripts, allowing use of lastIndexOf in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming Object, TypeError, Number, Math.floor, Math.abs, and Math.min have their original values. ...
Date.parse() - JavaScript
It is not recommended to use Date.parse as until ES5, parsing of strings was entirely implementation dependent. There are still many differences in how different hosts parse date strings, therefore date strings should be manually parsed (a library can help if many different formats are to be accommodated). ...
...ining illegal element values in ISO formatted strings shall cause Date.parse() to return NaN. However, invalid values in date strings not recognized as simplified ISO format as defined by ECMA-262 may or may not result in NaN, depending on the browser and values provided, e.g.: // Non-ISO string with invalid date values new Date('23/25/2014'); will be treated as a local date of 25 November, 20
15 in Firefox 30 and an invalid date in Safari 7. However, if the string is recognized as an ISO format string and it contains invalid values, it will return NaN in all browsers compliant with ES5 and later: // ISO string with invalid values new Date('2014-25-23').toISOString(); // throws "RangeError: invalid date" in all ES5-compliant browsers SpiderMonkey's implementation-specific heuristic ca...
...; // returns: NaN Differences in assumed time zone This section contains implementation-specific behavior that can be inconsistent across implementations. Given a non-standard date string of "March 7, 2014", parse() assumes a local time zone, but given a simplification of the ISO 8601 calendar date extended format such as "2014-03-07", it will assume a time zone of UTC (ES5 and ECMAScript 20
15). Therefore Date objects produced using those strings may represent different moments in time depending on the version of ECMAScript supported unless the system is set with a local time zone of UTC. This means that two date strings that appear equivalent may result in two different values depending on the format of the string that is being converted. Examples Using Date.parse() The following c...
...e objects produced using those strings may represent different moments in time depending on the version of ECMAScript supported unless the system is set with a local time zone of UTC. This means that two date strings that appear equivalent may result in two different values depending on the format of the string that is being converted. Examples Using Date.parse() The following calls all return
1546300800000. The first according to ES5 will imply UTC time, and the others are specifying UTC timezone via the ISO date specification (Z and +00:00) Date.parse("2019-01-01") Date.parse("2019-01-01T00:00:00.000Z") Date.parse("2019-01-01T00:00:00.000+00:00") The following call, which does not specify a time zone will be set to 2019-01-01 at 00:00:00 in the local timezone of the system. Date.par...
Template literals (Template strings) - JavaScript
Syntax `string text` `string text line 1 string text line 2` `string text ${expression} string text` tag`string text ${expression} string text` Description Template literals are enclosed by the backtick (` `) (grave accent) character instead of double or single quotes. Template literals can contain placeholders. ...
...Within a...
...l strings, you would use the following syntax: let a = 5; let b = 10; console.log('Fifteen is ' + (a + b) + ' and\nnot ' + (2 * a + b) + '.'); // "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: let a = 5; let b = 10; console.log(`Fifteen is ${a + b} and not ${2 * a + b}.`); // "Fifteen is
15 and // not 20." Nesting templates In certain cases, nesting a template is the easiest (and perhaps more readable) way to have configurable strings. Within a backticked template, it is simple to allow inner backticks simply by using them inside a placeholder ${ } within the template. For instance, if condition a is true, then return this templated literal. In ES5: let classes = 'header'; clas...
...re readable) way to have configurable strings. Within a backticked template, it is simple to allow inner backticks simply by using them inside a placeholder ${ } within the template. For instance, if condition a is true, then return this templated literal. In ES5: let classes = 'header'; classes += (isLargeScreen() ? '' : item.isCollapsed ? ' icon-expander' : ' icon-collapser'); In ES20
15 with template literals and without nesting: const classes = `header ${ isLargeScreen() ? '' : (item.isCollapsed ? 'icon-expander' : 'icon-collapser') }`; In ES20
15 with nested template literals: const classes = `header ${ isLargeScreen() ? '' : `icon-${item.isCollapsed ? 'expander' : 'collapser'}` }`; Tagged templates A more advanced form of template literals are tagged templates. Tags ...
Web video codec guide - Web media technologies
of levels are specified, each defining limits on a range of attributes of the video. These attributes include frame dimensions, image area in pixels, display and decode rates, average and maximum bit rates, and limits on the number of tiles and tile columns used in the encoding/decoding process. For example, level AV1 level 2.0 offers a maximum frame width of 2048 pixels and a maximum height of 1
152 pixels, but its maximum frame size in pixels is 147,456, so you can't actually have a 2048x1
152 video at level 2.0. It's worth noting, however, that at least for Firefox and Chrome, the levels are actually ignored at this time when performing software decoding, and the decoder just does the best it can to play the video given the settings provided. For compatibility's sake going forward, however...
...ganizations and companies, including Telenor, Fujitsu, Motorola, Samsung, Hitachi, Polycom, Qualcomm, and so on. To use H.263, you are legally obligated to obtain the appropriate licenses. ...
...26, 29.97, 30, 50, 59.94, 60 Compression Lossy DCT-based algorithm Supported frame sizes Abbr. Level name Maximum frame size LL Low Level 352 x 288 pixels ML Main Level 720 x 576 pixels H-14 High 1440 1440 x 1
152 pixels HL High Level 1920 x 1
152 pixels Supported color modes Y'CbCr with 4:2:0 chroma subsampling in most profiles; the "High" and "4:2:2" profiles support 4:2:2 chroma subsampling as well. HDR support No Variable Frame Rate (VFR) support No Browser compatibility Fe...
...Patents are licensed by MPEG LA. Theora Theora, developed by Xiph.org, is an open and free video codec which may be used without royalties or licensing. Theora is comparable in qual...
end - SVG: Scalable Vector Graphics
a time value as parameter. The time syntax is based upon the syntax defined in ISO 8601. indefinite The end of the animation will be determined by an SVGAnimationElement.endElement() method call. ...
... Examples Offset example <svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1"> <!-- animated rectangles --> <rect x="10" y="35" height="
15" width="0"> <animate attributeType="XML" attributeName="width" to="100" begin="0s" end="8s" fill="freeze" /> </rect> <rect x="10" y="60" height="
15" width="0"> <animate attributeType="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="...
...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" fill="freeze" /> </rect> <!-- trigger --> <rect id="endButton" style="cursor:pointer;" x="19.5" y="62.5" rx="5" height="25" width="80" fill="#EFEFEF" stroke="black" stroke-widt...
...e x1="10" y1="30" x2="110" y2="30" stroke="grey" stroke-width=".5" /> <line x1="10" y1="55" x2="110" y2="55" stroke="grey" stroke-width=".5" /> </svg> Accesskey 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" from="0" to="100" begin="0s" end="accessKey(e)" dur="8s" repeatCount="indefinite" fill="freeze" /> </rect> <!-- trigger --> <text x="60" y="80" text-anchor="middle" style="pointer-events:none;">Hit the "s" key</text> <!-- grid --> <text x="10" y="20" text-anchor...
Example - SVG: Scalable Vector Graphics
havior. This is done completely in W3C Standards-XHTML, SVG, and JavaScript-no Flash or any vendor-specific extensions. This example should work in Firefox 1.5 and above. ...
... First, each mote tries to move towards the cursor, and second each mote tries to move away from the average mote position. Combined, we get this very natural looking behavior. ...
...email; document.getElementById('emailme').href = 'mailto:'+email; ]]> </script> This software is free for you to use in any way whatsoever, and comes with no warranty at all. </div> <form action="" onsubmit="return false;"> <p> <label>Number of motes:</label> <input id='num_motes' value='5'/> <br/> <label>Max. Velocity:</label> <input id='max_velocity' value='
15'/> <br/> <label>Attraction to cursor:</label> <input id='attract_cursor' value='6'/> <br/> <label>Repulsion from peers:</label> <input id='repel_peer' value='5'/> <br/> </p> </form> <script type='text/javascript'> <![CDATA[ // Array of motes var motes; // Get the display element. function Display() { return document.getElementById('display'); }...
...ensions of the display element. ...
Basic shapes - SVG: Scalable Vector Graphics
"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"/> <polyline points="60 110 65 120 70 1
15 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 T90,230" fill="none" stroke="blu...
...in maths) of the circle separately. <ellipse cx="75" cy="75" rx="20" ry="5"/> rx The x radius of the ellipse. ry The y radius of the ellipse. cx The x position of the center of the ellipse. cy The y position of the center of the ellipse. Line The <line> element takes the positions of two points as parameters and draws a straight line between them. ...
...Each number must be separated by a space, comma, EOL, or a line feed character. Each point must contain two numbers: an x coordinate and a y coordinate. So, the list (0,0), (1,1), and (2,2) would be written as 0, 0 1, 1 2, 2. ...
...Each number must be separated by a space, comma, EOL, or a line feed character. Each point must contain two numbers: an x coordinate and a y coordinate. So, the list (0,0), (1,1), and (2,2) would be written as 0, 0 1, 1 2, 2. ...
WebAssembly Concepts - WebAssembly
ND WebAssembly. The different code types can call each other as required -- the WebAssembly JavaScript API wraps exported WebAssembly code with JavaScript functions that can be called normally, and WebAssembly code can import and synchronously call normal JavaScript functions. In fact, the basic unit of WebAssembly code is called a module and WebAssembly modules are symmetric in many ways to ES20
15 modules. WebAssembly key concepts There are several key concepts needed to understand how WebAssembly runs in the browser. All of these concepts are reflected 1:1 in the WebAssembly JavaScript API. Module: Represents a WebAssembly binary that has been compiled by the browser into executable machine code. A Module is stateless and thus, like a Blob, can be explicitly shared between windows an...
...nd how WebAssembly runs in the browser. All of these concepts are reflected 1:1 in the WebAssembly JavaScript API. Module: Represents a WebAssembly binary that has been compiled by the browser into executable machine code. A Module is stateless and thus, like a Blob, can be explicitly shared between windows and workers (via postMessage()). A Module declares imports and exports just like an ES20
15module. Memory: A resizable ArrayBuffer that contains the linear array of bytes read and written by WebAssembly's low-level memory access instructions. Table: A resizable typed array of references (e.g. to functions) that could not otherwise be stored as raw bytes in Memory (for safety and portability reasons). Instance: A Module paired with all the state it uses at runtime including a Memory, ...
...ear array of bytes read and written by WebAssembly's low-level memory access instructions. Table: A resizable typed array of references (e.g. to functions) that could not otherwise be stored as raw bytes in Memory (for safety and portability reasons). Instance: A Module paired with all the state it uses at runtime including a Memory, Table, and set of imported values. An Instance is like an ES20
15 module that has been loaded into a particular global with a particular set of imports. The JavaScript API provides developers with the ability to create modules, memories, tables, and instances. Given a WebAssembly instance, JavaScript code can synchronously call its exports, which are exposed as normal JavaScript functions. Arbitrary JavaScript functions can also be synchronously called by Web...
...Assembly code by passing in those JavaScript functions as the imports to a WebAssembly instance. Since JavaScript has complete control over how WebAssembly code is downloaded, compiled and run, JavaScript developers could even think of WebAssembly as just a JavaScript feature for efficiently generating high-performance functions. In the future, WebAssembly modules will be loadable just like ES20
15 modules (using <script type='module'>), meaning that JavaScript will be able to fetch, compile, and import a WebAssembly module as easily as an ES20
15 module. How do I use WebAssembly in my app? Above we talked about the raw primitives that WebAssembly adds to the Web platform: a binary format for code and APIs for loading and running this binary code. Now let's talk about how we can use these ...
widget - Archive of obsolete content
}); player.port.on("pause", function() { console.log("pausing"); }); player.port.on("stop", function() { console.log("stopping"); }); Attaching panels to widgets You can supply a panel to the widget's constructor: if you do this, the panel is automatically displayed when the user clicks the widget. data = require("sdk/self").data var clockPanel = require("sdk/panel").Panel({ width:2
15, height:160, contentURL: data.url("clock.html") }); require("sdk/widget").Widget({ id: "open-clock-btn", label: "Clock", contentURL: data.url("History.png"), panel: clockPanel }); Note that this is, at the moment, the only way you can attach a panel to a widget. You must supply the panel in the widget's constructor for it to work. If you assign the panel to the widget after constru...
...g"), panel: clockPanel }); Note that this is, at the moment, the only way you can attach a panel to a widget. You must supply the panel in the widget's constructor for it to work. ...
... Private windows If your add-on has not opted into private browsing, then your widget will not appear in any...
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
avaScript lacks functions for opening files and character-code conversion, among other things. A different mechanism is needed to perform these functions. Internet Explorer handles this using ActiveX; in Firefox, we use the Cross-Platform Component Object Model, or XPCOM. Due to deprecation of enablePrivilege this functionality can not be used in web pages. EnablePrivilege is disabled in Firefox
15 and will be removed in Firefox 17. About XPCOM XPCOM is a framework for developing platform-independent components. Components developed in line with that framework are referred to as XPCOM components, and sometimes the components are simply referred to as XPCOMs. Firefox itself includes a great number of XPCOM components, and they can be used in extensions as well. Sometimes an extension will...
... .createInstance(Components.interfaces.nsIBinaryOutputStream); binaryStream.setOutputStream(fileStream); binaryStream.writeByteArray(array , array.length); binaryStream.close(); fileStream.close(); Text file I/O Text files are read the same way streams are. If the text includes multi-byte characters, as is used in Japanese, you'll need to convert the character codes. ...
...convert the character codes. Text file input Listing
15 shows an example of opening a text file encoded as Shift-JIS (a double-byte character encoding for Japanese). Copy some Japanese text into a text file, save it as Shift-JIS, and put in the path to that file. The text will be displayed as-is. The text that you've read in is actually being represented internally as Unicode (UTF-16). ...
Providing Command-Line Options - Archive of obsolete content
e component implements two command line parameters: firefox.exe -myapp Opens a chrome window for My Application. firefox.exe -viewapp url Opens a chrome window for My Application and passes it an nsIURI object. ...
...ewapp url Opens a chrome window for My Application and passes it an nsIURI object. ...
...Typical command-line handlers use a // category that begins with the letter...
textbox (Toolkit autocomplete) - Archive of obsolete content
(or minResultsForPopup) attribute. open Type: boolean Gets and sets the value of the open attribute. popup New in Thunderbird 14 Requires SeaMonkey 2.11 Type: popup element Should be set to the popup element that should appear when the user clicks on the textbox. Note: This property is readonly in Thunderbird and SeaMonkey. ...
...1 Type: popup element Should be set to the popup element that should appear when the user clicks on the textbox. Note: This property is readonly in Thunderbird and SeaMonkey. popupOpen New in Thunderbird
15 Requires SeaMonkey 2.12 Type: boolean Indicates whether the popup is open or not. Set this property to open or close the popup. searchCount New in Thunderbird
15 Requires SeaMonkey 2.12 Type: integer Returns the number of search components used. This property is read only. searchParam New in Thunderbird
15 Requires SeaMonkey 2.12 Type: string Gets and sets the value of the autocompletesearchparam attribute. selectionEnd Type: integer Get or set the end of the selected portion of the field's text. Use in conjuction with the selectionStart p...
... Gets and sets the value of the size attribute. tabIndex Type: integer Gets and sets the value of the tabindex attribute. tabScrolling Type: boolean Gets and sets the value of the tabscrolling (or tabScrolling) attribute. textLength Type: integer Holds the length of the text entered in the textbox. This property is read-only. textValue New in Thunderbird
15 Requires SeaMonkey 2.12 Type: string Returns the content of the textbox. Equivalent to the value property. Note: Setting the value causes an input event to be generated without triggering autocompletion. timeout Type: integer Gets and sets the value of the timeout attribute. type Type: string Set to the value autocomplete to have an autocomplete textbox. value Type...
Textbox (XPFE autocomplete) - Archive of obsolete content
ast search resulted in no matches. open Type: boolean Gets and sets the value of the open attribute. popup New in Thunderbird 14 Requires SeaMonkey 2.11 Type: popup element Should be set to the popup element that should appear when the user clicks on the textbox. Note: This property is readonly in Thunderbird and SeaMonkey. popupOpen New in Thunderbird
15 Requires SeaMonkey 2.12 Type: boolean Indicates whether the popup is open or not. Set this property to open or close the popup. resultsPopup Type: popup element This property is set to the popup element that displays the results. searchCount New in Thunderbird
15 Requires SeaMonkey 2.12 Type: integer Returns the number of search components used. This property is read o...
...lean Indicates whether the popup is open or not. Set this property to open or close the popup. resultsPopup Type: popup element This property is set to the popup element that displays the results. searchCount New in Thunderbird
15 Requires SeaMonkey 2.12 Type: integer Returns the number of search components used. This property is read only. searchParam New in Thunderbird
15 Requires SeaMonkey 2.12 Type: string Gets and sets the value of the autocompletesearchparam attribute. searchSessions Obsolete since Gecko 26 Type: space-separated list of session names Gets the value of the searchSessions attribute. selectionEnd Type: integer Get or set the end of the selected portion of the field's text. Use in conjuction with the selectionStart property. The va...
... Gets and sets the value of the size attribute. tabIndex Type: integer Gets and sets the value of the tabindex attribute. tabScrolling Type: boolean Gets and sets the value of the tabscrolling (or tabScrolling) attribute. textLength Type: integer Holds the length of the text entered in the textbox. This property is read-only. textValue New in Thunderbird
15 Requires SeaMonkey 2.12 Type: string Returns the content of the textbox. Equivalent to the value property. Note: Setting the value causes an input event to be generated without triggering autocompletion. timeout Type: integer Gets and sets the value of the timeout attribute. type Type: string Gets and sets the value of the type attribute. userAction Type...
Adding more elements - Archive of obsolete content
A spacer has been added in between each element to separate them. These spacers have been given an explicit width of 10 pixels each. You will notice that if the window is resized, the textbox grows but the other components do not. You will also notice that the label was removed. If you resize the window vertically, the elements ...
...The first spacer adds extra spacing in between the title label and the search criteria elements. It might look nicer if there was a border around the search criteria. There are two ways to do this. We could use the CSS bor...
...on the box itself. We will use the latter method, however. A groupbox has the advantage that it draws a box with a nice beveled look, suitable for the current theme. Let us change the box into a groupbox: <groupbox orient="horizontal"> <caption label="Search Criteria"/> <menulist id="searchtype"> . . . <spacer style="width: 10px;"/> <textbox id="find-text" flex="1" style="min-width:
15em;"/> </groupbox> There are other cosmetic problems as well. We could also have the groupbox grow so that it extends vertically to the bottom of the box. Also, we could modify some of the margins so that the elements are positioned better. We will see more examples of the box model and some of its features as we continue to add elements throughout the tutorial. Find files example so far Sourc...
Why Well-Formed Web RSS Module is Popular - Syndicating Your Comments - Archive of obsolete content
with RSS feeds; through syndication. The RSS Well-Formed Web Module exists to fill this gap. ...
...<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/" > <channel> <title>Example</title> <description>An RSS Example with WFW</description> <lastBuildDate>Sun,
15 May 2005 13:02:08 -0500</lastBuildDate> <link>http://www.example.com</link> <item> <title>I like Root Beer</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:article:54321</guid> <pubDate>Sun,
15 May 2005 13:02:08 -0500</pubDate> <link>http://www.example.com/article/54321</link> <wfw:commentRss>http://www.example.com/feed/rss/54321/comments</wfw:commentRss> </item> <item> <title>Rain is Wet</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:article:54320</guid> <pubDate>Sun,
15 May 2005 10:55:12 -0500</pubDate> <link>http://www.example.com/article/54320</link> <w...
...is Wet</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:article:54320</guid> <pubDate>Sun,
15 May 2005 10:55:12 -0500</pubDate> <link>http://www.example.com/article/54320</link> <wfw:commentRss>http://www.example.com/feed/rss/54320/comments</wfw:commentRss> </item> <item> <title>Huh?!</title> <guid>d77d2e80-0487-4e8c-a35d-a93f12a0ff7d:article:54319</guid> <pubDate>Sun,
15 May 2005 08:14:11 -0500</pubDate> <link>http://www.example.com/article/54319</link> <wfw:commentRss>http://www.example.com/feed/rss/54319/comments</wfw:commentRss> </item> </channel> </rss> The <wfw:commentRss> element is the reason that the Well-Formed Web RSS Module is popular. This element lets you syndicate your comments. The URI in the <wfw:commentRss> element must point to an RSS...
Reference - Archive of obsolete content
remove the "Behavior in other versions" sections, and rename the "JavaScript 1.2" section headings to something like "Differences with JavaScript 1.2," as well as include a link to the yet-to-be-written JavaScript 1.2 page documenting the various oddities and deviations made in that version, something which I think we should do anyway. Maybe something like Main Article: JavaScript 1.2--Sevenspade
15:16, 6 July 2006 (PDT) As a side note, the ability to to specify different versions has come up again - now between versions 1.6 and 1.7. With <script type="application/javascript;version=1.7" />. See New_in_JavaScript_1.7#Using_JavaScript_1.7. This will impact the presentation of future examples if it hasn't already. --George3 11:47, 14 Sept 2006 (EDT) SGML comment hiding quirks SGM...
... Sun doc is corrent, then it should probably go in the window object methods. --Jonnyq I've already added those methods in the methods listing, but I haven't defined them yet. --Maian 02:39, 21 October 2005 (PDT) delete? I don't see any mention in the operators section for the delete operator. Did this operator get removed/deprecated, or is it missing from the documentation? Brundlefly 13:
15, 19 December 2005 (PST) Neither: Core JavaScript 1.5 Reference:Operators:Special Operators:delete Operator --Nickolay 14:48, 19 December 2005 (PST) reading offline? Well, may be it's no so common in today's world... but is there a way to get content of jsref-1.5 or other documents as a tarball? There are still valid needs for this: computers on slow links, computers behind insane firewalls, ...
...owsing/viewing/printing, yet. It is in the "Nice to have" Category for us here, however I am unaware of anyone feverishly working on it. (There are some other priorities ahead of that, imho). If downloading the stuff is your priority you are free to field ideas/concept to the DevMo Mailing List for discussion, and then actually code it (or find someone to do so). Thanks for your thoughts --Callek
15:05, 13 January 2006 (PST) Notification when reorganization is finished Leandro (localiser for the Portuguese wiki) would like to be emailed when the JS Reference reorganization has been finished. His user page is here: http://developer.mozilla.org/pt/docs...%C3%AAs_Xavier -- dria 08:19, 24 February 2006 (PST) Object and Function Relation here is my problem , it has been breaking my head fo...
Physics - Game development
s.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. Final code check The latest code should look like this: var ball; function preload() { game.scale.scaleMode = Phaser.ScaleManager.S...
...At the moment, the physics engine has gravity and friction set to zero. Adding gravity would result in the ball falling down while friction would eventually stop the ball. Fun with physics You can do much more with physics, for example by adding ball.body.gravity...
...At the moment, the physics engine has gravity and friction set to zero. Adding gravity would result in the ball falling down while friction would eventually stop the ball. Fun with physics You can do much more with physics, for example by adding ball.body.gravity.y = ...
2D maze game with device orientation - Game development
of the Canvas, and moving on to the Preload state when everything's ready. Preloader.js The Preloader state takes care of loading all the assets: Ball.Preloader = function(game) {}; Ball.Preloader.prototype = { preload: function() { this.preloadBg = this.add.sprite((Ball._WIDTH-297)*0.5, (Ball._HEIGHT-145)*0.5, 'preloaderBg'); this.preloadBar = this.add.sprite((Ball._WIDTH-
158)*0.5, (Ball._HEIGHT-50)*0.5, 'preloaderBar'); this.load.setPreloadSprite(this.preloadBar); this.load.image('ball', 'img/ball.png'); // ... this.load.spritesheet('button-start', 'img/button-start.png', 146, 51); // ... this.load.audio('audio-bounce', ['audio/bounce.ogg', 'audio/bounce.mp3', 'audio/bounce.m4a']); }, create: function() { ...
... the type of the block -- horizontal or vertical (t with the 'w' value meaning width and 'h' meaning height). Then, to load the level we'll parse the data and show the blocks specific for that level. In the initLevels function we have: this.levelData = [ [ { x: 96, y: 224, t: 'w' } ], [ { x: 72, y: 320, t: 'w' }, { x: 200, y: 320, t: 'h' }, { x: 72, y:
150, t: 'w' } ], // ... ]; Every array element holds a collection of blocks with an x and y position and t value for each. After levelData, but still in the initLevels function, we're adding the blocks into an array in the for loop using some of the framework-specific methods: for(var i=0; i<this.maxLevels; i++) { var newLevel = this.add.group(); newLevel.enableBody = true; new...
...econds elapsed from the start of the game, and to show it for the player in the game. Let's define the variables in the create function first: this.timer = 0; // time elapsed in the current level this.totalTimer = 0; // time elapsed in the whole game Then, right after that, we can initialize the necessary text objects to display this information to the user: this.timerText = this.game.add.text(
15,
15, "Time: "+this.timer, this.fontBig); this.totalTimeText = this.game.add.text(120, 30, "Total time: "+this.totalTimer, this.fontSmall); We're defining the top and left positions of the text, the content that will be shown and the styling applied to the text. We have this printed out on the screen, but it would be good to update the values every second: this.time.events.loop(Phaser.Timer.SECO...
create fancy boxes - Learn web development
unique purpose of style. Even if it is necessary, it's somewhat considered bad practice. One solution to avoid such pitfalls is to use CSS pseudo-elements. A cloud <div class="fancy">Hi! I want to be fancy.</div> Let's have an example by turning our box into a cloud: .fancy { text-align: center; /* Same trick as previsouly used to make circles */ box-sizing: border-box; width :
150px; height :
150px; padding : 80px 1em 0 1em; /* We make room for the "ears" of our cloud */ margin : 0 100px; position: relative; background-color: #A4C9CF; /* Well, actually we are not making a full circle as we want the bottom of our cloud to be flat. Feel free to tweak this example to make a cloud that isn't flat at the bottom ;) */ border-radius: 10...
...also handle design localization): <blockquote>People who think they know everything are a great annoyance to those of us who do. <i>Isaac Asimov</i></blockquote> <blockquote lang="fr">L'intelligence, c'est comme les parachutes, quand on n'en a pas, on s'ecrase. ...
...us to create inner light and a flat drop shadow effect, but with some little extra work it becomes possible to create a more natural geometry by using pseudo-element and the transform property. .fancy { position: relative; background-color: #FFC; padding: 2rem; text-align: center; max-width: 200px; } .fancy::before { content: ""; position : absolute; z-index : -1; bottom :
15px; right : 5px; width : 50%; top : 80%; max-width: 200px; box-shadow: 0px 13px 10px black; transform: rotate(4deg); } What's next In many ways, making a fancy box is mostly about adding color and images within the background, so it could worth digging into managing colors and images. Also, fancy boxes themselves are quite useless if they are not part of a larger layou...
How do you make sure your website works properly? - Learn web development
eady note it would have been better to use a CDN. That doesn't matter very much when we're only serving one image, but it would be critical for a high-bandwidth website serving many thousands of images. ...
... CDN. That doesn't matter very much when we're only serving one image, but it would be critical for a high-bandwidth website serving many thousands of images. ...
... image, but it would be critical for a high-bandwidth website serving many thousands of images. Is the server responsive enough? ping is a useful shell tool that tests the domain name you provide and tells you if the server's responding or not: $ ping mozilla.org PING mozilla.org (63.245.2
15.20): 56 data bytes 64 bytes from 63.245.2
15.20: icmp_seq=0 ttl=44 time=148.741 ms 64 bytes from 63.245.2
15.20: icmp_seq=1 ttl=44 time=148.541 ms 64 bytes from 63.245.2
15.20: icmp_seq=2 ttl=44 time=148.734 ms 64 bytes from 63.245.2
15.20: icmp_seq=3 ttl=44 time=147.857 ms ^C --- mozilla.org ping statistics --- 4 packets transmitted, 4 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 147.857/148.468/148.741/0.362 ms Just keep in mind a handy keyboard shortcut: Ctrl+C. Ctrl+C sends an ...
Front-end web developer - Learn web development
The learning pathway Getting started Time to complete: 1.5-2 hours Prerequisites Nothing except basic computer literacy. How will I know I'm ready to move on? There are no assessments in this part of the course. But make sure you don't skip. It is important to get you set up and ready to do work for exercises later on in the course. Guides Installing basic software -- basic tool setup (
15 min read) Background on the web and web standards (45 min read) Learning and getting help (45 min read) Semantics and structure with HTML Time to complete: 35-50 hours Prerequisites Nothing except basic computer literacy, and a basic web development environment. How will I know I'm ready to move on? The assessments in each module are designed to test your knowledge of the subject matter.
... structure with HTML Time to complete: 35-50 hours Prerequisites Nothing except basic computer literacy, and a basic web development environment. How will I know I'm ready to move on? The assessments in each module are designed to test your knowledge of the subject matter. Completing the assessments confirms that you are ready to move on to the next module. Modules Introduction to HTML (
15-20 hour read/exercises) Multimedia and embedding (
15-20 hour read/exercises) HTML tables (5-10 hour read/exercises) Styling and layout with CSS Time to complete: 90-120 hours Prerequisites It is recommended that you have basic HTML knowledge before starting to learn CSS. You should at least study Introduction to HTML first. How will I know I'm ready to move on? The assessments in each mo...
...rerequisites It is recommended that you have basic HTML knowledge before starting to learn CSS. You should at least study Introduction to HTML first. How will I know I'm ready to move on? The assessments in each module are designed to test your knowledge of the subject matter. Completing the assessments confirms that you are ready to move on to the next module. Modules CSS first steps (10-
15 hour read/exercises) CSS building blocks (35-45 hour read/exercises) Styling text (
15-20 hour read/exercises) CSS layout (30-40 hour read/exercises) Additional resources CSS layout cookbook Interactivity with JavaScript Time to complete: 135-185 hours Prerequisites It is recommended that you have basic HTML knowledge before starting to learn JavaScript. You should at least study Intr...
Inheritance in JavaScript - Learn web development
either be an object created when a constructor is instantiated like we saw above (so for example var teacher1 = new Teacher( name = 'Chris' ); and then teacher1.name), or an object literal (let teacher1 = { name = 'Chris' } and then teacher1.name). If you are not sure which is which, don't worry about it just yet -- you are still learning, and familiarity will come with practice. ECMAScript 20
15 Classes ECMAScript 20
15 introduces class syntax to JavaScript as a way to write reusable classes using easier, cleaner syntax, which is more similar to classes in C++ or Java. In this section we'll convert the Person and Teacher examples from prototypal inheritance to classes, to show you how it's done. Note: This modern way of writing classes is supported in all modern browsers, but it is sti...
...her('Severus', 'Snape', 58, 'male', ['Potions'], 'Dark arts', 5); snape.greeting(); // Hi! I'm Severus. snape.farewell(); // Severus has left the building. Bye for now. snape.age // 58 snape.subject; // Dark arts Like we did with Teachers, we could create other subclasses of Person to make them more specialized without modifying the base class. Note: You can find this example on GitHub as es20
15-class-inheritance.html (see it live also). Getters and Setters There may be times when we want to change the values of an attribute in the classes we create or we don't know what the final value of an attribute will be. Using the Teacher example, we may not know what subject the teacher will teach before we create them, or their subject may change between terms. We can handle such situations ...
...ter method. The example below shows the two features in action: // Check the default value console.log(snape.subject) // Returns "Dark arts" // Change the value snape.subject = "Balloon animals" // Sets _subject to "Balloon animals" // Check it again and see if it matches the new value console.log(snape.subject) // Returns "Balloon animals" Note: You can find this example on GitHub as es20
15-getters-setters.html (see it live also). Note: Getters and setters can be very useful at times, for example when you want to run some code every time a property is requested or set. For simple cases, however, plain property access without a getter or setter will do just fine. When would you use inheritance in JavaScript? Particularly after this last article, you might be thinking "woo, this...
Object prototypes - Learn web development
nherit features from one another. In this article, we explain how prototype chains work and look at how the prototype property can be used to add methods to existing constructors. Note: This article covers traditional JavaScript constructors and classes. In the next article, we talk about the modern way of doing things, which provides easier syntax to achieve the same things -- see ECMAScript 20
15 classes. Prerequisites: Understanding JavaScript functions, familiarity with JavaScript basics (see First steps and Building blocks), and OOJS basics (see Introduction to objects). Objective: To understand JavaScript object prototypes, how prototype chains work, and how to add new methods onto the prototype property. A prototype-based language? JavaScript is ofte...
...ect has a valueOf() method available on it. It doesn't, then the browser checks person1's prototype object's prototype object, and it has. So the method is called, and all is good! Note: We want to reiterate that the methods and properties are not copied from one object to another in the prototype chain. They are accessed by walking up the chain as described above. Note: Before ECMAScript 20
15, there wasn't officially a way to access an object's prototype directly -- the "links" between the items in the chain are defined in an internal property, referred to as [[prototype]] in the specification for the JavaScript language (see ECMAScript). Most modern browsers, however, do offer property available called __proto__ (that's 2 underscores either side), which contains the object's constru...
..., referred to as [[prototype]] in the specification for the JavaScript language (see ECMAScript). Most modern browsers, however, do offer property available called __proto__ (that's 2 underscores either side), which contains the object's constructor's prototype object. For example, try person1.__proto__ and person1.__proto__.__proto__ to see what the chain looks like in code! Since ECMAScript 20
15, you can access an object's prototype object indirectly via Object.getPrototypeOf(obj). The prototype property: Where inherited members are defined So, where are the inherited properties and methods defined? If you look at the Object reference page, you'll see listed in the left hand side a large number of properties and methods -- many more than the number of inherited members we saw availabl...
about:memory
-tip. Hover over any button to see a description of what it does. Hover over any measurement to see a description of what it means. Measurement basics Most measurements use bytes as their unit, but some are counts or percentages. Most measurements are presented within trees. For example: 585 (100.0%) -- preference-service +--585 (100.0%) -- referent +--493 (84.27%) -- strong +---92 (
15.73%) -- weak +--92 (
15.73%) -- alive +---0 (00.00%) -- dead Leaf nodes represent actual measurements; the value of each internal node is the sum of all its children. The use of trees allows measurements to be broken down into further categories, sub-categories, sub-sub-categories, etc., to arbitrary depth, as needed. All the measurements within a single tree are non-overlapping...
...memory allocated via explicit calls to heap allocation functions (such as malloc and new) and to non-heap allocations functions (such as mmap and VirtualAlloc). Here is an example for a browser session where tabs were open to cnn.com, techcrunch.com, and arstechnica.com. Various sub-trees have been expanded and others collapsed for the sake of presentation. ...
...B (02.37%) ++ js-compartment(http://edition.cnn.com/) | | | | +---2.60 MB (01.36%) ++ layout | | | | +---1.94 MB (01.01%) -- style-sheets | | | | +---1.48 MB (00.77%) -- (2 tiny) | | | | +--1.43 MB (00.75%) ++ dom | | | | +--0.05 MB (00.02%) -- property-tables | | | +---9.61 MB (05.01%) ++ (18 tiny) | | +---4.39 MB (02.29%) -- js-zone(0x7f69425b5800) | +--
15.75 MB (08.21%) ++ top(http://techcrunch.com/, id=20) | +--12.85 MB (06.69%) ++ top(http://arstechnica.com/, id=14) | +---6.40 MB (03.33%) ++ top(chrome://browser/content/browser.xul, id=3) | +---3.59 MB (01.87%) ++ (4 tiny) +---45.74 MB (23.84%) ++ js-non-window +---33.73 MB (17.58%) -- heap-unclassified +---22.51 MB (11.73%) ++ heap-overhead +----6.62 MB (03.45%) ++ images +----5.82 MB (03...
NSS 3.21 release notes
released Network Security Services (NSS) 3.21, which is a minor release. Distribution Information The HG tag is NSS_3_21_RTM. NSS 3.21 requires NSPR 4.10.10 or newer. NSS 3.21 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_21_RTM/src/ Security Fixes in NSS 3.21 Bug 1
158489 / CVE-20
15-7575 - Prevent MD5 Downgrade in TLS 1.2 Signatures. New in NSS 3.21 New Functionality certutil now supports a --rename option to change a nickname (bug 1142209) TLS extended master secret extension (RFC 7627) is supported (bug 1117022) New info functions added for use during mid-handshake callbacks (bug 1084669) New Functions in nss.h NSS_OptionSet - sets NSS gl...
...ic curve ciphers enabled by default (bug 1205688) NSS now builds with warnings as errors (bug 1182667) The following CA certificates were Removed CN = VeriSign Class 4 Public Primary Certification Authority - G3 SHA1 Fingerprint: C8:EC:8C:87:92:69:CB:4B:AB:39:E9:8D:7E:57:67:F3:14:95:73:9D CN = UTN-USERFirst-Network Applications SHA1 Fingerprint: 5D:98:9C:DB:
15:96:11:36:51:65:64:1B:56:0F:DB:EA:2A:C2:3E:F1 CN = TC TrustCenter Universal CA III SHA1 Fingerprint: 96:56:CD:7B:57:96:98:95:D0:E1:41:46:68:06:FB:B8:C6:11:06:87 CN = A-Trust-nQual-03 SHA-1 Fingerprint: D3:C0:63:F2:19:ED:07:3E:34:AD:5D:75:0B:32:76:29:FF:D5:9A:F2 CN = USERTrust Legacy Secure Server CA SHA-1 Fingerprint: 7C:2F:91:E2:BB...
... Compatibility NSS 3.21 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program linked with older NSS 3.x shared libraries will work with NSS 3.21 shared libraries without recompiling or relinking. Furthermore, applications that restrict their use of NSS APIs to the functions listed in NSS Public Functions will remain compatible with future versions of th...
NSS 3.25 release notes
SSL v2 protocol. The trusted CA certificate list has been updated to version 2.8. ...
...:F2:FD:6E:B5:8A:A1:D5:9C:4A:D4:B3:CA:56:FD:C6:27:4A:89:26:A7:83:5F:32:31:3D The following CA certificates were Added CN = Hellenic Academic and Research Institutions RootCA 20
15 SHA-256 Fingerprint: A0:40:92:9A:02:CE:53:B4:AC:F4:F2:FF:C6:98:1C:E4:49:6F:75:5E:6D:45:FE:0B:2A:69:2B:CD:52:52:3F:36 CN = Hellenic Academic and Research Institutions ECC RootCA 20
15 SHA-256 Fingerprint: 44:B5:45:AA:8A:25:E6:5A:73:CA:
15:DC:27:FC:36:D2:4C:1C:B9:95:3A:06:65:39:B1:
15:82:DC:48:7B:48:33 CN = Certplus Root CA G1 SHA-256 Fingerprint:
15:2A:40:2B:FC:DF:2C:D5:48:05:4D:22:75:B3:9C:7F:CA:3E:C0:97:80:78:B0:F0:EA:76:E5:61:A6:C7:43:3E CN = Certplus Root CA G2 SHA-256 Fingerprint: 6C:C0:50:41:E6:44:5E:74:69:6C:4C:FB:C9:F...
...rtplus Root CA G2 SHA-256 Fingerprint: 6C:C0:50:41:E6:44:5E:74:69:6C:4C:FB:C9:F8:0F:54:3B:7E:AB:BB:44:B4:CE:6F:78:7C:6A:99:71:C4:2F:17 CN = OpenTrust Root CA G1 SHA-256 Fingerprint: 56:C7:71:28:D9:8C:18:D9:1B:4C:FD:FF:BC:25:EE:91:03:D4:75:8E:A2:AB:AD:82:6A:90:F3:45:7D:46:0E:B4 CN = OpenTrust Root CA G2 SHA-256 Fingerprint: 27:99:58:29:FE:6A:75:
15:C1:BF:E8:48:F9:C4:76:1D:B1:6C:22:59:29:25:7B:F4:0D:08:94:F2:9E:A8:BA:F2 CN = OpenTrust Root CA G3 SHA-256 Fingerprint: B7:C3:62:31:70:6E:81:07:8C:36:7C:B8:96:19:8F:1E:32:08:DD:92:69:49:DD:8F:57:09:A4:10:F7:5B:62:92 Bugs fixed in NSS 3.25 This Bugzilla query returns all the bugs fixed in NSS 3.25: https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&cla...
NSS 3.53 release notes
e of NSS. At that time, users will need to set the compile-time flag (Bug 1622033) to disable that deprecation in order to use the algorithm. Algorithms marked as deprecated will ultimately be removed. Several root certificates in the Mozilla program now set the CKA_NSS_SERVER_DISTRUST_AFTER attribute, which NSS consumers can query to further refine trust decisions. (Bug 1618404, Bug 1621
159) If a builtin certificate has a CKA_NSS_SERVER_DISTRUST_AFTER timestamp before the SCT or NotBefore date of a certificate that builtin issued, then clients can elect not to trust it. This attribute provides a more graceful phase-out for certificate authorities than complete removal from the root certificate builtin store. Bugs fixed in NSS 3.53 Bug 1640260 - Initialize PBE param...
...tBefore date of a certificate that builtin issued, then clients can elect not to trust it. This attribute provides a more graceful phase-out for certificate authorities than complete removal from the root certificate builtin store. Bugs fixed in NSS 3.53 Bug 1640260 - Initialize PBE params (ASAN fix) Bug 1618404 - Set CKA_NSS_SERVER_DISTRUST_AFTER for Symantec root certs Bug 1621
159 - Set CKA_NSS_SERVER_DISTRUST_AFTER for Consorci AOC, GRCA, and SK ID root certs Bug 1629414 - PPC64: Correct compilation error between VMX vs. VSX vector instructions Bug 1639033 - Fix various compile warnings in NSS Bug 1640041 - Fix a null pointer in security/nss/lib/ssl/sslencode.c:67 Bug 1640042 - Fix a null pointer in security/nss/lib/ssl/sslsock.c:4460 Bug 1638289 - Avoid multiple de...
...warnings in NSS Bug 1640041 - Fix a null pointer in security/nss/lib/ssl/sslencode.c:67 Bug 1640042 - Fix a null pointer in security/nss/lib/ssl/sslsock.c:4460 Bug 1638289 - Avoid multiple definitions of SHA{256,384,512}_* symbols when linking libfreeblpriv3.so in Firefox on ppc64le Bug 1636389 - Relocate deprecated SEED algorithm Bug 1637083 - lib/ckfw: No such file or directory. Stop. ...
Initialize NSS database - sample 2
NSS sample code 2: initialize the NSS database. The NSS sample code below demonstrates how to initialize the NSS database. ...
...ialize the NSS database. The NSS sample code below demonstrates how to initialize the NSS database. ...
...the NSS database. ...
NSS tools : pk12util
#12 file password. -W p12filePassword Specify the pkcs #12 file password. ...
...otPasswordFile|-K slotPassword] [-w p12filePasswordFile|-W p12filePassword] For example, this prints the default ASCII output: # pk12util -l certs.p12 Enter password for PKCS12 file: Key(shrouded): Friendly Name: Thawte Freemail Member's Thawte Consulting (Pty) Ltd. ...
...number file, beginning with file0001.der and continuing through file000N.der, incrementing the number for every certificate: # pk12util -l test.p12 -r Enter password for PKCS12 file: Key(shrouded): Friendly Name: Thawte Freemail Member's Thawte Consulting (Pty) Ltd. ID Encryption algorithm: PKCS #12 V2 PBE With SHA-1 And 3KEY Triple DES-CBC Parameters: Salt: 45:2e:6a:a0:03:4d:7b:a1:63:3c:
15:ea:67:37:62:1f Iteration Count: 1 (0x1) Certificate Friendly Name: Thawte Personal Freemail Issuing CA - Thawte Consulting Certificate Friendly Name: Thawte Freemail Member's Thawte Consulting (Pty) Ltd. ID Password Encryption PKCS#12 provides for not only the protection of the private keys but also the certificate and meta-data associated with the keys. Password-based encryption is used t...
NSS tools : pk12util
n the p12 file. ...
...dFile|-W p12filePassword] For example, this prints the default ASCII output: # pk12util -l certs.p12 Enter password for PKCS12 file: Key(shrouded): Friendly Name: Thawte Freemail Member's Thawte Consulting (Pty) Ltd. ...
...tinuing through file000N.der, incrementing the number for every certificate: # pk12util -l test.p12 -r Enter password for PKCS12 file: Key(shrouded): Friendly Name: Thawte Freemail Member's Thawte Consulting (Pty) Ltd. ID Encryption algorithm: PKCS #12 V2 PBE With SHA-1 And 3KEY Triple DES-CBC Parameters: Salt: 45:2e:6a:a0:03:4d:7b:a1:63:3c:
15:ea:67:37:62:1f Iteration Count: 1 (0x1) Certificate Friendly Name: Thawte Personal Freemail Issuing CA - Thawte Consulting Certificate Friendly Name: Thawte Freemail Member's Thawte Consulting (Pty) Ltd. ID Password Encryption PKCS#12 provides for not only the protection of the private keys but also the certificate and meta-data associated with the keys. Password-bas...
SpiderMonkey Internals
At heart, SpiderMonkey is a fast interpreter that runs an untyped bytecode and operates on values of type JS::Value--type-tagged values that represent the full range of JavaScript values. In addition to the interpreter, SpiderMonkey contains a Just-In-Time (JIT) compiler, a garbage collector, code implementing the basic behavior of JavaScript values, a standard library implementing ECMA 262-5.1 ?
15 with various extensions, and a few public APIs. Interpreter Like many portable interpreters, SpiderMonkey's interpreter is mainly a single, tremendously long function that steps through the bytecode one instruction at a time, using a switch statement (or faster alternative, depending on the compiler) to jump to the appropriate chunk of code for the current instruction. A JS-to-JS function call ...
...line 0 => pc 0 => line 16 line 1 => pc 0 => line 16 line 2 => pc 0 => line 16 line 3 => pc 0 => line 16 line 4 => pc 0 => line 16 line 5 => pc 0 => line 16 line 6 => pc 0 => line 16 line 7 => pc 0 => line 16 line 8 => pc 0 => line 16 line 9 => pc 0 => line 16 line 10 => pc 0 => line 16 line 11 => pc 0 => line 16 line 12 => pc 0 => line 16 line 13 => pc 0 => line 16 line 14 => pc 0 => line 16 line
15 => pc 0 => line 16 line 16 => pc 0 => line 16 line 17 => pc 19 => line 20 line 18 => pc 19 => line 20 line 19 => pc 19 => line 20 line 20 => pc 19 => line 20 line 21 => pc 36 => line 21 line 22 => pc 53 => line 22 line 23 => pc 74 => line 23 line 24 => pc 92 => line 22 line 25 => pc 106 => line 28 line 26 => pc 106 => line 28 line 27 => pc 106 => line 28 line 28 => pc 106 => line 28 line 29 => pc...
... pc 0 => line 16 line 17 => pc 19 => line 20 line 18 => pc 19 => line 20 line 19 => pc 19 => line 20 line 20 => pc 19 => line 20 line 21 => pc 36 => line 21 line 22 => pc 53 => line 22 line 23 => pc 74 => line 23 line 24 => pc 92 => line 22 line 25 => pc 106 => line 28 line 26 => pc 106 => line 28 line 27 => pc 106 => line 28 line 28 => pc 106 => line 28 line 29 => pc 127 => line 29 line 30 => pc
154 => line 21 line 31 => pc
154 => line 21 line 32 => pc 161 => line 32 line 33 => pc 172 => line 33 line 34 => pc 172 => line 33 line 35 => pc 172 => line 33 line 36 => pc 172 => line 33 line 37 => pc 172 => line 33 line 38 => pc 172 => line 33 line 39 => pc 172 => line 33 line 40 => pc 172 => line 33 jsconfig.h Various configuration macros defined as 0 or 1 depending on how JS_VERSION is defin...
WebReplayRoadmap
page. New features are possible with time travel, though, which would be nice to support: Supporting the debugger's event breakpoints would allow searching the recording for places where particular DOM events occur, and -- in the same manner as logpoints -- logging them to the console and allowing them to be seeked to later. Similarly, when the debugger supports DOM mutation breakpoints (bug
1547692), the recording can be searched for DOM mutations, and mutations can be logged to the console and seeked to later. Allowing CSS to be changed while paused somewhere in the recording and update graphics with the effects of those changes. Object Watching (not yet implemented) It would be nice to log the changes to a specific object or one of its properties, so that the points of those chan...
...e Web Features (not yet implemented) Several web features are not supported when recording/replaying. While tabs with these features won't (or shouldn't!) crash, the features are disabled and the tab will not be fully usable. Some of these will be easier to support than others. Media elements (bug 1304146) Web Audio (bug 1304147) WebRTC (bug 1304149) WebAssembly (bug 1481007) WebGL (bug
1506467) Support more Operating Systems (not yet implemented) Only macOS is supported right now. Web Replay's architecture should allow it to work on any operating system: the OS features needed are not specific to macOS or to POSIX systems. Still, porting it to other POSIX systems (Linux, Android) will be easier than Windows, due to the overlap with macOS. There is, however, a partial Windows...
...f IPC should work pretty efficiently. Recording Firefox UI (partially implemented) Right now only content tabs can be recorded and replayed. Firefox's UI and privileged code is largely written in JS, and it would be nice to be able to use Web Replay to help debug and develop Firefox itself, for better dogfooding and gathering internal feedback. This is partially underway and is tracked in bug
152
1566. ...
nsAString_internal
t represents a single contiguous array of characters, which may or may not be null-terminated. This type is not instantiated directly. A sub-class is instantiated instead. For example, see nsTString. NAMES: nsAString for wide characters nsACString for narrow characters Many of the accessors on nsTSubstring are inlined as an optimization. ...
...coords="4
15,5,553,53" href="http://developer.mozilla.org/en/nsAString_internal" shape="rect" title="nsAString_internal"> <area alt="" coords="379,101,451,149" href="http://developer.mozilla.org/en/nsString" shape="rect" title="nsString"> <area alt="" coords="475,101,635,149" href="http://developer.mozilla.org/en/nsDependentSubstring" shape="rect" title="nsDependentSubstring"> <area alt="" coords="
151,197,257,245" href="http://developer.mozilla.org/en/nsFixedString" shape="rect" title="nsFixedString"> <area alt="" coords="284,197,396,245" href="http://developer.mozilla.org/en/nsXPIDLString" shape="rect" title="nsXPIDLString"> <area alt="" coords="420,197,559,245" href="http://developer.mozilla.org/en/nsDependentString" shape="rect" title="nsDependentString"> <area alt="" coords="583,197,727,2...
...84,197,396,245" href="http://developer.mozilla.org/en/nsXPIDLString" shape="rect" title="nsXPIDLString"> <area alt="" coords="420,197,559,245" href="http://developer.mozilla.org/en/nsDependentString" shape="rect" title="nsDependentString"> <area alt="" coords="583,197,727,245" href="http://developer.mozilla.org/en/nsPromiseFlatString" shape="rect" title="nsPromiseFlatString"> <area alt="" coords="
152,293,253,341" href="http://developer.mozilla.org/en/nsAutoString" shape="rect" title="nsAutoString"> <area alt="" coords="5,389,192,437" href="http://developer.mozilla.org/en/NS_ConvertASCIItoUTF16" shape="rect" title="NS_ConvertASCIItoUTF16"> <area alt="" coords="216,389,400,437" href="http://developer.mozilla.org/en/NS_ConvertUTF8toUTF16" shape="rect" title="NS_ConvertUTF8toUTF16"> <area alt=""...
nsIAccessibleEvent
E An object's keyboard shortcut has changed. EVENT_SELECTION 0x8006 0x0012 0x000F The selection within a container object has changed. EVENT_SELECTION_ADD 0x8007 0x0013 0x0010 An item within a container object has been added to the selection. EVENT_SELECTION_REMOVE 0x8008 0x0014 0x0011 An item within a container object has been removed from the selection. ...
... EVENT_MENU_END 0x0019 0x0016 A menu from the menu bar has been closed. EVENT_MENUPOPUP_START 0x001A 0x0017 A pop-up menu has been displayed. EVENT_MENUPOPUP_END 0x001B 0x0018 A pop-up menu has been closed. EVENT_CAPTURE_START 0x001C 0x0019 A window has received mouse capture. ...
...ENT_ATK_TEXT_CHANGE 0x0102 EVENT_ATK_TEXT_SELECTION_CHANGE 0x0103 EVENT_ATK_TEXT_CARET_MOVE 0x0104 EVENT_ATK_VISIBLE_DATA_CHANGE 0x0105 EVENT_ATK_TABLE_MODEL_CHANGE 0x0110 EVENT_ATK_TABLE_ROW_INSERT 0x0111 EVENT_ATK_TABLE_ROW_DELETE 0x0112 EVENT_ATK_TABLE_ROW_REORDER 0x0113 EVENT_ATK_TABLE_COLUMN_INSERT 0x0114 EVENT_ATK_TABLE_COLUMN_DELETE 0x01
15 EVENT_ATK_TABLE_COLUMN_REORDER 0x0116 EVENT_ATK_LINK_SELECTED 0x0117 EVENT_ATK_WINDOW_ACTIVATE 0x0118 EVENT_ATK_WINDOW_CREATE 0x0119 EVENT_ATK_WINDOW_DEACTIVATE 0x0120 EVENT_ATK_WINDOW_DESTROY 0x0121 EVENT_ATK_WINDOW_MAXIMIZE 0x0122 EVENT_ATK_WINDOW_MINIMIZE 0x0123 EVENT_ATK_WINDOW_RESIZE 0x0124 EVENT_ATK_WINDOW_RESTORE 0x0125 EVEN...
nsIBrowserHistory
aMonkey 2.19) Implemented by: @mozilla.org/browser/nav-history-service;1. ...
...me(in long long aBeginTime, in long long aEndTime); void unregisterOpenPage(in nsIURI aURI); Obsolete since Gecko 9.0 Note: The markPageAsFollowedLink and markPageAsTyped methods were moved to nsINavHistoryService in Gecko 22.0 so that all markPageAs* methods can be found in one interface. ...
... Type Description count Obsolete since Gecko
15.0 PRUint32 Indicates if there are entries in global history. For performance reasons this does not return the real number of entries. Read only. lastPageVisited Obsolete since Gecko 10.0 AUTF8String The last page that was visited in a top-level window. Read only. Note: The count attribute was removed in Gecko
15.0 because it was only used to determine if there were any entries at all anyway, so the nsINavHistoryService.hasHistoryEntries attribute is better for this. Methods addPageWithDetails() Obsolete since Gecko
15.0 (Firefox
15.0 / Thunderbird
15.0 / SeaMonkey 2.12) Note: This method was removed in Gecko
15.0. You should use mozIAsyncHistory.updatePlaces() instead. Thi...
Throttling - Firefox Developer Tools
feature for exact performance measurements; it's intended to give an approximate idea of the user experience in different conditions. The speeds are expressed in multiples of bits per second. ...
... exact performance measurements; it's intended to give an approximate idea of the user experience in different conditions. The speeds are expressed in multiples of bits per second. ...
... Upload speed Minimum latency (ms) GPRS 50 Kbps 20 Kbps 500 Regular 2G 250 Kbps 50 Kbps 300 Good 2G 450 Kbps
150 Kbps
150 Regular 3G 750 Kbps 250 Kbps 100 Good 3G 1.5 Mbps 750 Kbps 40 Regular 4G/LTE 4 Mbps 3 Mbps 20 DSL 2 Mbps 1 Mbps 5 Wi-Fi 30 Mbps
15 Mbps 2 Network Monitor Features The following articles cover different aspects of using the network monitor: Toolbar Network request list Network request details Network traffic recording Performance analysis ...
Responsive Design Mode - Firefox Developer Tools
ted with each network type, but please do not rely on this feature for exact performance measurements; it's intended to give an approximate idea of the user experience in different conditions. ...
...h network type, but please do not rely on this feature for exact performance measurements; it's intended to give an approximate idea of the user experience in different conditions. ...
... Upload speed Minimum latency (ms) GPRS 50 KB/s 20 KB/s 500 Regular 2G 250 KB/s 50 KB/s 300 Good 2G 450 KB/s
150 KB/s
150 Regular 3G 750 KB/s 250 KB/s 100 Good 3G 1.5 MB/s 750 KB/s 40 Regular 4G/LTE 4 MB/s 3 MB/s 20 DSL 2 MB/s 1 MB/s 5 Wi-Fi 30 MB/s
15 MB/s 2 To select a network, click the list box that's initially labeled "No throttling": ...
CanvasRenderingContext2D.lineTo() - Web APIs
an use the fill() or stroke() methods. 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. Return value undefined. Examples Drawing a straight line This example draws a straight line using the lineTo() method. ...
...ned. Examples Drawing a straight line This example draws a straight line using the lineTo() method. HTML <canvas id="canvas"></canvas> JavaScript The line begins at (30, 50) and ends at (
150, 100). const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.beginPath(); // Start a new path ctx.moveTo(30, 50); // Move the pen to (30, 50) ctx.lineTo(
150, 100); // Draw a line to (
150, 100) ctx.stroke(); // Render the path Result Drawing connected lines Each call of lineTo() (and similar methods) automatically adds to the current sub-path, which means that all the lines will all be stroked or filled together. This example draws a letter 'M' with a single contiguous line. HTML <canvas id="canvas"></canvas> JavaScript const canv...
...lineTo() (and similar methods) automatically adds to the current sub-path, which means that all the lines will all be stroked or filled together. This example draws a letter 'M' with a single contiguous line. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.moveTo(90, 130); ctx.lineTo(95, 25); ctx.lineTo(
150, 80); ctx.lineTo(205, 25); ctx.lineTo(210, 130); ctx.lineWidth =
15; ctx.stroke(); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.lineTo' in that specification. Living Standard ...
CanvasRenderingContext2D.rotate() - Web APIs
) rotates the matrix by the desired amount. Finally, translate() moves the matrix's origin back to its starting point. This is done by applying the values of the shape's center coordinates in a negative direction. HTML <canvas id="canvas"></canvas> JavaScript The shape is a rectangle with its corner at (80, 60), a width of 140, a height of 30. ...
...s origin back to its starting point. This is done by applying the values of the shape's center coordinates in a negative direction. HTML <canvas id="canvas"></canvas> JavaScript The shape is a rectangle with its corner at (80, 60), a width of 140, a height of 30. Its horizontal center is at (80 + 140 / 2), or
150. Its vertical center is at (60 + 30 / 2), or 75. Thus, the center point is at (
150, 75). ...
...orner at (80, 60), a width of 140, a height of 30. Its horizontal center is at (80 + 140 / 2), or
150. Its vertical center is at (60 + 30 / 2), or 75. Thus, the center point is at (
150, 75). const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); // Non-rotated rectangle ctx.fillStyle = 'gray'; ctx.fillRect(80, 60, 140, 30); // Matrix transformation ctx.translate(
150, 75); ctx.rotate(Math.PI / 2); ctx.translate(-
150, -75); // Rotated rectangle ctx.fillStyle = 'red'; ctx.fillRect(80, 60, 140, 30); Result The non-rotated rectangle is gray, and the rotated rectangle is red. Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.rotate' in that specification. Living Standard ...
FileSystemSync - Web APIs
ix: webkitEdge Full support <=79Prefixed Full support <=79Prefixed Prefixed Implemented with the vendor prefix: webkitFirefox No support NoIE No support NoOpera Full support
15Prefixed Full support
15Prefixed Prefixed Implemented with the vendor prefix: webkitSafari Full support 6Prefixed Full support 6Prefixed Prefixed Implemented with the vendor prefix: webkitWebView Android Full support <...
...efixed Prefixed Implemented with the vendor prefix: webkitname Non-standardChrome Full support 13Edge Full support <=79Firefox No support NoIE No support NoOpera Full support
15Safari Full support 6WebView Android Full support <=37Chrome Android Full support 18Firefox Android No support NoOpera Android Full support 14Safari iOS Full s...
... Full support 1.0root Non-standardChrome Full support 13Edge Full support <=79Firefox No support NoIE No support NoOpera Full support
15Safari Full support 6WebView Android Full support <=37Chrome Android Full support 18Firefox Android No support NoOpera Android Full support 14Safari iOS Full s...
HTMLFormElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLFormElement" target="_top"><rect x="341" y="65" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLFormElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties This interface also inherits properties from its parent, HTMLEle...
...rom a <form> element and set some of its attributes: <form name="formA" action="/cgi-bin/test" method="post"> <p>Press "Info" for form details, or "Set" to change those details.</p> <p> <button type="button" onclick="getFormInfo();">Info</button> <button type="button" onclick="setFormInfo(this.form);">Set</button> <button type="reset">Reset</button> </p> <textarea id="form-info" rows="
15" cols="20"></textarea> </form> <script> function getFormInfo(){ // Get a reference to the form via its name var f = document.forms["formA"]; // The form properties we're interested in var properties = [ 'elements', 'length', 'name', 'charset', 'action', 'acceptCharset', 'action', 'enctype', 'method', 'target' ]; // Iterate over the properties, turning them into a string tha...
HTMLInputElement.stepDown() - Web APIs
(step * n), where n defaults to 1 if not specified, and step defaults to the default value for step if not specified. Valid on all numeric, date, and time input types that support the step attribute, includingdate, month, week, time, datetime-local, number, and range. ...
...e step attribute, includingdate, month, week, time, datetime-local, number, and range. Given <input id="myTime" type="time" max="17:00" step="900" value="17:00">, invoking myTime.step(3) will change the value to 16:
15, decrementing the time by 3 * 900, or 45 minutes. myTime.step(), with no parameter, would have resulted in 16:45, as n defaults to 1. ...
...d. ...
Node.setUserData() - Web APIs
the destination node (the newly created node or null if none).If no handler is desired, one must specify null. userData is the object to associate to userKey on someNode. If null, any previously registered object and UserDataHandler associated to userKey on this node will be removed. ...
...pecify null. userData is the object to associate to userKey on someNode. If null, any previously registered object and UserDataHandler associated to userKey on this node will be removed. ...
...usly registered object and UserDataHandler associated to userKey on this node will be removed. Example var d = document.implementation.createDocument('', 'test', null); d.documentElement.setUserData('key',
15, {handle:function (o, k, d, s, ds) {console.log(o+'::'+k+'::'+d+'::'+s+'::'+ds)}}); // 2::key::
15::[object Element]::[object Element] console.log(d.documentElement.getUserData('key')); //
15 var e = document.importNode(d.documentElement, true); // causes handler to be called console.log(e.getUserData('key')); // null since user data is not copied Specifications Specification Status Comment Document Object Model (DOM) Level 3 Core SpecificationThe definition of 'Node.setUserData()' in that specification. Obsolete Initial definition ...
SVGTSpanElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...ill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGGraphicsElement</text></a><polyline 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/SVGTextContentElement" target="_top"><rect x="51" y="65" width="210" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="
156" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGTextContentElement</text></a><polyline points="51,89 41,84 41,94 51,89" stroke="#D4DDE4" fill="none"/><line x1="41" y1="89" x2="11" y2="89" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGTextPositioningElement" target="_top"><rect x="-239" y="65" w...
...nt-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGTextPositioningElement</text></a><polyline points="-239,89 -249,84 -249,94 -239,89" stroke="#D4DDE4" fill="none"/><line x1="-249" y1="89" x2="-279" y2="89" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGTSpanElement" target="_top"><rect x="-429" y="65" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="-354" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGTSpanElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties This interface doesn't provide any specific properties, but inh...
Web Accessibility: Understanding Colors and Luminance - Accessibility
ance. ...
...flashing. (See the video, The Photosensitive Epilepsy Analysis Tool) Measuring Color & Luminance Methods that measures color Exploring the RGB color space further, as it is the color space used by the data type <color>, note that there are actually multiple "versions" of the RGB color space, such as sRGB, scRGB, and RGBA. There are also different ways to refrence RGB: RGB Decimal reference:
153, 0, 0 and an RGB Percent reference: 60, 0, 0. Window.getComputedStyle() returns values using RGB Decimal Reference scale. For example, calling Window.getComputedStyle() on a div with a background-color: #990000; set returns the computed background color as rgb(
153, 0, 0) -- the RGB Decimal reference. Window.getComputedStyle() measures color in terms of RGB. CSS Color Module Level 3 added HS...
... color space will be used to process and display the content, authors should evaluate using sRGB colorspace. If using other color spaces, see Understanding Success Criterion 1.4.3.". ...
:scope - CSS: Cascading Style Sheets
n to remove it. No support 20 -- 32Disabled Disabled From version 20 until version 32 (exclusive): this feature is behind the layout.css.scope-pseudo.enabled preference (needs to be set to true). ...
...re as well as lack of other implementations resulted in the decision to remove it. Full support 20Disabled Disabled From version 20: this feature is behind the layout.css.scope-pseudo.enabled preference (needs to be set to true). ...
... 1.5Support in DOM API such as in querySelector() and querySelectorAll()Chrome Full support 27Edge Full support 79Firefox Full support 32IE No support NoOpera Full support
15Safari Full support 7WebView Android Full support <=37Chrome Android Full support 27Firefox Android Full support 32Opera Android Full support
15Safari iOS Full...
Variable fonts guide - CSS: Cascading Style Sheets
d styles available, rather than being constrained to only the few that you previously would have loaded separately. This allows for common typographic techniques such as setting different size headings in different weights for better readability at each size, or using a slightly narrower width for data-dense displays. For comparison, it is typical in a typographic system for a magazine to use 10-
15 or more different weight and width combinations throughout the publication -- giving a much wider range of styles than currently typical on the web (or indeed practical for performance reasons alone). A note about font families, weights, and variants You might notice that we have been talking about having a specific font file for every weight and style (i.e. bold and italic and bold italic), ra...
...ove or below 'normal' (100%), any number greater than 0 is technically valid--though it is far more likely that the range would fall closer to the 100% mark, such as 75%-125%. If a number value supplied is outside the range encoded in the font, the browser should render the font at the closest value allowed. Note: The % symbol is not used when utilizing font-variation-settings. font-stretch: 1
15%; font-variation-settings: 'wdth' 1
15; The following live example's CSS can be edited to allow you to play with font width values. Italic The Italic (ital) axis works differently in that it is either on or off; there is no in-between. Italic designs often include dramatically different letterforms from their upright counterparts, so in the transition from upright to italic, a number of gly...
...an invalid value via font-variation-settings, so use with care. Working with older browsers Variable font support can be checked with CSS Feature Queries (see @supports), so it's possible to use variable fonts in production and scope the CSS calling the variable fonts inside a feature query block. h1 { font-family: some-non-variable-font-family; } @supports (font-variation-settings: 'wdth' 1
15) { h1 { font-family: some-variable-font-family; } } Sample pages The following example pages show two different ways to structure your CSS. The first uses the standard attributes wherever possible. The second example uses CSS Custom Properties to set values for a font-variation-settings string, and shows how you can more easily update single variable values by overriding a single variable...
animation-delay - CSS: Cascading Style Sheets
nteractive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. It is often convenient to use the shorthand property animation to set all animation properties at once. Syntax /* Single animation */ animation-delay: 3s; animation-delay: 0s; animation-delay: -
1500ms; /* Multiple animations */ animation-delay: 2.1s, 480ms; Values <time> The time offset, from the moment at which the animation is applied to the element, at which the animation should begin. This may be specified in either seconds (s) or milliseconds (ms). The unit is required. A positive value indicates that the animation should begin after the specified amount of time has elapsed. A...
... in Firefox, visit about:config. ...
...Implemented with the vendor prefix: -moz-IE Full support 10Opera Full support 30 Full support 30 Full support
15Prefixed Prefixed Implemented with the vendor prefix: -webkit- No support 12.1 --
15 No support 12 --
15Prefixed Prefixed Implemented with the vendor prefix: -o-Safari Full support 9 Full support 9 Full support 4Prefixed Prefixed Implemented with the vendor prefix: -webkit-WebView Android Full support ...
backface-visibility - CSS: Cascading Style Sheets
</div> </div> <p> The three back faces (2, 4, 5) are hidden. ...
... </div> <p> The three back faces (2, 4, 5) are hidden. ...
... that will show or hide the three back faces of the "cube" */ .showbf div { backface-visibility: visible; } .hidebf div { backface-visibility: hidden; } /* Define the container div, the cube div, and a generic face */ .container { width:
150px; height:
150px; margin: 75px 0 0 75px; border: none; } .cube { width: 100%; height: 100%; perspective: 550px; perspective-origin:
150%
150%; transform-style: preserve-3d; } .face { display: block; position: absolute; width: 100px; height: 100px; border: none; line-height: 100px; font-family: sans-serif; font-size: 60px; color: white; text-align: center; } /* Define each face based on direction */ .front { background: rgba(0, 0, 0, 0.3); transform: translateZ(50px); } .back { background: rgba(0, 2...
filter - CSS: Cascading Style Sheets
ad> <tbody> <tr> <td><img alt="Test_Form_3.jpeg" id="img1" class="internal default" src="/files/3712/Test_Form_3.jpeg" style="width: 100%;" /></td> <td><img alt="Test_Form_3.jpg" id="img2" class="internal default" src="/files/3712/Test_Form_3.jpeg" style="width: 100%;" /></td> <td><div class="svg-container"><svg xmlns="http://www.w3.org/2000/svg" id="img3" viewbox="0 0 240
151" color-interpolation-filters="sRGB"> <filter id="contrast"> <feComponentTransfer> <feFuncR type="linear" slope="2" intercept="-0.5"/> <feFuncG type="linear" slope="2" intercept="-0.5"/> <feFuncB type="linear" slope="2" intercept="-0.5"/> </feComponentTransfer> </filter> <image xlink:href="/files/3712/Test_Form_3.jpeg" filter="url(#contrast)" width="240px" height="1...
...%" width="200%" height="200%"> <feOffset dx="9" dy="9" in="SourceAlpha"/> <feGaussianBlur stdDeviation="5"/> </filter> <use xlink:href="#MyImage" filter="url(#drop-shadow)"/> <use xlink:href="#MyImage"/> </svg> </div> </td> <td><img alt="Test_Form_4_s.jpg" id="img4" class="internal default" src="/files/37
15/Test_Form_4_s.jpg" style="width: 100%;" /></td> </tr> <tr> <td><img alt="Test_Form_4 distorded border - Original image" id="img11" class="internal default" src="/files/8467/Test_Form_4_irregular-shape_opacity-gradient.png" style="width: 100%;" /></td> <td><img alt="Test_Form_4 distorded border - Live example" id="img12" class="internal default" src="/files/8467/Test_Form_4_irr...
...tyle="width: 100%;" /></td> <td><img alt="Test_Form_5.jpg" id="img2" class="internal default" src="/files/3716/Test_Form_5.jpeg" style="width: 100%;" /></td> <td><div class="svg-container"><svg xmlns="http://www.w3.org/2000/svg" id="img3" viewbox="0 0 276 184" color-interpolation-filters="sRGB"> <filter id="grayscale"> <feColorMatrix type="matrix" values="0.2126 0.7
152 0.0722 0 0 0.2126 0.7
152 0.0722 0 0 0.2126 0.7
152 0.0722 0 0 0 0 0 1 0"/> </filter> <image xlink:href="/files/3716/Test_Form_5.jpeg" filter="url(#grayscale)" width="276px" height="184px" /> </svg><div></td> <td><img alt="Test_Form_5_s.jpg" id="img4" class="internal default" src="/files/3717/Test_Form_5_s.jpg" style="w...
outline-style - CSS: Cascading Style Sheets
a user interface default for the platform, or perhaps a style that is richer than can be described in detail in CSS, e.g. a rounded edge outline with semi-translucent outer pixels that appears to glow. ...
... make the Demo clearer */ * { outline-width: 10px; padding:
15px; } Result Setting outline style to dashed and dotted HTML <div> <div class="dotted"> <p class="dashed">Outline Demo</p> </div> </div> CSS .dotted { outline-style: dotted; /* same result as "outline: dotted" */ } .dashed { outline-style: dashed; } /* To make the Demo clearer */ * { outline-width: 10px; padding:
15px; } Result Setting outline style to solid and double HTML <div> <div class="solid"> <p class="double">Outline Demo</p> </div> </div> CSS .solid { outline-style: solid; } .double { outline-style: double; } /* To make the Demo clearer */ * { outline-width: 10px; padding:
15px; } Result Setting outline style to groove and ridge HTML <div> <div class="groove"> <p ...
... .double { outline-style: double; } /* To make the Demo clearer */ * { outline-width: 10px; padding:
15px; } Result Setting outline style to groove and ridge HTML <div> <div class="groove"> <p class="ridge">Outline Demo</p> </div> </div> CSS .groove { outline-style: groove; } .ridge { outline-style: ridge; } /* To make the Demo clearer */ * { outline-width: 10px; padding:
15px; } Result Setting outline style to inset and outset HTML <div> <div class="inset"> <p class="outset">Outline Demo</p> </div> </div> CSS .inset { outline-style: inset; } .outset { outline-style: outset; } /* To make the Demo clearer */ * { outline-width: 10px; padding:
15px; } Result Specifications Specification Status Comment CSS Basic User ...
Media buffering, seeking, and time ranges - Developer guides
ct. start(index): The start time, in seconds, of a time range. end(index): The end time, in seconds, of a time range. Without any user interaction there is usually only one time range, but if you jump about in the media more than one time range can appear, as illustrated by the below visualization. ...
...edia more than one time range can appear, as illustrated by the below visualization. This represents two buffered time ranges -- one spanning 0 to 5 seconds and the second spanning
15 to 19 seconds. ...
... |===========| | ------------------------------------------------------ 0 5
15 19 21 For this audio instance, the associated TimeRanges object would have the following available properties: myAudio.buffered.length; // returns 2 myAudio.buffered.start(0); // returns 0 myAudio.buffered.end(0); // returns 5 myAudio.buffered.start(1); // returns
15 myAudio.buffered.end(1); // returns 19 To try out and visualize buffered time ranges we can write a little bit of HTML: <p> <audio id="my-audio" controls> <source src="music.mp3" type="audio/mpeg"> </audio> </p> <p> <canvas id="my-canvas" width="300" height="20"> </canvas> </p> and a little bit of JavaScript: window.onload = function(){ var myAudio = document.getElementBy...
Rich-Text Editing in Mozilla - Developer guides
FmGboiwAAAAIdEVYdENvbW1lbnQA9syWvwAAAuFJREFUOMvtlUtsjFEUx//n3nn0YdpBh1abRpt4LFqtqkc3jRKkNEIsiIRIBBEhJJpKlIVo4m1RRMKKjQiRMJRUqUdKPT71qpIpiRKPaqdF55tv5vvusZjQTjOlseUkd3Xu/3dPzusC/22wtu2wRn+jG5So/OCDh8ycMJDflehMlkJkVK7KUYN+ufzA/RttH76zaVocDptRxzQtNi3mRWuPc+6cKtlXZ/sddP2uu9uXlmYXZ6Qm8v4Tz8lhF1H+zDQXt7S8oLMXtbF4e8QaFHjj3kbP2MzkktHpiTjp9VH6iHiA+whtAsX5brpwueMGdONdf/2A4M7ukDs1JW662+XkqTkeUoqjKtOjm2h53YFL
15pSJ04Zc94wdtibr26fXlC2mzRvBccEbz2kiRFD414tKMlEZbVGT33+qCoHgha81SWYsew0r1uzfNylmtpx80pngQQ91LwVk2JGvGnfvZG6YcYRAT16GFtW5kKKfo1EQLtfh5Q2etT0BIWF+aitq4fDbk+ImYo1OxvGF03waFJQvBCkvDffRyEtxQiFFYgAZTHS0zwAGD7fG5TNnYNTp8/FzvGwJOfmgG7GOx0SAKKgQgDMgKBI0NJGMEImpGDk5+WACEwEd0ywblhGUZ4Hw5OdUekRBLT7DTgdEgxACsIznx8zpmWh7k4rkpJcuHDxCul6MDsmmBXDlWCH2+XozSgBnzsNCEE4euYV4pwCpsWYPW0UHDYBKSWu1NYjENDReqtKjwn2+zvtTc1vMS...
...syWvwAAAuhJREFUOMtjYBgFxAB501ZWBvVaL2nHnlmk6mXCJbF69zU+Hz/9fB5O1lx+bg45qhl8/fYr5it3XrP/YWTUvvvk3VeqGXz70TvbJy8+Wv39+2/Hz19/mGwjZzuTYjALuoBv9jImaXHeyD3H7kU8fPj2ICML8z92dlbtMzdeiG3fco7J08foH1kurkm3E9iw54YvKwuTuom+LPt/BgbWf3//sf37/1/c02cCG1lB8f//f95DZx74MTMzshhoSm6szrQ/a6Ir/Z2RkfEjBxuLYFpDiDi6Af///2ckaHBp7+7wmavP5n76+P2ClrLIYl8H9W36auJCbCxM4szMTJac7Kza////R3H1w2cfWAgafPbqs5g7D95++/P1B4+ECK8tAwMDw/1H7
159+/7r7ZcvPz4fOHbzEwMDwx8GBgaGnNatfHZx8zqrJ+4VJBh5CQEGOySEua/v3n7hXmqI8WUGBgYGL3vVG7fuPK3i5GD9/fja7ZsMDAzMG/Ze52mZeSj4yu1XEq/ff7W5dvfVAS1lsXc4Db7z8C3r8p7Qjf///2dnZGxlqJuyr3rPqQd/Hhyu7oSpYWScylDQsd3kzvnH738wMDzj5GBN1VIWW4c3KDon7VOvm7S3paB9u5qsU5/x5KUnlY+eexQbkLNsErK61+++VnAJcfkyMTIwffj0QwZbJDKjcETs1Y8evyd48toz8y/ffzv//vPP4veffxpX77z6l5JewHPu8MqTDAwMDLzyrjb/mZm0JcT5Lj+89+Ybm6zz95oMh7s4XbygN3Sluq4Mj5K...
..." /> <img class="intLink" title="Italic" onclick="formatDoc('italic');" src="data:image/gif;base64,R0lGODlhFgAWAKEDAAAAAF9vj5WIbf///yH5BAEAAAMALAAAAAAWABYAAAIjnI+py+0Po5x0gXvruEKHrF2BB1YiCWgbMFIYpsbyTNd2UwAAOw==" /> <img class="intLink" title="Underline" onclick="formatDoc('underline');" src="data:image/gif;base64,R0lGODlhFgAWAKECAAAAAF9vj////////yH5BAEAAAIALAAAAAAWABYAAAIrlI+py+0Po5zUgAsEzvEeL4Ea
15EiJJ5PSqJmuwKBEKgxVuXWtun+DwxCCgA7" /> <img class="intLink" title="Left align" onclick="formatDoc('justifyleft');" src="data:image/gif;base64,R0lGODlhFgAWAID/AMDAwAAAACH5BAEAAAAALAAAAAAWABYAQAIghI+py+0Po5y02ouz3jL4D4JMGELkGYxo+qzl4nKyXAAAOw==" /> <img class="intLink" title="Center align" onclick="formatDoc('justifycenter');" src="data:image/gif;base64,R0lGODlhFgAWAID/AMDAwAAAACH5BAEAAAAALAAAAAAWAB...
Making content editable - Developer guides
FmGboiwAAAAIdEVYdENvbW1lbnQA9syWvwAAAuFJREFUOMvtlUtsjFEUx//n3nn0YdpBh1abRpt4LFqtqkc3jRKkNEIsiIRIBBEhJJpKlIVo4m1RRMKKjQiRMJRUqUdKPT71qpIpiRKPaqdF55tv5vvusZjQTjOlseUkd3Xu/3dPzusC/22wtu2wRn+jG5So/OCDh8ycMJDflehMlkJkVK7KUYN+ufzA/RttH76zaVocDptRxzQtNi3mRWuPc+6cKtlXZ/sddP2uu9uXlmYXZ6Qm8v4Tz8lhF1H+zDQXt7S8oLMXtbF4e8QaFHjj3kbP2MzkktHpiTjp9VH6iHiA+whtAsX5brpwueMGdONdf/2A4M7ukDs1JW662+XkqTkeUoqjKtOjm2h53YFL
15pSJ04Zc94wdtibr26fXlC2mzRvBccEbz2kiRFD414tKMlEZbVGT33+qCoHgha81SWYsew0r1uzfNylmtpx80pngQQ91LwVk2JGvGnfvZG6YcYRAT16GFtW5kKKfo1EQLtfh5Q2etT0BIWF+aitq4fDbk+ImYo1OxvGF03waFJQvBCkvDffRyEtxQiFFYgAZTHS0zwAGD7fG5TNnYNTp8/FzvGwJOfmgG7GOx0SAKKgQgDMgKBI0NJGMEImpGDk5+WACEwEd0ywblhGUZ4Hw5OdUekRBLT7DTgdEgxACsIznx8zpmWh7k4rkpJcuHDxCul6MDsmmBXDlWCH2+XozSgBnzsNCEE4euYV4pwCpsWYPW0UHDYBKSWu1NYjENDReqtKjwn2+zvtTc1vMS...
...syWvwAAAuhJREFUOMtjYBgFxAB501ZWBvVaL2nHnlmk6mXCJbF69zU+Hz/9fB5O1lx+bg45qhl8/fYr5it3XrP/YWTUvvvk3VeqGXz70TvbJy8+Wv39+2/Hz19/mGwjZzuTYjALuoBv9jImaXHeyD3H7kU8fPj2ICML8z92dlbtMzdeiG3fco7J08foH1kurkm3E9iw54YvKwuTuom+LPt/BgbWf3//sf37/1/c02cCG1lB8f//f95DZx74MTMzshhoSm6szrQ/a6Ir/Z2RkfEjBxuLYFpDiDi6Af///2ckaHBp7+7wmavP5n76+P2ClrLIYl8H9W36auJCbCxM4szMTJac7Kza////R3H1w2cfWAgafPbqs5g7D95++/P1B4+ECK8tAwMDw/1H7
159+/7r7ZcvPz4fOHbzEwMDwx8GBgaGnNatfHZx8zqrJ+4VJBh5CQEGOySEua/v3n7hXmqI8WUGBgYGL3vVG7fuPK3i5GD9/fja7ZsMDAzMG/Ze52mZeSj4yu1XEq/ff7W5dvfVAS1lsXc4Db7z8C3r8p7Qjf///2dnZGxlqJuyr3rPqQd/Hhyu7oSpYWScylDQsd3kzvnH738wMDzj5GBN1VIWW4c3KDon7VOvm7S3paB9u5qsU5/x5KUnlY+eexQbkLNsErK61+++VnAJcfkyMTIwffj0QwZbJDKjcETs1Y8evyd48toz8y/ffzv//vPP4veffxpX77z6l5JewHPu8MqTDAwMDLzyrjb/mZm0JcT5Lj+89+Ybm6zz95oMh7s4XbygN3Sluq4Mj5K...
..." /> <img class="intLink" title="Italic" onclick="formatDoc('italic');" src="data:image/gif;base64,R0lGODlhFgAWAKEDAAAAAF9vj5WIbf///yH5BAEAAAMALAAAAAAWABYAAAIjnI+py+0Po5x0gXvruEKHrF2BB1YiCWgbMFIYpsbyTNd2UwAAOw==" /> <img class="intLink" title="Underline" onclick="formatDoc('underline');" src="data:image/gif;base64,R0lGODlhFgAWAKECAAAAAF9vj////////yH5BAEAAAIALAAAAAAWABYAAAIrlI+py+0Po5zUgAsEzvEeL4Ea
15EiJJ5PSqJmuwKBEKgxVuXWtun+DwxCCgA7" /> <img class="intLink" title="Left align" onclick="formatDoc('justifyleft');" src="data:image/gif;base64,R0lGODlhFgAWAID/AMDAwAAAACH5BAEAAAAALAAAAAAWABYAQAIghI+py+0Po5y02ouz3jL4D4JMGELkGYxo+qzl4nKyXAAAOw==" /> <img class="intLink" title="Center align" onclick="formatDoc('justifycenter');" src="data:image/gif;base64,R0lGODlhFgAWAID/AMDAwAAAACH5BAEAAAAALAAAAAAWAB...
<input type="image"> - HTML: Hypertext Markup Language
ar <img> element, but with the capabilities of a submit button. Essential image input features Let's look at a basic example that includes all the essential features you'd need to use (These work exactly the same as they do on the <img> element.): <input id="image" type="image" width="100" height="30" alt="Login" src="/static/external/62/62ac2ecddbec0e0b540098c28451e57203e5cab46dfed7ab01
15d5a659fcfb7b.png"> The src attribute is used to specify the path to the image you want to display in the button. The alt attribute provides alt text for the image, so screen reader users can get a better idea of what the button is used for. It will also display if the image can't be shown for any reason (for example if the path is misspelled). If possible, use text which matches the label yo...
...of a typical login form. ...
...d object-position. ...
Index - HTTP
made. 14 Access-Control-Request-Method CORS, HTTP, Reference, header The Access-Control-Request-Method request header is used when issuing a preflight request to let the server know which HTTP method will be used when the actual request is made. This header is necessary as the preflight request is always an OPTIONS and doesn't use the same method as the actual request.
15 Age Caching, HTTP, Response, header The Age header contains the time in seconds the object has been in a proxy cache. 16 Allow Entity header, HTTP, HTTP Header, Reference, header The Allow header lists the set of methods support by a resource. 17 Alt-Svc Draft, HTTP, HTTP Header, NeedsCompatTable, NeedsContent, NeedsExample, Reference The Al...
...e request HTTP header makes the request conditional: the server will send back the requested resource, or accept it in the case of a POST or another non-safe method, only if it has not been last modified after the given date. If the resource has been modified after the given date, the response will be a 412 (Precondition Failed) error. 82 Index HTTP, HTTP Header, Index Found 1
15 pages: 83 Keep-Alive General Header, HTTP, HTTP Header, Reference The Keep-Alive general header allows the sender to hint about how the connection may be used to set a timeout and a maximum amount of requests. 84 Large-Allocation HTTP, HTTP Header, Non-standard, Reference, Response Header, header The non-standard Large-Allocation response header tells the...
...esponse headers. It is used for tracking message forwards, avoiding request loops, and identifying the protocol capabilities of senders along the request/response chain. 114 WWW-Authenticate HTTP, HTTP Header, Reference, Response Header, header The HTTP WWW-Authenticate response header defines the authentication method that should be used to gain access to a resource. 1
15 Warning General Header, HTTP, Reference, header The Warning general HTTP header contains information about possible problems with the status of the message. More than one Warning header may appear in a response. 116 X-Content-Type-Options HTTP, HTTP Header, Reference, Response Header The X-Content-Type-Options response HTTP header is a marker used by the server ...
Firefox user agent string reference - HTTP
. This way, your code will work if/when Firefox ships on other phone/tablet operating systems or Android is used for laptops. Also, please use touch detection to find touch devices rather than looking for "Mobi" or "Tablet", since there may be touch devices which are not tablets. Firefox OS devices identify themselves without any operating system indication; for example: "Mozilla/5.0 (Mobile; rv:
15.0) Gecko/
15.0 Firefox/
15.0". The web is the platform. Windows Windows user agents have the following variations, where x.y is the Windows NT version (for instance, Windows NT 6.1). Windows version Gecko user agent string Windows NT on x86 CPU Mozilla/5.0 (Windows NT x.y; rv:10.0) Gecko/20100101 Firefox/10.0 Windows NT on x64 CPU Mozilla/5.0 (Windows NT x...
... Firefox for Fire TV Version 3 (and probably earlier) of Firefox for Fire TV use a user agent string with the following format: Mozilla/5.0 (Linux; <Android version>) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Focus/<firefoxversion...
... Firefox for Fire TV Version 3 (and probably earlier) of Firefox for Fire TV use a user agent string with the following format: Mozilla/5.0 (Linux; <Android version>) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Focus/<firefoxversion> Chrome/<Chrome Rev> Safari/<WebKit Rev> Firefox T...
User-Agent - HTTP
e/51.0.2704.103 Safari/537.36 Opera UA string The Opera browser is also based on the Blink engine, which is why it almost looks the same, but adds "OPR/<version>". ...
... Safari/537.36 OPR/38.0.2220.41 Older, Presto-based Opera releases used: Opera/9.80 (Macintosh; Intel Mac OS X; U; en) Presto/2.2.
15 Version/10.00 Opera/9.60 (Windows NT 6.0; U; en) Presto/2.1.1 Safari UA string In this example, the user agent string is mobile Safari's version. It contains the word "Mobile". ...
...o-based Opera releases used: Opera/9.80 (Macintosh; Intel Mac OS X; U; en) Presto/2.2.
15 Version/10.00 Opera/9.60 (Windows NT 6.0; U; en) Presto/2.1.1 Safari UA string In this example, the user agent string is mobile Safari's version. It contains the word "Mobile". ...
Proxy Auto-Configuration (PAC) file - HTTP
nge(<day1>, <month1>, <year1>, <day2>, <month2>, <year2>, [gmt]) Note: (Before Firefox 49) day1 must be less than day2, month1 must be less than month2, and year1 must be less than year2 if you want the function to evaluate these parameters as a range. See the warning below. Parameters day Is the ordered day of the month between 1 and 31 (as an integer). 1|2|3|4|5|6|7|8|9|10|11|12|13|14|
15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31 month Is one of the ordered month strings below. "JAN"|"FEB"|"MAR"|"APR"|"MAY"|"JUN"|"JUL"|"AUG"|"SEP"|"OCT"|"NOV"|"DEC" year Is the ordered full year integer number. For example, 2016 (not 16). gmt Is either the string "GMT", which makes time comparison occur in GMT timezone, or is left out. If left unspecified, times are taken to be in...
...ays, months, and years matter; Before Firefox 49, dateRange("JAN", "DEC") will always evaluate to true. Now dateRange("DEC", "JAN") will only evaluate true if the current month is December or January. ...
... // returns true on the first day of each month, local timezone dateRange(1, "GMT") // returns true on the first day of each month, GMT timezone dateRange(1,
15); // returns true on the first half of each month dateRange(24, "DEC"); // returns true on 24th of December each year dateRange("JAN", "MAR"); // returns true on the first quarter of the year dateRange(1, "JUN",
15, "AUG"); // returns true from June 1st until August
15th, each year // (including June 1st and August
15th) dateRange(1, "JUN", 1995,
15, "AUG", 1995); // returns true from June 1st, 1995, until August
15th, same year dateRange("OCT", 1995, "MAR", 1996); // returns true from October 1995 until March 1996 // (including the entire month of October 1995 and March 1996) dateRange(1995); // returns...
JavaScript data types and data structures - JavaScript
bit binary format IEEE 754 value (numbers between -(253 - 1) and 253 - 1). In addition to representing floating-point numbers, the number type has three symbolic values: +Infinity, -Infinity, and NaN ("Not a Number"). To check for the largest available value or smallest available value within +-Infinity, you can use the constants Number.MAX_VALUE or Number.MIN_VALUE. Starting with ECMAScript 20
15, you are also able to check if a number is in the double-precision floating-point number range using Number.isSafeInteger() as well as Number.MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER. Beyond this range, integers in JavaScript are not safe anymore and will be a double-precision floating point approximation of the value. The number type has only one integer with two representations: 0 is rep...
...-key-ed properties and the length property. Additionally, arrays inherit from Array.prototype, which provides to them a handful of convenient methods to manipulate arrays. For example, indexOf (searching a value in the array) or push (adding an element to the array), and so on. This makes Arrays a perfect candidate to represent lists or sets. Typed Arrays are new to JavaScript with ECMAScript 20
15, and present an array-like view of an underlying binary data buffer. The following table helps determine the equivalent C data types: Type Value Range Size in bytes Description Web IDL type Equivalent C type Int8Array -128 to 127 1 8-bit two's complement signed integer byte int8_t Uint8Array 0 to 255 1 8-bit unsigned integer ...
... int32_t Uint32Array 0 to 4294967295 4 32-bit unsigned integer unsigned long uint32_t Float32Array 1.2x10-38 to 3.4x1038 4 32-bit IEEE floating point number (7 significant digits e.g., 1.1234567) unrestricted float float Float64Array 5.0x10-324 to 1.8x10308 8 64-bit IEEE floating point number (16 significant digits e.g., 1.123...
15) unrestricted double double BigInt64Array -263 to 263-1 8 64-bit two's complement signed integer bigint int64_t (signed long long) BigUint64Array 0 to 264-1 8 64-bit unsigned integer bigint uint64_t (unsigned long long) Keyed collections: Maps, Sets, WeakMaps, WeakSets These data structures, introduced in ECMAScript Edition 6, take obj...
JavaScript modules - JavaScript
geFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.jsimportChrome Full support 61Edge Full support 16 Full support 16 Full support
15Disabled Disabled From version
15: this feature is behind the Experimental JavaScript Features preference.Firefox Full support 60 Full support 60 No support 54 -- 60Disabled Disabled From version 54 until version 60 (exclusive): this feature is behind the dom.moduleScripts.enabled pr...
...geFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.jsexportChrome Full support 61Edge Full support 16 Full support 16 Full support
15Disabled Disabled From version
15: this feature is behind the Experimental JavaScript Features preference.Firefox Full support 60 Full support 60 No support 54 -- 60Disabled Disabled From version 54 until version 60 (exclusive): this feature is behind the dom.moduleScripts.enabled pr...
...cumentation for more details.Disabled From version 8.5.0: this feature is behind the --experimental-modules runtime flag.default keyword with exportChrome Full support 61Edge Full support 16 Full support 16 Full support
15Disabled Disabled From version
15: this feature is behind the Experimental JavaScript Features preference.Firefox Full support 60 Full support 60 No support 54 -- 60Disabled Disabled From version 54 until version 60 (exclusive): this feature is behind the dom.moduleScripts.enabled pr...
Text formatting - JavaScript
sing either single or double quotes: 'foo' "bar" More advanced strings can be created using escape sequences: Hexadecimal escape sequences The number after \x is interpreted as a hexadecimal number. '\xA9' // "(C)" Unicode escape sequences The Unicode escape sequences require at least four hexadecimal digits following \u. '\u00A9' // "(C)" Unicode code point escapes New in ECMAScript 20
15. With Unicode code point escapes, any character can be escaped using hexadecimal numbers so that it is possible to use Unicode code points up to 0x10FFFF. With simple Unicode escapes it is often necessary to write the surrogate halves separately to achieve the same result. See also String.fromCodePoint() or String.prototype.codePointAt(). '\u{2F804}' // the same with simple Unicode escapes '\u...
... Internationalization The Intl object is the nam...
...owing 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(`Fifteen is ${five + ten} and not ${2 * five + ten}.`); // "Fifteen is
15 and not 20." For more information, read about Template literals in the JavaScript reference. Internationalization The Intl object is the namespace for the ECMAScript Internationalization API, which provides language sensitive string comparison, number formatting, and date and time formatting. The constructors for Collator, NumberFormat, and DateTimeFormat objects are properties of the Intl obj...
Inheritance and the prototype chain - JavaScript
When it comes to inheritance, JavaScript only has one construct: objects. Each object has a private property which holds a link to another object called its prototype. That prototype object has a prototype of its own, and so on until an object is reached with null as its prototype. ...
...s a property of an object, the property will not only be sought on the object but on the prototype of the object, the prototype of the prototype, and so on until either a property with a matching name is found or the end of the prototype chain is reached. Following the ECMAScript standard, the notation someObject.[[Prototype]] is used to designate the prototype of someObject. Since ECMAScript 20
15, the [[Prototype]] is accessed using the accessors Object.getPrototypeOf() and Object.setPrototypeOf(). This is equivalent to the JavaScript property __proto__ which is non-standard but de-facto implemented by many browsers. It should not be confused with the func.prototype property of functions, which instead specifies the [[Prototype]] to be assigned to all instances of objects created by the ...
...The new keywords include class, constructor, static, extends, and super. 'use strict'; class Polygon { constructor(height, width) { this.height = height; this.width = width; } } class Square extends Polygon { constructor(sideLength) { super(sideLength, sideLength); } get area() { return this.height * this.width; ...
Warning: JavaScript 1.6's for-each-in loops are deprecated - JavaScript
Deprecated syntax var array = [10, 20, 30]; for each...
...t)) { console.log(x); // 10 // 20 } Array iteration for each...in has been used to iterate over specified array elements. Deprecated syntax var array = [10, 20, 30]; for each (var x in array) { console.log(x); // 10 // 20 // 30 } Alternative standard syntax This is now possible with for...of (ES20
15) loops as well. var array = [10, 20, 30]; for (var x of array) { console.log(x); // 10 // 20 // 30 } Iterating over a null-able array for each...in does nothing if the specified value is null or undefined, but for...of will throw an exception in these cases. Deprecated syntax function func(array) { for each (var x in array) { ...
...lue); // "a", 10 // "b", 20 } Alternative standard syntax You can now use the standard for...in loop to iterate over specified object keys, and get each value inside the loop: var object = { a: 10, b: 20 }; for (var key in object) { var value = object[key]; console.log(key, value); // "a", 10 // "b", 20 } Or, using for...of (ES20
15) and Object.entries (ES2017), you can get an array of the specified object values and iterate over the array like this: var object = { a: 10, b: 20 }; for (var [key, value] of Object.entries(object)) { console.log(key, value); // "a", 10 // "b", 20 } ...
Array.prototype.copyWithin() - JavaScript
); // Steps 9-11. var relativeStart = start >> 0; var from = relativeStart < 0 ? Math.max(len + relativeStart, 0) : Math.min(relativeStart, len); // Steps 12-14. var end = arguments[2]; var relativeEnd = end === undefined ? len : end >> 0; var final = relativeEnd < 0 ? Math.max(len + relativeEnd, 0) : Math.min(relativeEnd, len); // Step
15. var count = Math.min(final - from, len - to); // Steps 16-17. var direction = 1; if (from < to && to < (from + count)) { direction = -1; from += count - 1; to += count - 1; } // Step 18. while (count > 0) { if (from in O) { O[to] = O[from]; } else { delete O[to]; } from += direction; to += direction; ...
...ep 19. ...
... ...
Array.prototype.filter() - JavaScript
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]; function isPrime(num) { for (let i = 2; num > i; i++) { if (num % i == 0) { return false; } } return num > 1; } console.log(array.filter(isPrime)); // [2, 3, 5, 7, 11, 13] Filtering invalid entries from JSON The following example uses filter() to create a filtered json of all elements with non-zero, numeric id. ...
... { id:
15 }, { id: -1 }, { id: 0 }, { id: 3 }, { id: 12.2 }, { }, { id: null }, { id: NaN }, { id: 'undefined' } ] let invalidEntries = 0 function filterByID(item) { if (Number.isFinite(item.id) && item.id !== 0) { return true } invalidEntries++ return false; } let arrByID = arr.filter(filterByID) console.log('Filtered Array\n', arrByID) // Filtered Array // [{ id:
15 }, { id: -1 }, { id: 3 }, { id: 12.2 }] console.log('Number of Invalid Entries = ', invalidEntries) // Number of Invalid Entries = 5 Searching in array Following example uses filter() to filter array content based on search criteria. let fruits = ['apple', 'banana', 'grapes', 'mango', 'orange'] /** * Filter array items based on search criteria (query) */ function filterItems(arr, query) {...
...= ['apple', 'banana', 'grapes', 'mango', 'orange'] /** * Filter array items based on search criteria (query) */ function filterItems(arr, query) { return arr.filter(function(el) { return el.toLowerCase().indexOf(query.toLowerCase()) !== -1 }) } console.log(filterItems(fruits, 'ap')) // ['apple', 'grapes'] console.log(filterItems(fruits, 'an')) // ['banana', 'mango', 'orange'] ES20
15 Implementation const fruits = ['apple', 'banana', 'grapes', 'mango', 'orange'] /** * Filter array items based on search criteria (query) */ const filterItems = (arr, query) => { return arr.filter(el => el.toLowerCase().indexOf(query.toLowerCase()) !== -1) } console.log(filterItems(fruits, 'ap')) // ['apple', 'grapes'] console.log(filterItems(fruits, 'an')) // ['banana', 'mango', 'orange'...
Date.prototype.getYear() - JavaScript
r is 1976, the value returned is 76. For years less than 1900 or greater than 1999, the value returned by getYear() is the four-digit year. For example, if the year is 1856, the value returned is 1856. If the year is 2026, the value returned is 2026. Examples Years between 1900 and 1999 The second statement assigns the value 95 to the variable year. ...
... value returned is 1856. If the year is 2026, the value returned is 2026. Examples Years between 1900 and 1999 The second statement assigns the value 95 to the variable year. var Xmas = new Date('December 25, 1995 23:
15:00'); var year = Xmas.getYear(); // returns 95 Years above 1999 The second statement assigns the value 100 to the variable year. var Xmas = new Date('December 25, 2000 23:
15:00'); var year = Xmas.getYear(); // returns 100 Years below 1900 The second statement assigns the value -100 to the variable year. var Xmas = new Date('December 25, 1800 23:
15:00'); var year = Xmas.getYear(); // returns -100 Setting and getting a year between 1900 and 1999 The third statement assigns the value 95 to the variable year, representing the year 1995. var Xmas = new Date('Decem...
... year = Xmas.getYear(); // returns 100 Years below 1900 The second statement assigns the value -100 to the variable year. var Xmas = new Date('December 25, 1800 23:
15:00'); var year = Xmas.getYear(); // returns -100 Setting and getting a year between 1900 and 1999 The third statement assigns the value 95 to the variable year, representing the year 1995. var Xmas = new Date('December 25, 20
15 23:
15:00'); Xmas.setYear(95); var year = Xmas.getYear(); // returns 95 Specifications Specification ECMAScript (ECMA-262)The definition of 'Date.prototype.getYear' in that specification. ...
JSON.stringify() - JavaScript
alized. ...
...SON.stringify JSON.stringify({}); // '{}' JSON.stringify(true); // 'true' JSON.stringify('foo'); // '"foo"' JSON.stringify([1, 'false', false]); // '[1,"false",false]' JSON.stringify([NaN, null, Infinity]); // '[null,null,null]' JSON.stringify({ x: 5 }); // '{"x":5}' JSON.stringify(new Date(2006, 0, 2,
15, 4, 5)) // '"2006-01-02T
15:04:05.000Z"' JSON.stringify({ x: 5, y: 6 }); // '{"x":5,"y":6}' JSON.stringify([new Number(3), new String('false'), new Boolean(false)]); // '[3,"false",false]' // String-keyed array elements are not enumerable and make no sense in JSON let a = ['foo', 'bar']; a['baz'] = 'quux'; // a: [ 0: 'foo', 1: 'bar', baz: 'quux' ] JSON.stringify(a); // '["foo","bar"]' JSON.stringify({ x: [10, undefi...
...// '{"obj":"Now I am a nested object under key 'obj'"}' JSON.stringify([ obj ]); // '["Now I am a nested object under key '0'"]' Issue with JSON.stringify() when serializing circular references Note that since the JSON format doesn't support object references (although an IETF draft exists), a TypeError will be thrown if one attempts to encode an object with circular references. const circ...
Math.log1p() - JavaScript
project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax Math.log1p(x) Parameters x A number. Return value The natural logarithm (base e) of 1 plus the given number. If the number is less than -1, NaN is returned. Description For very small values of x, adding 1 can reduce or eliminate precision. ...
...ithub.com/mdn/interactive-examples and send us a pull request. Syntax Math.log1p(x) Parameters x A number. Return value The natural logarithm (base e) of 1 plus the given number. If the number is less than -1, NaN is returned. Description For very small values of x, adding 1 can reduce or eliminate precision. The double floats used in JS give you about
15 digits of precision. 1 + 1e-
15 = 1.000000000000001, but 1 + 1e-16 = 1.000000000000000 and therefore exactly 1.0 in that arithmetic, because digits past
15 are rounded off. When you calculate log(1 + x), you should get an answer very close to x, if x is small (that's why these are called 'natural' logarithms). If you calculate Math.log(1 + 1.1111111111e-
15) you should get an answer close to 1.1111111111e-
15. Instead, you w...
...en you calculate log(1 + x), you should get an answer very close to x, if x is small (that's why these are called 'natural' logarithms). If you calculate Math.log(1 + 1.1111111111e-
15) you should get an answer close to 1.1111111111e-
15. Instead, you will end up taking the logarithm of 1.00000000000000111022 (the roundoff is in binary so sometimes it gets ugly), so you get the answer 1.11022...e-
15, with only 3 correct digits. If, instead, you calculate Math.log1p(1.1111111111e-
15) you will get a much more accurate answer 1.1111111110999995e-
15 with
15 correct digits of precision (actually 16 in this case). If the value of x is less than -1, the return value is always NaN. Because log1p() is a static method of Math, you always use it as Math.log1p(), rather than as a method of a Math ob...
TypedArray - JavaScript
low. On the following pages you will find common properties and methods that can be used with any typed array containing elements of any type. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Description ECMAScript 20
15 defines a TypedArray constructor that serves as the [[Prototype]] of all TypedArray constructors. This constructor is not directly exposed: there is no global %TypedArray% or TypedArray property. It is only directly accessible through Object.getPrototypeOf(Int8Array) and similar. All TypedArrays constructors inherit common properties from the %TypedArray% constructor function. Additionally, a...
...Instead, you create an instance of an array of a particular ...
...ing representing the array and its elements. See also Array.prototype.toLocaleString(). TypedArray.prototype.toString() Returns a string representing the array and its elements. See also Array.prototype.toString(). TypedArray.prototype[@@iterator]() Returns a new Array Iterator object that contains the values for each index in the array. Examples New is required Starting with ECMAScript 20
15, TypedArray constructors must be constructed with the new operator. Calling a TypedArray constructor as a function without new will throw a TypeError. var dv = Int8Array([1, 2, 3]); // TypeError: calling a builtin Int8Array constructor // without new is forbidden var dv = new Int8Array([1, 2, 3]); Property access You can reference elements in the array using standard array index syntax (that ...
Web audio codec guide - Web media technologies
eing said, so quality is reduced accordingly. If you need the ability to record audio at a minimal impact to network and/or storage capacity, AMR can be a great choice. However, if you need high-fidelity reproduction of human speech--or even low-quality music reproduction--you need to choose another format. ...
... G.722 (64 kbps (7 kHz) audio coding) Published by the International Telecommunications ...
... Container support Ogg, WebM, MPEG-TS, MP4 RTP / WebRTC compatible Yes Licensing Fully open and free of any licensing requirements [1] The specified sample rates are effective sample rates. Opus u...
Image file type and format guide - Web media technologies
image is needed. ...
...s within an SVG. MIME type image/svg+xml File extension(s) .svg Specification w3.org/TR/SVG2 Browser compatibility Feature Chrome Edge Firefox Internet Explorer Opera Safari SVG support 4 12 3 9 10 (Presto)
15 (Blink) 3.2 SVG as image (<img> etc) 28 12 4 9 10 (Presto)
15 (Blink) 9 Maximum dimensions Unlimited Supported color modes Colors in SVG are specified using CSS color syntax. Compression SVG source may be compressed during transit using HTTP compression technique...
... Specification RFC 6386: VP8 Data Format and Decoding Guide (lossy encoding) WebP Lossless Bitstream Specification Browser compatibility Feature Chrome Edge Firefox Internet Explorer Opera Safari Lossy WebP support 17 18 65 no 11.10 (Presto)
15 (Blink) no Lossless WebP 23 25 on Android 18 65 no 12.10 (Presto)
15 (Blink) no Animation 32 18 65 no 19 (Blink) no Maximum dimensions 16,383x16,383 pixels Supported color modes Lossy WebP stores the imag...
<animateMotion> - SVG: Scalable Vector Graphics
define how an element moves along a motion path. Note: To reuse an existing path, it will be necessary to use an <mpath> element inside the <animateMotion> element instead of the path attribute. ...
...moves along a motion path. Note: To reuse an existing path, it will be necessary to use an <mpath> element inside the <animateMotion> element instead of the path attribute. ...
...tion> element instead of the path attribute. html,body,svg { height:100%; margin: 0; padding: 0; display:block; } <svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="lightgrey" d="M20,50 C20,-50 180,
150 180,50 C180-50 20,
150 20,50 z" /> <circle r="5" fill="red"> <animateMotion dur="10s" repeatCount="indefinite" path="M20,50 C20,-50 180,
150 180,50 C180-50 20,
150 20,50 z" /> </circle> </svg> Usage context CategoriesAnimation elementPermitted contentAny number of the following elements, in any order:Descriptive elements<mpath> Attributes keyPoints This attribute indicate, in the range [0,1], how far is the object along the path for each keyTimes associated values. Value type: <number>*; Default value: none; Animatable: n...
<solidcolor> - SVG: Scalable Vector Graphics
<solidcolor>, cannot itself be used in the definition of gradients. Usage context missing Attributes Global attributes Core attributes Global event attributes Presentation attributes Style attributes Specific attributes None. DOM interface This element implements the SVGSolidcolorElement interface. Example SVG <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200" height="
150"> <defs> <!-- solidColor is experimental. --> <solidcolor id="myColor" solid-color="gold" solid-opacity="0.8"/> <!-- linearGradient with a single color stop is a less elegant way to achieve the same effect, but it works in current browsers. --> <linearGradient id="myGradient"> <stop offset="0" stop-color="green" /> </linearGradient> </defs> <text x="10"...
...lidcolor 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. ...
...earGradient 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 ...
SVG animation with SMIL - SVG: Scalable Vector Graphics
he attribute. to The final value. dur The duration of the animation (for example, write '5s' for 5 seconds). If you want to animate more attributes inside the same element, just add more <animate> elements. <svg width="300" height="100"> <title>Attribute Animation with SMIL</title> <rect x="0" y="0" width="300" height="100" stroke="black" stroke-width="1" /> <circle cx="0" cy="50" r="
15" fill="blue" stroke="black" stroke-width="1"> <animate attributeName="cx" from="0" to="500" dur="5s" repeatCount="indefinite" /> </circle> </svg> Animating the transform attributes The <animateTransform> element let you animate transform attributes. This new element is necessary because we are not animating a simple attribute like x which is just a number. Rotation attribu...
...er. Rotation attributes look like this: rotation(theta, x, y), where theta is the angle in degrees, and x and y are absolute positions. In the example below, we animate the center of the rotation and the angle. ...
... a loop back to the beginning. By setting the value of the repeatCount attribute to indefinite, we indicate that the animation should loop forever, as long as the SVG image exists. <svg xmlns="http://www.w3.org/2000/svg" width="300" height="100"> <title>SVG SMIL Animate with Path</title> <rect x="0" y="0" width="300" height="100" stroke="black" stroke-width="1" /> <circle cx="0" cy="50" r="
15" fill="blue" stroke="black" stroke-width="1"> <animateMotion path="M 0 0 H 300 Z" dur="3s" repeatCount="indefinite" /> </circle> </svg> View live sample Example 2: Curved motion Same example as before with a curved path and following the direction of the path. <svg width="300" height="100"> <title>SVG SMIL Animate with Path</title> <rect x="0" y="0" width="300" heig...
xml:base - XML: Extensible Markup Language
using Node.baseURI. The base URI of an element is: the base URI specified by an xml:base attribute on the element, if one exists, otherwise the base URI of the element's parent element within the document entity or external entity, if one exists, otherwise the base URI of the document entity or external entity containing the element. Support was removed from blink (Chrome and Opera) in 20
15: Chromium bug 341854 blink-dev mailing list post And from Firefox 66 in bug 903372. Use cases If you have an inline 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. <html> <head> <base href="https://mydomain.com"> <style> .link { stroke: #999; stroke-opacity: .6; } marker#arrow { f...
...ker 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. E.g. ...
...k"></line> </svg> </body> </html> Imagine a SVG with font references. E.g. ...
lang/functional - Archive of obsolete content
executing on the // next event loop Parameters fn : function The function to be deferred. Returns function : The new, deferred function. remit() An alias for defer. invoke(callee, params, self) Invokes callee, passing params as an argument and self as this. Returns the value that is returned by callee. let { invoke } = require("sdk/lang/functional"); invoke(sum, [1,2,3,4,5], null); //
15 function sum () { return Array.slice(arguments).reduce(function (a, b) { return a + b; }); } Parameters callee : function Function to invoke. params : Array Parameters to be passed into callee. self : mixed Object to be passed as the this context to callee. Returns mixed : Returns the return value of callee. partial(fn, arguments...) Takes a function and bind values to one or ...
... key for storing the result. Returns function : The memoized version of fn. delay(fn, ms, arguments) Much like setTimeout, delay invokes a function after waiting a set number of milliseconds. If you pass additional, optional, arguments, they will be forwarded on to the function when it is invoked. let { delay } = require("sdk/lang/functional"); delay(printAdd, 2000, 5, 10); // Prints "5+10=
15" in two seconds (2000ms) function printAdd (a, b) { console.log(a + "+" + b + "=" + (a+b)); } Parameters fn : function A function to be delayed. ms : number Number of milliseconds to delay the execution of fn. arguments : mixed Additional arguments to pass to fn upon execution once(fn) Creates a version of the input function that can only be called one time. Repeated calls to the modifie...
window/utils - Archive of obsolete content
ons : object Options for the function, with the following properties: Name Type parent nsIDOMWindow Parent for the new window. Optional, defaults to null. name string Name that is assigned to the window. Optional, defaults to null. features object Map of features to set for the window, defined like this: { width: 10, height:
15, chrome: true }. See the window.open features documentation for more details. Optional, defaults to an empty map: {}. var { open } = require('sdk/window/utils'); var window = open('data:text/html,Hello Window', { name: 'jetpack window', features: { width: 200, height: 50, popup: true } }); args object Extra argument(s) to be attached to the new ...
...on, with the following properties: Name Type url string URI of the document to be loaded into the window. Defaults to "chrome://browser/content/browser.xul". name string Optional name that is assigned to the window. Defaults to "_blank". features string Map of features to set for the window, defined like: { width: 10, height:
15, chrome: true }. For the set of features you can set, see the window.openDialog documentation. Optional, defaults to: 'chrome,all,dialog=no'. args object Extra argument(s) to be attached to the new window as the window.arguments property. Returns nsIDOMWindow windows() Returns an array of all currently opened windows. Note that these windows may still be loa...
Embedding SVG - Archive of obsolete content
-> </body> </html> Example: <?xml version="1.0" encoding="UTF-8"?> <!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" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <body> <p>hello</p> <svg:svg version="1.1" baseProfile="full" width="
150" height="
150"> <svg:rect x="10" y="10" width="100" height="100" fill="red"/> <svg:circle cx="50" cy="50" r="30" fill="blue"/> </svg:svg> <p>world</p> </body> </html> Embedding into XUL Make sure you use the right namespace when embedding <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/...
... XUL and SVG go here --> </window> Example: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <vbox> <label value="hello"/> <svg:svg version="1.1" baseProfile="full" width="
150" height="
150"> <svg:rect x="10" y="10" width="100" height="100" fill="red"/> <svg:circle cx="50" cy="50" r="30" fill="blue"/> </svg:svg> <label value="world"/> </vbox> </window> ...
XPath - Archive of obsolete content
valuate) obj.evaluate(xpathExpression,contextNode,namespaceResolver,resultType,result); //obj and contextNode should be the same object, if context is a ajax xml object (example: returnedXML) this should be used as : returnedXML.evaluate(xpathExpression,returnedXML,namespaceResolver,returnType,result); //contextNode should be used in the one in which it was created //add by mooring 2008-11-
15 16:00 china var xhr = new Ajax('post','demo.xml',parseXML,'xml'); //Ajax is a class written by javascript which return responseXML object to parseXML function function parseXML(obj)//obj is the returnXML object now { if(!obj.documentElement) { alert("Your Browser does't support this script!"); return; } var fields = [];//store the results if(window.ActiveXObject) { var tob...
...mp = tobj.iterateNext(); } } alert(fields); } //here is the demo xml file for xpath <?xml version="1.0"?> <root> <field> <item>Art_Id</item> <item>PSection</item> <item>Qkind</item> <item>Qtitle</item> <item>Question</item> <item>Pic</item> <item>Answer1</item> <item>Answer2</item> <item>Answer3</item> <item>Answer4</item> </field> </root> //add by mooring 2008-11-
15 16:16 china ...
Signing an XPI - Archive of obsolete content
address: certificates@lan.tjworld.net generated public/private key pair certificate request generated certificate has been signed certificate "myTestCert" added to database Exported certificate to x509.raw and x509.cacert. x509.cacert will be used to sign your XPI package. Check that it exists on the file system and in the certificate database: C:\Projects\CodeSigning\> dir x509* 14/12/2005
15:13 1,031 x509.cacert 14/12/2005
15:13 798 x509.raw C:\Projects\CodeSigning\> certutil -d . -L myTestCert u,u,Cu Prepare XPI file for signing Create a new folder just for signing, copy your existing XPI into it, unzip* it (maintaining paths), delete the XPI and return to the certificate-database folder. *Assumes you ...
... convention. This means that Firefox will refuse to install code signed via an intermediate certificate authority such as Certum Level I unless the user installs that intermediate CA certificate into Firefox first. Installing the intermediate CA certificate causes Firefox to mark the intermediate Code Signing CA certificate as a valid Object Signing CA certificate, which makes it all work. bug 321
156 has been filed to request a way to obviate the installation of intermediate Code Signing CA certs into Firefox. Now you know it all works, you need to add a real software developer's certificate to the NSS certificate database, and use that to sign the XPI. There are several issuers of software developer certificates, with the three key differentials: availability, cost and identity verificatio...
MMgc - Archive of obsolete content
ry, along with object counts, byte counts, and percentage of total memory. It can also display stack traces for where every object was allocated. The report can be output to the console or to a file, and can be configured to be displayed pre/post sweep or via API call. The Memory Profiler use sRTTI and stack traces to get information by location and type: class avmplus::GrowableBuffer - 24.9% - 30
15 kb 514 items, avg 6007b 98.9% - 2983 kb - 512 items - poolobject.cpp:29 abcparser.cpp:948 ... 0.8% - 24 kb - 1 items - poolobject.cpp:29 abcparser.cpp:948 ... class avmplus::String - 13.2% - 1602 kb
15675 items, avg 104b 65.6% - 1051 kb - 14397 items - stringobject.cpp:46 avmcore.cpp:2300 ... 20.4% - 326 kb - 10439 items - avmcore.cpp:2300 abcparser.cpp:1077 ... 6.5% - ...
... everytime we log something interesting. So far something interesting means an incremental mark cycle, a sweep or a DRC reap. They are logged like this: [mem] sweep(21) reclaimed 910 whole pages (3640 kb) in 22.66 millis (2.4975 s) [mem] mark(1) 0 objects (180866 kb 205162 mb/s) in 0.88 millis (2.5195 s) [mem] DRC reaped 114040 objects (3563 kb) freeing 903 pages (7800 kb) in 17.41 millis (2.00
15 s) How MMgc works Mark/Sweep The MMgc garbage collector uses a mark/sweep algorithm. This is one of the most common garbage collection algorithms. Every object in the system has an associated "mark bit." A garbage collection is divided into two phases: Mark and Sweep. In the Mark phase, all of the mark bits are cleared. The garbage collector is aware of "roots", which are starting points from wh...
No Proxy For configuration - Archive of obsolete content
ProtocolProxyService::PrefsChanged - loads preferences nsProtocolProxyService::LoadFilters - parses filters nsProtocolProxyService::ExamineForProxy - decides to check filters if configuration is "manual" nsProtocolProxyService::CanUseProxy - performs URL vs. ...
...So use this- dogwood.state.mo.us .intra.state.mo.us dor.intranet or dogwood.state.mo.us, .intra.state.mo.us, dor.intranet Note that you don't need to (read shouldn't) put a * for all hosts with that domain ending. Corollary- a no_proxies_on entry of netscape.com will be applicable to all hosts ending at netscape.com including foonetscape...
LIR - Archive of obsolete content
return a double 9 livei void extend live range of an int 10 liveq void 64 bit extend live range of a quad 11 lived void extend live range of a double 12 file void source filename for debug symbols 13 line void source line number for debug symbols 14 comment void a comment shown, on its own line, in LIR dumps
15 not in use Load 16 not in use 17 ldc2i integer load char and sign-extend to an int 18 lds2i integer load short and sign-extend to an int 19 lduc2ui integer load unsigned char and zero-extend to an unsigned int 20 ldus2ui integer load unsigned short and zero-extend to an unsigned int 21 ldi integer ...
...64 bit zero-extend unsigned int to unsigned quad 110 q2i integer 64 bit truncate quad to int (removes the high 32 bits) 111 i2d double convert int to double 112 ui2d double convert unsigned int to double 113 d2i integer convert double to int (no exceptions raised) 114 dasq quad 64 bit interpret the bits of a double as a quad 1
15 qasd double 64 bit interpret the bits of a quad as a double Overflow arithmetic 116 addxovi integer add int and exit on overflow 117 subxovi integer subtract int and exit on overflow 118 mulxovi integer multiply int and exit on overflow 119 addjovi integer add int and branch on overflow 120 subjovi integer subtract in...
Table Layout Regression Tests - Archive of obsolete content
. The frame trees are dumped to separate files in a baseline or verify directory for all URL's in rtest.lst (see: nsRegressionTester::DumpFrameModel). Their name is generated by replacing the old extension .html or .xml with .rgd. For appendCells1.html a file appendCells1.rgd will be created in the baseline or verify subdirectory. ...
...ee: nsRegressionTester::DumpFrameModel). Their name is generated by replacing the old extension .html or .xml with .rgd. For appendCells1.html a file appendCells1.rgd will be created in the baseline or verify subdirectory. ...
Building accessible custom components in XUL - Archive of obsolete content
<column> <description value="Entry #"/> <description value="1"/> <description value="2"/> <description value="3"/> <description value="4"/> <description value="5"/> <description value="6"/> <description value="7"/> </column> <column flex="1"> <description value="Date"/> <label value="03/14/05" flex="1"/> <label value="03/
15/05" flex="1"/> <label value="03/
15/05" flex="1"/> <label value="03/16/05" flex="1"/> <label value="03/16/05" flex="1"/> <label value="03/16/05" flex="1"/> <label value="03/16/05" flex="1"/> </column> <column flex="1"> <description value="Expense"/> <label value="Conference Fee" flex="1"/> <label value="lodging" flex="1"/> <label value=...
..."/> <description x2:role="wairole:rowheader" value="5"/> <description x2:role="wairole:rowheader" value="6"/> <description x2:role="wairole:rowheader" value="7"/> </column> <column flex="1"> <description x2:role="wairole:columnheader" value="Date"/> <label x2:role="wairole:gridcell" value="03/14/05" flex="1"/> <label x2:role="wairole:gridcell" value="03/
15/05" flex="1"/> <label x2:role="wairole:gridcell" value="03/
15/05" flex="1"/> <label x2:role="wairole:gridcell" value="03/16/05" flex="1"/> <label x2:role="wairole:gridcell" value="03/16/05" flex="1"/> <label x2:role="wairole:gridcell" value="03/16/05" flex="1"/> <label x2:role="wairole:gridcell" value="03/16/05" flex="1"/> </column> <column flex="1"> <d...
Multiple Rules - Archive of obsolete content
the results then using a condition to filter them. Rules and conditions are more useful when using multiple rules. We can add multiple where elements if we want to check additional conditions. When multiple conditions are present, they must all match for the rule to apply. Adding to the previous example, here we check for people with a space in their name, and a total number of letters less than
15. Note the assign element in the example above, used to calculate the '?letters' variable from the length of the name, minus one for the space character. Naturally, this won't work for people with more than two names (Joan of Arc for instance), but rule conditions allow a number of useful ways to filter results. <rule> <where subject="?name" rel="contains" value=" "/> <where subject="?letters...
...ement in the example above, used to calculate the '?letters' variable from the length of the name, minus one for the space character. Naturally, this won't work for people with more than two names (Joan of Arc for instance), but rule conditions allow a number of useful ways to filter results. <rule> <where subject="?name" rel="contains" value=" "/> <where subject="?letters" rel="less" value="
15"/> <action> <label uri="?" value="?name has two names for a total length of ?letters"/> </action> </rule> Negating a Condition You can reverse a where clause by using the negate attribute. By setting the negate attribute to true, the condition matches only those that don't match the condition, reversing the results that match. For example, these two conditions have the opposite effect.
Box Model Details - Archive of obsolete content
The left box has a flexiblity that is 3 times greater than the right one so it will always receive 3 times as much of the ...
...x="1" style="max-height: 30px;"/> <button label="Find"/> </vbox> </window> Here, two vertical boxes are created, one for the textbox and the other for the check box and button. The left box has a flexiblity that is 3 times greater than the right one so it will always receive 3 times as much of the extra space when the window size is increased. The right box enforces a minimum width of
150 pixels. The textbox is flexible so it will resize as the window resizes. The textbox also enforces a minimum width of 100 pixels. The check box appears in the right box along with its label. Just below the check box is a spacer. The spacer will grow and shrink but not exceed 30 pixels. The result is that the check box and the Find button will be spaced apart from each other by some space of no m...
Introduction to Public-Key Cryptography - Archive of obsolete content
he certificate's serial number. Every certificate issued by a CA has a serial number that is unique among the certificates issued by that CA. Information about the user's public key, including the algorithm used and a representation of the key itself. The DN of the CA that issued the certificate. The period during which the certificate is valid (for example, between 1:00 p.m. on November
15, 1999 and 1:00 p.m. November
15, 2000) The DN of the certificate subject (for example, in a client SSL certificate this would be the user's DN), also called the subject name. Optional certificate extensions, which may provide additional data used by the client or server. For example, the certificate type extension indicates the type of certificate-that is, whether it is a client SSL certifi...
...Encryption Issuer: OU=Ace Certificate Authority, O=Ace Industry, C=US Validity: Not Before: Fri Oct 17 18:36:25 1997 Not After: Sun Oct 17 18:36:25 1999 Subject: CN=Jane Doe, OU=Finance, O=Ace Industry, C=US Subject Public Key Info: Algorithm: PKCS #1 RSA Encryption Public Key: Modulus: 00:ca:fa:79:98:8f:19:f8:d7:de:e4:49:80:48:e6:2a:2a:86: ed:27:40:4d:86:b3:05:c0:01:bb:50:
15:c9:de:dc:85:19:22: 43:7d:45:6d:71:4e:17:3d:f0:36:4b:5b:7f:a8:51:a3:a1:00: 98:ce:7f:47:50:2c:93:36:7c:01:6e:cb:89:06:41:72:b5:e9: 73:49:38:76:ef:b6:8f:ac:49:bb:63:0f:9b:ff:16:2a:e3:0e: 9d:3b:af:ce:9a:3e:48:65:de:96:61:d5:0a:11:2a:a2:80:b0: 7d:d8:99:cb:0c:99:34:c9:ab:25:06:a8:31:ad:8c:4b:aa:54: 91:f4:
15 Public Exponent: 65537 (0x10001) Extensions: Identifier: Certifi...
-ms-scrollbar-arrow-color - Archive of obsolete content
<percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> Examples The following example shows how to use -ms-scrollbar-arrow-color and -ms-scrollbar-face-color to display a scroll bar with a blue scroll box and arrows, and a scroll bar with a green scroll box and arrows. ...
...<alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> Examples The following example shows how to use -ms-scrollbar-arrow-color and -ms-scrollbar-face-color to display a scroll bar with a blue scroll box and arrows, and a scroll bar with a green scroll box and arrows. ...
-ms-scrollbar-base-color - Archive of obsolete content
ercentage>, <alpha-value>? )<hsla()> = hsla( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> Examples This example uses -ms-scrollbar-base-color and -ms-scrollbar-arrow-color to create two <div> objects with different scroll bar color schemes. ...
...a-value>? )<hsla()> = hsla( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> Examples This example uses -ms-scrollbar-base-color and -ms-scrollbar-arrow-color to create two <div> objects with different scroll bar color schemes. ...
-ms-scrollbar-face-color - Archive of obsolete content
( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> Examples This example uses -ms-scrollbar-face-color and -ms-scrollbar-arrow-color to display a scroll bar with a blue scroll box and arrows, and a scroll bar with a green scroll box and arrows. ...
...ge> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> Examples This example uses -ms-scrollbar-face-color and -ms-scrollbar-arrow-color to display a scroll bar with a blue scroll box and arrows, and a scroll bar with a green scroll box and arrows. ...
-ms-scrollbar-highlight-color - Archive of obsolete content
a()> = hsla( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> Examples This example uses -ms-scrollbar-highlight-color, -ms-scrollbar-face-color, and -ms-scrollbar-arrow-color to create two <div> objects with different scroll bar color schemes. ...
...> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> Examples This example uses -ms-scrollbar-highlight-color, -ms-scrollbar-face-color, and -ms-scrollbar-arrow-color to create two <div> objects with different scroll bar color schemes. ...
-ms-scrollbar-track-color - Archive of obsolete content
hsla()> = hsla( <hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> Examples This example uses -ms-scrollbar-track-color, -ms-scrollbar-face-color, and -ms-scrollbar-arrow-color to create two <div> elements with different scroll bar color schemes. ...
...hue> <percentage> <percentage> [ / <alpha-value> ]? ) | hsla( <hue>, <percentage>, <percentage>, <alpha-value>? )where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> Examples This example uses -ms-scrollbar-track-color, -ms-scrollbar-face-color, and -ms-scrollbar-arrow-color to create two <div> elements with different scroll bar color schemes. ...
New in JavaScript - Archive of obsolete content
Script's version history and implementation status for Mozilla/SpiderMonkey-based JavaScript applications, such as Firefox. ECMAScript versions Language resources Learn more about the ECMAScript standards on which the JavaScript language is based on. ECMAScript 5 support Implementation status for the current standard ECMA-262 Edition 5.1 in Mozilla-based engines and products. ECMAScript 20
15 support Implementation status for the draft ECMA-262 Edition 6 (ES20
15) in Mozilla-based engines and products. ECMAScript Next support Implementation status for upcoming ECMA-262 features as per the yearly (ES2016/ES2017/ES2018/...) release schedule in Mozilla-based engines and products. JavaScript versions Deprecated ( ). The explicit versioning and opt-in of language features was Mozilla-...
...nes and products. JavaScript versions Deprecated ( ). The explicit versioning and opt-in of language features was Mozilla-specific and are in process of being removed. Firefox 4 was the last version which referred to a JavaScript version (1.8.5). With new ECMA standards, JavaScript language features are now often mentioned with their initial definition in ECMA-262 Editions such as ECMAScript 20
15. JavaScript was released as version 1.0 in March 1996 in Netscape Navigator 2.0 and Internet Explorer 2.0. JavaScript 1.1 Version shipped in Netscape Navigator 3.0. Released on August 19, 1996. JavaScript 1.2 Version shipped in Netscape Navigator 4.0-4.05. Released on June 11, 1997. JavaScript 1.3 Version shipped in Netscape Navigator 4.06-4.7x. Released on October 19, 1998. Standardiza...
Mozilla's DOCTYPE sniffing - Archive of obsolete content
e old HTML parser in Firefox 3.6 and older. It has been replaced by a new HTML 5 parser in Firefox 4 and newer. This document describes how Mozilla uses the DOCTYPE declaration to determine strict mode vs. quirks mode. The code that makes this determination is currently in DetermineParseMode() in nsParser.cpp. See bug 1312 and bug 55264 for some of the history of the mode determination. See bug
153032 for the creation of the Almost-Standards mode around Mozilla 1.0. The goals that led to choosing this behavior were the following: Almost all existing text/html pages on the Web that need to be in quirks mode to be displayed correctly should be displayed using quirks mode. (Almost all, rather than all, to allow for the following points as well.) Authors writing Web pages to current standa...
...A DOCTYPE declaration without a DTD, i.e., <!DOCTYPE HTML>. A DOCTYPE declaration with an internal subset. Any unknown doctype, which should include the following (technically known) doctypes: The public identifier "-//W3C//DTD HTML 4.01//EN". The public identifier "-//W3C//DTD HTML 4.0//EN". The public identifier "-//W3C//DTD XHTML 1.0 Strict//EN". The public identifier "ISO/IEC
15445:2000//DTD HyperText Markup Language//EN". The public identifier "ISO/IEC
15445:2000//DTD HTML//EN". The public identifier "-//IETF//DTD HTML i18n//EN". Almost Standards Mode The following trigger almost standards mode. Almost standards mode was created after 1.0 and 1.1alpha, but before 1.0.1 and 1.1beta. Before almost standards mode was created these doctypes triggered full stan...
Building up a basic demo with the PlayCanvas engine - Game development
cubes, spheres, cylinders and more complicated shapes available. Drawing everything for given shape is taken care of by the engine, so we can focus on the high level coding. Let's start by defining the geometry for a cube shape -- add the following new code below your previous additions: var box = new pc.Entity(); box.addComponent("model", { type: "box" }); app.root.addChild(box); box.rotate(10,
15, 0); It will create an Entity with the box model component and add it to the root of the application, our scene. We also rotate the box a bit to show that it's actually a 3D cube and not a square. The cube is visible, but it is completely. To make it look better we need to shine some light onto it. Lights The basic light types in PlayCanvas are directional and ambient. The first type is a di...
...It is also rotated around the x axis to show it's actually a 3D shape. To make the cylinder have a color, let's say yellow, we need to create the material for it, as before. Add the following lines: var cylinderMaterial = new pc.PhongMaterial(); cylinderMaterial.d...
Buttons - Game development
Instead of starting the game right away we can leave that decision to the player by adding a Start button they can press. Let's investigate how to do that. New variables We will need a variable to store a boolean value representing whether the game is currently being played or not, and another one to represent our button. ...
...ce to this to specify the execution context The frames that will be used for the over, out and down events. Note: The over event is the same as hover, out is when the pointer moves out of the button and down is when the button is pressed. Now we need to define the startGame() function referenced in the code above: function startGame() { startButton.destroy(); ball.body.velocity.set(
150, -
150); playing = true; } When the button is pressed, we remove the button, sets the ball's initial velocity and set the playing variable to true. Finally for this section, go back into your create() function, find the ball.body.velocity.set(
150, -
150); line, and remove it. You only want the ball to move when the button is pressed, not before! Keeping the paddle still before the game sta...
Extra lives - Game development
If yes, then the player still has some lives left and can continue to play -- they will see the life lost message, the ball an...
...If yes, then the player still has some lives left and can continue to play -- they will see the life lost message, the ball and padd...
The box model - Learn web development
standard box model, if you give a box a width and a height attribute, this defines the width and height of the content box. Any padding and border is then added to that width and height to get the total size taken up by the box. This is shown in the image below. If we assume that the box has the following CSS defining width, height, margin, border, and padding: .box { width: 350px; height:
150px; margin: 10px; padding: 25px; border: 5px solid black; } The space taken up by our box using the standard box model will actually be 410px (350 + 25 + 25 + 5 + 5), and the height 210px (
150 + 25 + 25 + 5 + 5), as the padding and border are added to the width used for the content box. Note: The margin is not counted towards the actual size of the box -- sure, it affects the total sp...
... get the real size of the box, and you would be right! For this reason, CSS had an alternative box model introduced some time after the standard box model. Using this model, any width is the width of the visible box on the page, therefore the content area width is that width minus the width for the padding and border. The same CSS as used above would give the below result (width = 350px, height =
150px). By default, browsers use the standard box model. If you want to turn on the alternative model for an element you do so by setting box-sizing: border-box on it. By doing this you are telling the browser to take the border box as the area defined by any size you set. .box { box-sizing: border-box; } If you want all of your elements to use the alternative box model, and this is a common...
Practical positioning examples - Learn web development
roughout this example -- this is so that we can insert this feature into a page with other content already on it, without fear of interfering with the styles applied to other parts of the page. ...
...is set to none to get rid of the bullets, and their width is set to
150px so they will comfortably fit across the info-box. The <a> elements are set to display inline-block so they will sit in a line but still be stylable, and they are styled appropriately for tab buttons, using a variety of other properties. Add the following CSS: .info-box li { float: left; list-style-type: none; width:
150px; } .info-box li a { display: inline-block; text-decoration: none; width: 100%; line-height: 3; background-color: red; color: black; text-align: center; } Finally for this section we'll set some styles on the link states. First, we'll set the :focus and :hover states of the tabs to look different when they are focused/hovered, providing users with some visual feedback. Secondly,...
Styling web forms - Learn web development
want to keep the native look and feel of the widgets, you'll face a little difficulty if you want to give them a consistent size. This is because each widget has their own rules for border, padding and margin. To give the same size to several different widgets, you can use the box-sizing property along with some consistent values for other properties: input, textarea, select, button { width :
150px; padding: 0; margin: 0; box-sizing: border-box; } In the screenshot below, the left column shows the default rendering of an <input type="radio">, <input type="checkbox">, <input type="range">, <input type="text">, <input type="date"> input, <select>, <textarea>,<input type="submit">, and <button>. The right column on the other hand shows the same elements with our above rule applied to...
..., and <button>. The right column on the other hand shows the same elements with our above rule applied to them. Notice how this lets us ensure that all of the elements occupy the same amount of space, despite the platform's default rules for each kind of widget. What may not be apparent via the screenshot is that the radio and checkbox controls still look the same, but they are centered in the
150px of horizontal space provided by the width property. Other browsers may not center the widgets, but they do adhere to the space allotted. Legend placement The <legend> element is okay to style, but it can be a bit tricky to control placement of it. By default it is always positioned over the top border of its <fieldset> parent, near the top left corner. To position it somewhere else, for exam...
Adding vector graphics to the Web - Learn web development
Yes, you can handcode simple SVG in a text editor, but for a complex image this quickly starts to get very difficult. For creating SVG images, most people use a vector graphics editor like Inkscape or Illustrator. These packages allow you ...
... </text> </svg> </textarea> <div class="playable-buttons"> <input id="reset" type="button" value="Reset"> <input id="solution" type="button" value="Show solution" ...
From object to iframe — other embedding technologies - Learn web development
ntry = htmlSolution; solution.value = 'Show solution'; updateCode(); }); solution.addEventListener('click', function() { if(solution.value === 'Show solution') { textarea.value = solutionEntry; solution.value = 'Hide solution'; } else { textarea.value = userEntry; solution.value = 'Show solution'; } updateCode(); }); const htmlSolution = '<iframe width="420" height="3
15" src="https://www.youtube.com/embed/QH2-TGUlwu4" frameborder="0" allowfullscreen>\n</iframe>\n\n<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d37995.65748333395!2d-2.273568166412784!3d53.473310471916975!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x487bae6c05743d3d%3A0xf82fddd1e49fc0a1!2sThe+Lowry!5e0!3m2!1sen!2suk!4v
1518171785211" width="600" height="450" frameborder="0...
... increasingly rare, especially among mobile users. Since the Web is easily used without any plugins, people would rather just go to your competitors' websites than install a plugin. Give yourself a break from the extra accessibility headaches that come with Flash and other plugins. Stay clear of additional security hazards. Adobe Flash is notoriously insecure, even after countless patches. In 20
15, Alex Stamos, then-Chief Security Officer at Facebook, requested that Adobe discontinue Flash. Note: Due to its inherent issues and the lack of support for Flash, Adobe announced that they would stop supporting it at the end of 2020. As of January 2020, most browsers block Flash content by default, and by December 31st of 2020, all browsers will have completly removed all Flash functionality...
HTML table basics - Learn web development
ravity (m/s2) Length of day (hours) Distance from Sun (106km) Mean temperature (?C) Number of moons Notes Terrestial planets Mercury 0.330 4,879 5427 3.7 4222.6 57.9 167 0 Closest to the Sun Venus 4.87 12,104 5243 8.9 2802.0 108.2 464 0 Earth 5.97 12,756 5514 9.8 24.0 149.6
15 1 Our world Mars 0.642 6,792 3933 3.7 24.7 227.9 -65 2 The red planet Jovian planets Gas giants Jupiter 1898 142,984 1326 23.1 9.9 778.6 -110 67 The largest planet Saturn 568 120,536 687 9.0 10.7 1433.5 -140 62 Ice giants Uranus 86.8 51,118 1271 8.7 1...
... When done correctly, even blind people can interpret tabular data in an HTML table -- a successful HTML table should enhance the experience of sighted and visually impaired users alike. Table styling You can also have a look at the live example on GitHub! One thing you'll notice is that the tab...
Arrays - Learn web development
to change the line just below // number 5 so that the itemText variable is made equal to "current item name -- $current item price", for example "Shoes -- $23.99" in each case, so the correct information for each item is printed on the invoice. This is just simple string concatenation, which should be familiar to you. ...
...now. To complete the app, we need you to: Add a line below the // number 1 comment that adds the current value entered into the search input to the start of the array. This can be retrieved using searchInput.value. Add a line below the // number 2 comment that removes the value currently at the end of the array. ...
Basic math in JavaScript — numbers and operators - Learn web development
n the following: typeof myNumber; To fix the calculation, you can do this: Number(myNumber) + 3; Arithmetic operators Arithmetic operators are the basic operators that we use to do sums in JavaScript: Operator Name Purpose Example + Addition Adds two numbers together. 6 + 9 - Subtraction Subtracts the right number from the left. 20 -
15 * Multiplication Multiplies two numbers together. 3 * 7 / Division Divides the left number by the right. 10 / 5 % Remainder (sometimes called modulo) Returns the remainder left over after you've divided the left number into a number of integer portions equal to the right number. 8 % 3 (returns 2, as three goes into 8 twice, leavi...
...is calculated using the numbers 43 and 7 and an arithmetic operator. Change the line that calculates y so the box is 75px high, but the 75 is calculated using the numbers 25 and 3 and an arithmetic operator. Change the line that calculates x so the box is 250px wide, but the 250 is calculated using two numbers and the remainder (modulo) operator. Change the line that calculates y so the box is
150px high, but the
150 is calculated using three numbers and the subtraction and division operators. Change the line that calculates x so the box is 200px wide, but the 200 is calculated using the number 4 and an assignment operator. Change the line that calculates y so the box is 200px high, but the 200 is calculated using the numbers 50 and 3, the multiplication operator, and the addition assig...
Mozilla’s UAAG evaluation report
a. (P2) NA 4.9 Global volume control. (P1) NA 4.10 Independent volume control. (P1) NA 4.11 Control other volume. (P2) NA 4.12 Configure synthesized speech rate. (P1) NA 4.13 Configure synthesized speech volume. (P1) NA 4.14 Configure synthesized speech characteristics. (P1) NA 4.
15 Specific synthesized speech characteristics. (P2) NA 4.16 Configure synthesized speech features. (P2) NA 4.17 Choose style sheets. (P1) C Under View Menu, Use Style Sheet -- allows one user style sheet to be applied at a time Guideline 5. Ensure user control of user interface behavior. Checkpoint Title Status Notes/plans ...
... User profiles are fully supported for all configuration options. Unfortunately, switching profiles requires the entire application to be relaunched. There is still very little end-user documentation for editing profiles by hand. 11.7 Configure tool bars. (P3) P Can turn on and off toolbars under Show/Hide Can customize personal bookmarks toolbar Bug
15144 is for the ability to add/remove toolbar icons Bug 47418 is for the ability to rearrange toolbars Guideline 12. Provide accessible user agent documentation and help. Checkpoint Title Status Notes/plans 12.1 Accessible documentation. (P1) NR Some end user docs are under Help, Help Contents in Mozilla Here is the main page for Mozilla...
Creating a spell check dictionary add-on
ication> <Description> <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id> <em:minVersion>18.0a1</em:minVersion> <em:maxVersion>22.0</em:maxVersion> </Description> </em:targetApplication> <!-- SeaMonkey --> <em:targetApplication> <Description> <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id> <em:minVersion>2.
15a1</em:minVersion> <em:maxVersion>2.49</em:maxVersion> </Description> </em:targetApplication> </Description> </RDF> There are some rules about how you should adapt the install.rdf file: If you are creating a new dictionary add-on, we recommend that the em:id consists of your locale code followed by @dictionaries.addons.mozilla.org, but if there is more than one diction...
... The em:minVersion should therefore be the same as in the example above (or greater). If you set em:minVersion to a lower value, Gecko 10-17 will not be able to update your dictionary add-on once the restartless dictionary is installed (bug 782118), and Gecko 10-16 may warn the user that your dictionary is not compatible, when users try to update to a newer version of Firefox/Thunderbird (bug 7821
15). Update the em:maxVersion to the greatest versions available. Once you have added these files to your ZIP file and renamed the file to have the .xpi extension, you can install your add-on in Firefox and test it. After a successful test, you can upload your add-on to addons.mozilla.org and ask for it to be included in the Dictionaries & Language Packs page. Reference Creating a hunspell di...
Old Thunderbird build
s 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 streamline common developer tasks. See the mach article for more. Building can take a significant amount of time, depending on your system, OS, and chosen build options. Linux builds on a fast box may take under
15 minutes, but Windows builds on a slow box may take several hours. Tips for making builds faster. The executable will be at the location listed under Running below. 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 -...
... trunk is broken (i.e. closed), you may wish to consider building one of the branches (to pull the source code from a branch, just replace the url to the repository in the hg clone instruction). On Windows: check that the MAPI header files from https://www.microsoft.com/en-us/download/details.aspx?id=12905 are installed because the MAPI header files are not bundled with Visual Studio 2013/20
15 (Windows SDK 8.1/10). You should copy the header files to a Windows SDK include directory so that the build process will find the files, for example to C:\Program Files (x86)\Windows Kits\8.1\Include\shared and/or C:\Program Files (x86)\Windows Kits\10\Include\10.0.nnnnn.0\shared respectively, where nnnnn is the highest number present on the system. Check to make sure that the path in which you ...
Cross Process Object Wrappers
Also, in this situation, the content process is in a known state. ...
...return, and we know that won't change during the CPOW call. This makes the CPOW call much safer than it would otherwise be. This situation is thus called "safe CPOW usage". ...
Fonts for Mozilla 2.0's MathML engine
higher versions, STIX fonts are already installed and can be used for MathML. On most Linux distributions and similar open source platforms, you can install math fonts (STIX, Asana or MathJax fonts) from your package manager or get them from this zip archive. On Android, Firefox OS and other platforms where the instructions above do not work: install the MathML-fonts add-on. This requires Gecko
15.0 (Firefox
15.0 / Thunderbird
15.0 / SeaMonkey 2.12) or higher. Overview Mathematical formulas make use of various symbols represented by specific Unicode characters. Mozilla can display any of these symbols provided suitable Unicode fonts are installed. Furthermore, in accordance with the W3C CSS2 recommendation on fonts, authors can specify an ordered list of particular fonts which they prefer...
... available on the system then Mozilla tries to stretch symbols using scale transforms, but that may result in a less pleasant rendering. To see MathML as intended, you need sufficient font support, which may mean installing some fonts. Note that some Web sites may provide the required mathematical fonts as Web fonts. In that case, you will see the correct rendering on these pages if you use Gecko
15.0 (Firefox
15.0 / Thunderbird
15.0 / SeaMonkey 2.12) or greater. Recommended Fonts The STIX Fonts Project has been developing a comprehensive set of fonts that cover all the symbols in MathML and also contains glyphs to stretch mathematical operators. They are available under the SIL Open Font License and should be installed for best MathML rendering. Note that currently, only the fonts in /Fonts...
MathML Accessibility in Mozilla
, | ? ( x + i y ) | squared = 0 left paren fraction start. partial differential. superscript 2. over partial differential x. superscript 2. fraction end. plus fraction start. partial differential. superscript 2. over partial differential y. superscript 2. fraction end. right paren vertical bar ? left paren x plus i y right paren vertical bar. superscript 2. equals 0 Torture Test
15: 2 2 2 x __________ 2 raised to the 2 raised to the 2 raised to the x power power __________ 2 to the 2 to the 2, superscript x 2. superscript 2. superscript 2. superscript x. Torture Test 16: ? 1 x dt t __________ the integral from 1 to x of times fraction d t ...
...ipsis. blank. vertical ellipsis. row 5. c. subscript n. c. subscript n plus 1. c. subscript n plus 2. horizontal ellipsis. c. subscript 2 n. table end. vertical bar greater than 0 Torture Test 25: y x 2 __________ y sub x sub 2 end sub __________ y, subscript x, subscript 2, y. subscript x. subscript 2. Torture Test 26: x 92 314
15 + ? __________ x sub 92 to the 31400 fifteenth plus pi __________ x, subscript 92, to the 314
15, + ? x. subscript 92. superscript 314
15. plus ? Torture Test 27: x y b a z c d __________ x with subscript y sub b to the a and with superscript z sub c ...
BloatView
1754408 432556 179828 404184 2770976 nsStr 20 6261600 3781900 1120920 1791340 12955760 222760 48760 13280 76160 360960 nsHashKey 8 610568 1842400 2457872 1134592 6045432 32000 536 568 1216 34320 nsTextTransformer 548 8220 469088 1414936
1532756 3425000 0 0 0 0 0 nsStyleContextData 736 259808 325312 489440 338560 1413120 141312 220800 -11040 94944 446016 nsLineLayout 1100 2200 225500 402600 562100 1192400 0 0 0 0 0 nsLocalFile 424 558832 19928 1696 1272 581728 72080 1272 ...
...The delta numbers show the percentage change between runs for the amount of leaks and amount of bloat (negative numbers are better!). The bloat number is a metric determined by multiplying the total number of objects allocated...
turbostat
msr", you need to run the following command: sudo modprobe msr The output is as follows: Core CPU Avg_MHz %Busy Bzy_MHz TSC_MHz SMI CPU%c1 CPU%c3 CPU%c6 CPU%c7 CoreTmp PkgTmp Pkg%pc2 Pkg%pc3 Pkg%pc6 Pkg%pc7 PkgWatt CorWatt GFXWatt - - 799 21.63 3694 3398 0 12.02 3.16 1.71 61.48 49 49 0.00 0.00 0.00 0.00 22.68
15.13 1.13 0 0 821 22.44 3657 3398 0 9.92 2.43 2.25 62.96 39 49 0.00 0.00 0.00 0.00 22.68
15.13 1.13 0 4 708 19.14 3698 3398 0 13.22 1 1 743 20.26 3666 3398 0 21.40 4.01 1.42 52.90 49 1 5 1206 31.98 3770 3398 0 9.69 ...
...The various "Watt" measurements come from the Intel RAPL MSRs. ...
ui.textSelectBackground
ui.textSelectBackground saves the color in which the background of a text selection in the user interface or in content will be styled. ...
...color in which the background of a text selection in the user interface or in content will be styled. ...
ui.textSelectForeground
ui.textSelectForeground saves the color in which the text of a text selection in the user interface or the content will be styled. ...
...the color in which the text of a text selection in the user interface or the content will be styled. ...
NSS_3.12.1_release_notes.html
satile form of CERT_NameToAscii Bug 390296: NSS ignores subject CN even when SAN contains no dNSName Bug 401928: Support generalized PKCS#5 v2 PBEs Bug 403543: pkix: need a way to enable/disable AIA cert fetching Bug 408847: pkix_OcspChecker_Check does not support specified responder (and given signercert) Bug 414003: Crash [[@ CERT_DecodeCertPackage] sometimes with this testcase Bug 4
15167: Memory leak in certutil Bug 417399: Arena Allocation results are not checked in pkix_pl_InfoAccess_ParseLocation Bug 420644: Improve SSL tracing of key derivation Bug 426886: Use const char* in PK11_ImportCertForKey Bug 428103: CERT_EncodeSubjectKeyID is not defined in any public header file Bug 429716: debug builds of libPKIX unconditionally dump socket traffic to stdout Bug 4303...
... Bug 439123: ...
NSS 3.12.4 release notes
closed socket Bug 470070: Multiple object leaks reported by tinderbox Bug 470479: IO timeout during cert fetching makes libpkix abort validation. ...
... interface need to do post tests only in fips mode. Bug 488396: DBM needs to be FIPS certifiable. ...
NSS 3.12.6 release notes
s functionality. Bugs Fixed The following bugs have been fixed in NSS 3.12.6. ...
...ing bugs have been fixed in NSS 3.12.6. ...
NSS 3.16.2.1 release notes
res NSPR 4.10.6 or newer. NSS 3.16.2.1 source distributions are also available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_16_2_1_RTM/src/ Security Advisories The following security-relevant bugs have been resolved in NSS 3.16.2.1. Users are encouraged to upgrade immediately. Bug 1064636 - (CVE-2014-
1568) RSA Signature Forgery in NSS. See also MFSA 2014-73 for details. New in NSS 3.16.2.1 New Functionality No new functionality is introduced in this release. This is a patch release to fix a bug that caused NSS to accept forged RSA signatures. A new symbol, _SGN_VerifyPKCS1DigestInfo is exported in this release. As with all exported NSS symbols that have a leading underscore '_', this is an ...
...lease to fix a bug that caused NSS to accept forged RSA signatures. A new symbol, _SGN_VerifyPKCS1DigestInfo is exported in this release. As with all exported NSS symbols that have a leading underscore '_', this is an internal symbol for NSS use only. Applications that use or depend on these symbols can and will break in future NSS releases. Bugs fixed in NSS 3.16.2.1 Bug 1064636 - (CVE-2014-
1568) RSA Signature Forgery in NSS Acknowledgements The NSS development team would like to thank Antoine Delignat-Lavaud, security researcher at Inria Paris in team Prosecco, and the Advanced Threat Research team at Intel Security, who both independently discovered and reported this issue, for responsibly disclosing the issue by providing advance copies of their research. Compatibility NSS 3.16...
NSS 3.16.3 release notes
a value of type CERTGeneralNameType given a human readable string. This function was already added in NSS 3.16.2, however, it wasn't declared in a public header file. ...
...ngerprint: 09:3C:61:F3:8B:8B:DC:7D:55:DF:75:38:02:05:00:E1:25:F5:C8:36 CN = QuoVadis Root CA 3 G3 SHA1 Fingerprint: 48:12:BD:92:3C:A8:C4:39:06:E7:30:6D:27:96:E6:A4:CF:22:2E:7D The Trust Bits were changed for the following CA certificates OU = Class 3 Public Primary Certification Authority SHA1 Fingerprint: A1:DB:63:93:91:6F:17:E4:18:55:09:40:04:
15:C7:02:40:B0:AE:6B Turned off websites and code signing trust bits (1024-bit root) OU = Class 3 Public Primary Certification Authority SHA1 Fingerprint: 74:2C:31:92:E6:07:E4:24:EB:45:49:54:2B:E1:BB:C5:3E:61:74:E2 Turned off websites and code signing trust bits (1024-bit root) OU = Class 2 Public Primary Certification Authority - G2 SHA1 Fingerp...
NSS 3.16.4 release notes
longer in order to give website administrators more time to update their web servers. CN = GTE CyberTrust Global Root SHA1 Fingerprint: 97:81:79:50:D8:1C:96:70:CC:34:D8:09:CF:79:44:31:36:7E:F4:74 In NSS 3.16.3, the 1024-bit "Entrust.net Secure Server Certification Authority" root CA certificate (SHA1 Fingerprint: 99:A6:9B:E6:1A:FE:88:6B:4D:2B:82:00:7C:B8:54:FC:31:7E:
15:39) was removed. In NSS 3.16.4, a 2048-bit intermediate CA certificate has been included, without explicit trust. The intention is to mitigate the effects of the previous removal of the 1024-bit Entrust.net root certificate, because many public Internet sites still use the "USERTrust Legacy Secure Server CA" intermediate certificate that is signed by the 1024-bit Entrust.net root certificate. The...
...net sites still use the "USERTrust Legacy Secure Server CA" intermediate certificate that is signed by the 1024-bit Entrust.net root certificate. The inclusion of the intermediate certificate is a temporary measure to allow those sites to function, by allowing them to find a trust path to another 2048-bit root CA certificate. The temporarily included intermediate certificate expires November 1, 20
15. Bugs fixed in NSS 3.16.4 This Bugzilla query returns all the bugs fixed in NSS 3.16.4: https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&classification=Components&query_format=advanced&product=NSS&target_milestone=3.16.4 ...
NSS 3.16.5 release notes
requires NSPR 4.10.6 or newer. NSS 3.16.5 source distributions are also available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_16_5_RTM/src/ Security Advisories The following security-relevant bugs have been resolved in NSS 3.16.5. Users are encouraged to upgrade immediately. Bug 1064636 - (CVE-2014-
1568) RSA Signature Forgery in NSS. See also MFSA 2014-73 for details. New in NSS 3.16.5 New Functionality No new functionality is introduced in this release. This is a patch release to fix a bug that caused NSS to accept forged RSA signatures. A new symbol, _SGN_VerifyPKCS1DigestInfo is exported in this release. As with all exported NSS symbols that have a leading underscore '_', this is an in...
...release to fix a bug that caused NSS to accept forged RSA signatures. A new symbol, _SGN_VerifyPKCS1DigestInfo is exported in this release. As with all exported NSS symbols that have a leading underscore '_', this is an internal symbol for NSS use only. Applications that use or depend on these symbols can and will break in future NSS releases. Bugs fixed in NSS 3.16.5 Bug 1064636 - (CVE-2014-
1568) RSA Signature Forgery in NSS Acknowledgements The NSS development team would like to thank Antoine Delignat-Lavaud, security researcher at Inria Paris in team Prosecco, and the Advanced Threat Research team at Intel Security, who both independently discovered and reported this issue, for responsibly disclosing the issue by providing advance copies of their research. Compatibility NSS 3.16...
NSS 3.17.3 release notes
ce distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_17_3_RTM/src/ New in NSS 3.17.3 New Functionality Support for TLS_FALLBACK_SCSV has been added to the ssltap and tstclnt utilities. Notable Changes in NSS 3.17.3 The QuickDER decoder now decodes lengths robustly (CVE-2014-
1569). The following CA certificates were Removed CN = GTE CyberTrust Global Root SHA1 Fingerprint: 97:81:79:50:D8:1C:96:70:CC:34:D8:09:CF:79:44:31:36:7E:F4:74 CN = Thawte Server CA SHA1 Fingerprint: 23:E5:94:94:51:95:F2:41:48:03:B4:D5:64:D2:A3:A3:F5:D8:8B:8C CN = Thawte Premium Server CA SHA1 Fingerprint: 62:7F:8D:78:27:65:63:99:D2:7D:7F:...
...8:1C:96:70:CC:34:D8:09:CF:79:44:31:36:7E:F4:74 CN = Thawte Server CA SHA1 Fingerprint: 23:E5:94:94:51:95:F2:41:48:03:B4:D5:64:D2:A3:A3:F5:D8:8B:8C CN = Thawte Premium Server CA SHA1 Fingerprint: 62:7F:8D:78:27:65:63:99:D2:7D:7F:90:44:C9:FE:B3:F3:3E:FA:9A CN = America Online Root Certification Authority 1 SHA-1 Fingerprint: 39:21:C1:
15:C1:5D:0E:CA:5C:CB:5B:C4:F0:7D:21:D8:05:0B:56:6A CN = America Online Root Certification Authority 2 SHA-1 Fingerprint: 85:B5:FF:67:9B:0C:79:96:1F:C8:6E:44:22:00:46:13:DB:17:92:84 The following CA certificates had the Websites and Code Signing trust bits turned off OU = Class 3 Public Primary Certification Authority - G2 SHA1 Fingerprint: 85:37...
NSS 3.19.2.1 release notes
istributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_19_2_1_RTM/src/ https://ftp.mozilla.org/pub/nspr/releases/v4.10.10/src/ Security Advisories The following security-relevant bugs have been resolved in NSS 3.19.2.1. Users are encouraged to upgrade immediately. Bug 1192028 (CVE-20
15-7181) and Bug 1202868 (CVE-20
15-7182): Several issues existed within the ASN.1 decoder used by NSS for handling streaming BER data. While the majority of NSS uses a separate, unaffected DER decoder, several public routines also accept BER data, and thus are affected. An attacker that successfully exploited these issues can overflow the heap and may be able to obtain remote code execution. The...
...also accept BER data, and thus are affected. An attacker that successfully exploited these issues can overflow the heap and may be able to obtain remote code execution. The following security-relevant bugs have been resolved in NSPR 4.10.10, which affect NSS. Because NSS includes portions of the affected NSPR code at build time, it is necessary to use NSPR 4.10.10 when building NSS. Bug 1205
157 (NSPR, CVE-20
15-7183): A logic bug in the handling of large allocations would allow exceptionally large allocations to be reported as successful, without actually allocating the requested memory. This may allow attackers to bypass security checks and obtain control of arbitrary memory. New in NSS 3.19.2.1 New Functionality No new functionality is introduced in this release. This is a patch...
NSS 3.19.3 release notes
ease. This is a patch release to update the list of root CA certificates. ...
...A:D9 CN = SG TRUST SERVICES RACINE SHA1 Fingerprint: 0C:62:8F:5C:55:70:B1:C9:57:FA:FD:38:3F:B0:3D:7B:7D:D7:B9:C6 CN = TC TrustCenter Universal CA I SHA-1 Fingerprint: 6B:2F:34:AD:89:58:BE:62:FD:B0:6B:5C:CE:BB:9D:D9:4F:4E:39:F3 CN = TC TrustCenter Class 2 CA II SHA-1 Fingerprint: AE:50:83:ED:7C:F4:5C:BC:8F:61:C6:21:FE:68:5D:79:42:21:
15:6E The following CA certificate had the Websites trust bit turned off CN = ComSign Secured CA SHA1 Fingerprint: F9:CD:0E:2C:DA:76:24:C1:8F:BD:F0:F0:AB:B6:45:B8:F7:FE:D5:7A The following CA certificates were Added CN = TURKTRUST Elektronik Sertifika Hizmet Saglayicisi H5 SHA1 Fingerprint: C4:18:F6:4D:46:D1:DF:00:3D:27:30:13:72:43:A9:1...
NSS 3.19.4 release notes
ce distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_19_4_RTM/src/ https://ftp.mozilla.org/pub/nspr/releases/v4.10.10/src/ Security Advisories The following security-relevant bugs have been resolved in NSS 3.19.4. Users are encouraged to upgrade immediately. Bug 1192028 (CVE-20
15-7181) and Bug 1202868 (CVE-20
15-7182): Several issues existed within the ASN.1 decoder used by NSS for handling streaming BER data. While the majority of NSS uses a separate, unaffected DER decoder, several public routines also accept BER data, and thus are affected. An attacker that successfully exploited these issues can overflow the heap and may be able to obtain remote code execution. The...
...also accept BER data, and thus are affected. An attacker that successfully exploited these issues can overflow the heap and may be able to obtain remote code execution. The following security-relevant bugs have been resolved in NSPR 4.10.10, which affect NSS. Because NSS includes portions of the affected NSPR code at build time, it is necessary to use NSPR 4.10.10 when building NSS. Bug 1205
157 (NSPR, CVE-20
15-7183): A logic bug in the handling of large allocations would allow exceptionally large allocations to be reported as successful, without actually allocating the requested memory. This may allow attackers to bypass security checks and obtain control of arbitrary memory. New in NSS 3.19.4 New Functionality No new functionality is introduced in this release. This is a patch r...
NSS 3.19 release notes
ity Services (NSS) 3.19, which is a minor security release. Distribution Information The HG tag is NSS_3_19_RTM. NSS 3.19 requires NSPR 4.10.8 or newer. NSS 3.19 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_19_RTM/src/ Security Fixes in NSS 3.19 Bug 1086145 / CVE-20
15-2721 - Fixed a bug related to the ordering of TLS handshake messages. This was also known as SMACK. New in NSS 3.19 New Functionality For some certificates, such as root CA certificates that don't embed any constraints, NSS might impose additional constraints such as name constraints. A new API (CERT_GetImposedNameConstraints) has been added that allows one to lookup imposed constraints. I...
...icate extensions. Notable Changes in NSS 3.19 The SSL 3 protocol has been disabled by default. NSS now more strictly validates TLS extensions and will fail a handshake that contains malformed extensions (bug 753136). In TLS 1.2 handshakes, NSS advertises support for the SHA512 hash algorithm in order to be compatible with TLS servers that use certificates with a SHA512 signature (bug 1
155922). Bugs fixed in NSS 3.19 This Bugzilla query returns all the bugs fixed in NSS 3.19: https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&classification=Components&query_format=advanced&product=NSS&target_milestone=3.19 Acknowledgements The NSS development team would like to thank Karthikeyan Bhargavan from INRIA for responsibly disclosing the issue in bug 1086145. Compatibility ...
NSS 3.20.1 release notes
ce distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_20_1_RTM/src/ https://ftp.mozilla.org/pub/nspr/releases/v4.10.10/src/ Security Advisories The following security-relevant bugs have been resolved in NSS 3.20.1. Users are encouraged to upgrade immediately. Bug 1192028 (CVE-20
15-7181) and Bug 1202868 (CVE-20
15-7182): Several issues existed within the ASN.1 decoder used by NSS for handling streaming BER data. While the majority of NSS uses a separate, unaffected DER decoder, several public routines also accept BER data, and thus are affected. An attacker that successfully exploited these issues can overflow the heap and may be able to obtain remote code execution. The...
...also accept BER data, and thus are affected. An attacker that successfully exploited these issues can overflow the heap and may be able to obtain remote code execution. The following security-relevant bugs have been resolved in NSPR 4.10.10, which affect NSS. Because NSS includes portions of the affected NSPR code at build time, it is necessary to use NSPR 4.10.10 when building NSS. Bug 1205
157 (NSPR, CVE-20
15-7183): A logic bug in the handling of large allocations would allow exceptionally large allocations to be reported as successful, without actually allocating the requested memory. This may allow attackers to bypass security checks and obtain control of arbitrary memory. New in NSS 3.20.1 New Functionality No new functionality is introduced in this release. This is a patch r...
NSS 3.39 release notes
A-256 Fingerprint: 8560F91C3624DABA9570B5FEA0DBE36FF11A8323BE9486854FB3F34A5571198D The following CA certificate was Removed: CN = ComSign SHA-256 Fingerprint: AE4457B40D9EDA96677B0D3C92D57B5177ABD7AC1037958356D1E094518BE5F2 The following CA certificates had the Websites trust bit disabled: CN = Certplus Root CA G1 SHA-256 Fingerprint:
152A402BFCDF2CD548054D2275B39C7FCA3EC0978078B0F0EA76E561A6C7433E CN = Certplus Root CA G2 SHA-256 Fingerprint: 6CC05041E6445E74696C4CFBC9F80F543B7EABBB44B4CE6F787C6A9971C42F17 CN = OpenTrust Root CA G1 SHA-256 Fingerprint: 56C77128D98C18D91B4CFDFFBC25EE9103D4758EA2ABAD826A90F3457D460EB4 CN = OpenTrust Root CA G2 SHA-256 Fingerprint: 2...
...548054D2275B39C7FCA3EC0978078B0F0EA76E561A6C7433E CN = Certplus Root CA G2 SHA-256 Fingerprint: 6CC05041E6445E74696C4CFBC9F80F543B7EABBB44B4CE6F787C6A9971C42F17 CN = OpenTrust Root CA G1 SHA-256 Fingerprint: 56C77128D98C18D91B4CFDFFBC25EE9103D4758EA2ABAD826A90F3457D460EB4 CN = OpenTrust Root CA G2 SHA-256 Fingerprint: 27995829FE6A75
15C1BFE848F9C4761DB16C225929257BF40D0894F29EA8BAF2 CN = OpenTrust Root CA G3 SHA-256 Fingerprint: B7C36231706E81078C367CB896198F1E3208DD926949DD8F5709A410F75B6292 Bugs fixed in NSS 3.39 Bug 1483128 - NSS responded to an SSLv2-compatible ClientHello with a ServerHello that had an all-zero random (CVE-2018-12384) This Bugzilla query returns all the bugs fixed...
NSS 3.44.2 release notes
3_44_2_RTM. NSS 3.44.2 requires NSPR 4.21 or newer. NSS 3.44.2 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_44_2_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.44.2 No new functionality is introduced in this release. ...
....2 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_44_2_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.44.2 No new functionality is introduced in this release. Bugs fixed in NSS 3.44.2 Bug
1582343 - Soft token MAC verification not constant time Bug
1577953 - Remove arbitrary HKDF output limit by allocating space as needed This Bugzilla query returns all the bugs fixed in NSS 3.44.2: https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&classification=Components&query_format=advanced&product=NSS&target_milestone=3.44.2 Compatibility NSS 3.44.2 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program l...
NSS 3.46.1 release notes
3_46_1_RTM. NSS 3.46.1 requires NSPR 4.22 or newer. NSS 3.46.1 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_46_1_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.46.1 No new functionality is introduced in this release. ...
....1 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_46_1_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.46.1 No new functionality is introduced in this release. Bugs fixed in NSS 3.46.1 Bug
1582343 - Soft token MAC verification not constant time Bug
1577953 - Remove arbitrary HKDF output limit by allocating space as needed This Bugzilla query returns all the bugs fixed in NSS 3.46.1: https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&classification=Components&query_format=advanced&product=NSS&target_milestone=3.46.1 Compatibility NSS 3.46.1 shared libraries are backward compatible with all older NSS 3.x shared libraries. A program l...
NSS 3.47.1 release notes
urce distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_47_1_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.47.1 No new functionality is introduced in this release. ...
...ce tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_47_1_RTM/src/ Other releases are available in NSS Releases. New in NSS 3.47.1 No new functionality is introduced in this release. Bugs fixed in NSS 3.47.1 CVE-2019-11745 - EncryptUpdate should use maxout, not block size Bug
1590495 - Fix a crash that could be caused by client certificates during startup Bug
1589810 - Fix compile-time warnings from uninitialized variables in a perl script This Bugzilla query returns all the bugs fixed in NSS 3.47: https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&classification=Components&query_format=advanced&product=NSS&target_milestone=3.47 Compatibility NSS 3.47.1 shared libraries are backward compatible with all older NSS 3.x shared libraries. A progra...
NSS 3.55 release notes
to draft-38. See Bug 1647752 for details. NSPR dependency updated to 4.27. Known Issues On some platforms, using the Makefile builds fails to locate seccomon.h; ensure you are using make all rather than just make. Another potential workaround is to use the gyp-based build.sh script. If this affects you, please help us narrow down the cause in Bug 1653975. Bugs fixed in NSS 3.55 Bug 163
1583 (CVE-2020-6829, CVE-2020-12400) - Replace P384 and P521 with new, verifiable implementations from Fiat-Crypto and ECCKiila. Bug 1649487 - Move overzealous assertion in VFY_EndWithSignature. Bug 163
1573 (CVE-2020-12401) - Remove unnecessary scalar padding. Bug 1636771 (CVE-2020-12403) - Explicitly disable multi-part ChaCha20 (which was not functioning correctly) and more strictly enforce ta...
...mcpy zero bytes (sanitizer fix). Bug 1649316 - Don't memcpy zero bytes (sanitizer fix). Bug 1649322 - Don't memcpy zero bytes (sanitizer fix). Bug 1653202 - Fix initialization bug in blapitest when compiled with NSS_DISABLE_DEPRECATED_SEED. Bug 1646594 - Fix AVX2 detection in makefile builds. Bug 1649633 - Add PK11_FindCertInSlot to search a given slot for a DER-encoded certificate. Bug 165
1520 - Fix slotLock race in NSC_GetTokenInfo. Bug 1647752 - Update DTLS 1.3 implementation to draft-38. Bug 1649190 - Run cipher, sdr, and ocsp tests under standard test cycle in CI. Bug 1649226 - Add Wycheproof ECDSA tests. Bug 1637222 - Consistently enforce IV requirements for DES and 3DES. Bug 1067214 - Enforce minimum PKCS#1 v1.5 padding length in RSA_CheckSignRecover. Bug 1643528 -...
Rhino shell
t script. -f script-filename-or-url Reads script-filename-or-url content and execute it as a JavaScript script. -opt optLevel / -O optLevel Optimizes at level optLevel, which must be -1 or an integer between 0 and 9. See Rhino Optimization for more details. -version versionNumber Specifies the language version to compile with. The string versionNumber must be one of 100, 110, 120, 130, 140,
150, 160 or 170. See JavaScript Language Versions for more information on language versions. -strict Enable strict mode. -continuations Enable experimental support for continuations and set the optimization level to -1 to force interpretation mode. Starting with Rhino 1.7 this options is no longer available. Note If the shell is invoked with the system property rhino.use_java_policy_security s...
...ction. The new function synchronizes on the this object of its invocation. quit() Quit shell. The shell will also quit in interactive mode if an end-of-file character is typed at the prompt. version([number]) Get or set JavaScript version number. If no argument is supplied, the current version number is returned. If an argument is supplied, it is expected to be one of 100, 110, 120, 130, 140,
150, 160 or 170 to indicate JavaScript version 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 or 1.7 respectively. 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. The next invocation has no arguments, so the shell goes into interactive mode, reading and evalu...
Introduction to the JavaScript shell
u entered " + n1 + " and " + n2 + "\n"); } Calling dissrc(doStuff) function would give this output: ;------------------------- 10: print("Enter a number: "); 00000: 10 name "print" 00003: 10 pushobj 00004: 10 string "Enter a number: " 00007: 10 call 1 00010: 10 pop ;------------------------- 11: var n1 = readline(); 00011: 11 name "readline" 00014: 11 pushobj 000
15: 11 call 0 00018: 11 setvar 0 00021: 11 pop ;------------------------- 12: print("Enter another one: "); 00022: 12 name "print" 00025: 12 pushobj 00026: 12 string "Enter another one: " 00029: 12 call 1 00032: 12 pop ;------------------------- 13: var n2 = readline(); 00033: 13 name "readline" 00036: 13 pushobj 00037: 13 call 0 00040: 13 setvar 1 00043: 1...
...---------- 12: print("Enter another one: "); 00022: 12 name "print" 00025: 12 pushobj 00026: 12 string "Enter another one: " 00029: 12 call 1 00032: 12 pop ;------------------------- 13: var n2 = readline(); 00033: 13 name "readline" 00036: 13 pushobj 00037: 13 call 0 00040: 13 setvar 1 00043: 13 pop ;------------------------- 14: ;-------------------------
15: print("You entered " + n1 + " and " + n2 + "\n"); 00044:
15 name "print" 00047:
15 pushobj 00048:
15 string "You entered " 00051:
15 getvar 0 00054:
15 add 00055:
15 string " and " 00058:
15 add 00059:
15 getvar 1 00062:
15 add 00063:
15 string "\\n" 00066:
15 add 00067:
15 call 1 00070:
15 pop 00071:
15 stop dumpheap(([fileName[, start[, toFind[, maxDepth[,...
JS_SetOptions
compilation and execution. This enables compile-time scope chain resolution of consts (a performance optimization). MXR ID Search for JSOPTION_COMPILE_N_GO JSOPTION_ATLINE //@line number ["filename"] option supported for the XUL preprocessor and kindred beasts. MXR ID Search for JSOPTION_ATLINE JSOPTION_XML Obsolete since JSAPI
15 ECMAScript for XML (E4X) support: parse <!-- --> as a token, not backward compatible with the comment-hiding hack used in HTML script tags. MXR ID Search for JSOPTION_XML JSOPTION_ALLOW_XML Added in SpiderMonkey
15 If this is off, E4X syntax isn't supported no matter what version number is set. MXR ID Search for JSOPTION_ALLOW_XML JSOPTION_MOAR_XML ...
...Only used if JSOPTION_ALLOW_XML is set. ...
JSAPI reference
of the following are deprecated. See JS::Value for their modern replacements. JSVAL_IS_NULL Obsolete since JSAPI 32 JSVAL_IS_VOID Obsolete since JSAPI 32 JSVAL_IS_BOOLEAN Obsolete since JSAPI 32 JSVAL_IS_NUMBER Obsolete since JSAPI 32 JSVAL_IS_INT Obsolete since JSAPI 32 JSVAL_IS_DOUBLE Obsolete since JSAPI 32 JSVAL_IS_STRING Obsolete since JSAPI 32 JSVAL_IS_OBJECT Obsolete since JSAPI
15 JSVAL_IS_PRIMITIVE Obsolete since JSAPI 32 JSVAL_IS_GCTHING Obsolete since JSAPI 32 High-level type-conversion routines for packing and unpacking function arguments. JS_ConvertArguments Obsolete since JSAPI 38 JS_ConvertArgumentsVA Obsolete since JSAPI 38 JS_PushArguments Obsolete since JavaScript 1.8.5 JS_PushArgumentsVA Obsolete since JavaScript 1.8.5 JS_PopArguments Obsolete since...
... JSIteratorOp Obsolete since JSAPI 26 JSEqualityOp Obsolete since JavaScript 1.8.5 JSObjectOp Obsolete since JavaScript 1.8.5 JSObjectOps method types: In JS 1.8.5, JSObjectOps has been made private. JSNewObjectMapOp Obsolete since JavaScript 1.8.5 JSObjectMapOp Obsol...
Redis Tips
res are sorted smallest to biggest. To get the most recent, you can use ZREVRANGE: > r.zrevrange('last-login', 0, -1, print); ["lloyd", "zcarter", "jparsons"] To see the scores, use the optional WITHSCORES argument. As a rule, the name of the optional argument is given as a string in the node function call. > r.zrevrange('last-login', 0, -1, 'WITHSCORES', print); ["lloyd", "1339627441.1
15", "zcarter", "1339627437.7579999", "jparsons", "1339627432.928"] Awesome. In addition to getting elements by their rank in the ZSET, you can get them by score. For example, to see everyone who's logged in in the last hour, you could do: > var an_hour_ago = now() - (60 * 60); > r.zrevrangebyscore('last-login', an_hour_ago, Infinity, print); Here are two ways to get the last person wh...
... How cool is that? EXPIRE EXPIREAT TTL PERSIST SETEX Example: redis> set foo 42 OK redis> ttl foo (integer) -1 redis> expire foo 5 (integer) 1 Three seconds later ... redis> ttl foo (integer) 2 A further two seconds later ... redis> get foo (nil) redis> ttl foo (integer) -1 Using EXPIRE you set an expiration in...
Secure Development Guidelines
arithmetic operation attempts to create a numeric value that is larger than can be represented within the available storage space MAX + 1 will be 0 and 0 - 1 will be MAX! ...
... signed char -128 - +127 unsigned char 0 - +255 16 signed short -32768 - +32767 unsigned short 0 - +65535 32 signed int -2147483648 - +2147483647 unsigned int 0 - +4294967295 64 signed long long -9223372036854775808 - +9223372036854775807 unsigned long long 0 - +184467440737095516
15 int vuln_funct(int size) { char buf[1024]; if (size > sizeof(buf) - 1) return -1; } Signedness Issues: Don't mix signed and unsigned integers Use unsigned integers for sizes, offsets, and indexes Casting and Truncation Example: void vuln_funct() { u_int32_t size1 = 0xffffffff; u_int16_t size2 = size1; void *ptr = malloc(size2); if (!ptr) exit(EX...
Security and the jar protocol
abled again because it broke the experience of IBM iNotes users. iNotes has since been updated so that it no longer needs remote jars, so they have been disabled again in Firefox 55. You may re-enable the feature if necessary by setting the network.jar.block-remote-files preference to false. Java Archive (JAR) files are simply Zip compressed bundles of files. Firefox 2.0.0.10 (and Firefox 1.5.0.
15) fixed a potential security issue in the same origin policy when the jar: protocol was used to load data. Prior to this change, specifying the jar: protocol caused Firefox to assume that the file being retrieved is a JAR file, regardless of its MIME type (in other words, its MIME type was assumed to be application/zip, regardless of what it actually was). This means that no matter what the file'...
... was a Zip archive. This ordinarily isn't a big deal, since site developers wouldn't put up dangerous files and set them up to download like Zip archives. However, if a site allows file uploads, Zip files are typically treated as relatively innocuous by web sites in that situation, since they're not executable. Unless, of course, the browser thinks it's a JAR file. So starting with Gecko 1.8.0.
15 and 1.8.1.10, the jar: protocol is only allowed if the MIME type of the file is application/java-archive. A site that serves a file with that type is essentially promising that it has vetted the content and that it is in fact safe to download and execute. Any other file type results in an "Unsafe file type" error. ...
Creating the Component Code
gistrar.h" // use classes to handle IIDs // classes provide methods for comparison: Equals, etc. static const nsIID kIModuleIID = NS_IMODULE_IID; static const nsIID kIFactoryIID = NS_IFACTORY_IID; static const nsIID kISupportsIID = NS_ISUPPORTS_IID; static const nsIID kIComponentRegistrarIID = NS_ICOMPONENTREGISTRAR_IID; // generate unique ID here with uuidgen #define SAMPLE_CID \ { 0x777f7
150, 0x4a2b, 0x4301, \ { 0xad, 0x10, 0x5e, 0xab, 0x25, 0xb3, 0x22, 0xaa}} static const nsCID kSampleCID = SAMPLE_CID; nsIModule.h and nsIFactory.h are required to build your module successfully. They define the module and factory interfaces, and they contain a couple of important macros as well (see the following chapter for information about using these macros). The two other includes, nsICompon...
...fine MOZILLA_STRICT_API #include "nsIModule.h" #include "nsIFactory.h" #include "nsIComponentManager.h" #include "nsIComponentRegistrar.h" static const nsIID kIModuleIID = NS_IMODULE_IID; static const nsIID kIFactoryIID = NS_IFACTORY_IID; static const nsIID kISupportsIID = NS_ISUPPORTS_IID; static const nsIID kIComponentRegistrarIID = NS_ICOMPONENTREGISTRAR_IID; #define SAMPLE_CID \ { 0x777f7
150, 0x4a2b, 0x4301, \ { 0xad, 0x10, 0x5e, 0xab, 0x25, 0xb3, 0x22, 0xaa}} static const nsCID kSampleCID = SAMPLE_CID; class Sample: public nsISupports { private: nsrefcnt mRefCnt; public: Sample(); virtual ~Sample(); NS_IMETHOD QueryInterface(const nsIID &aIID, void **aResult); NS_IMETHOD_(nsrefcnt) AddRef(void); NS_IMETHOD_(nsrefcnt) Release(void); }; Sample::Sample...
nsACString_internal
A sub-class is instantiated instead. For example, see nsTString. NAMES: nsAString for wide characters nsACString for narrow characters Many of the accessors on nsTSubstring are inlined as an optimization. ...
...coords="4
15,101,497,149" href="http://developer.mozilla.org/en/nsCString" shape="rect" title="nsCString"> <area alt="" coords="521,101,689,149" href="http://developer.mozilla.org/en/nsDependentCSubstring" shape="rect" title="nsDependentCSubstring"> <area alt="" coords="172,197,289,245" href="http://developer.mozilla.org/en/nsFixedCString" shape="rect" title="nsFixedCString"> <area alt="" coords="3
15,197,437,245" href="http://developer.mozilla.org/en/nsXPIDLCString" shape="rect" title="nsXPIDLCString"> <area alt="" coords="461,197,611,245" href="http://developer.mozilla.org/en/nsDependentCString" shape="rect" title="nsDependentCString"> <area alt="" coords="635,197,787,245" href="http://developer.mozilla.org/en/nsPromiseFlatCString" shape="rect" title="nsPromiseFlatCString"> <area alt="" coor...
nsIAccessibleProvider
XULTabBox 0x00001018 A combination of a tabs object and a tabpanels object. XULTabs 0x00001019 The collection of tab objects, usable in the TabBox and independent of as well. XULText 0x0000101A XULTextBox 0x0000101B XULThumb 0x0000101C XULTree 0x0000101D XULTreeColum...
...rmsItemCheckgroup 0x00002012 Used for xforms item element that is used inside xforms select elements represented by group of checkboxes. XFormsItemRadiogroup 0x00002013 Used for xforms item element that is used inside xforms select1 elements represented by radio group. XFormsSelectCombobox 0x00002014 Used for xforms select1 element that is represented by combobox. XFormsItemCombobox 0x000020
15 Used for xforms item element that is used inside xforms select1 elements represented by combobox. XFormsDropmarkerWidget 0x00002101 Used for dropmarker widget that is used by xforms elements. XFormsCalendarWidget 0x00002102 Used for calendar widget that is used by xforms elements. XFormsComboboxPopupWidget 0x00002103 Used for popup widget that is used by xforms minimal select1 elements. ...
nsIAccessibleRole
". ROLE_MENUITEM 12 Represents a menu item, which is an entry in a menu that a user can choose to carry out a command, select an option. It is used for xul:menuitem, role="menuitem". ROLE_TOOLTIP 13 Represents a ToolTip that provides helpful hints. ROLE_APPLICATION 14 Represents a main window for an application. It is used for role="application". Also refer to ROLE_APP_ROOT. ROLE_DOCUMENT
15 Represents a document window. A document window is always contained within an application window. It is used for role="document". ROLE_PANE 16 Represents a pane within a frame or document window. Users can navigate between panes and within the contents of the current pane, but cannot navigate between items in different panes. Thus, panes represent a level of grouping lower than frame windows or...
... not found on a keyboard, such as the input of Chinese characters on a Western keyboard. ROLE_APP_ROOT 111 ROLE_PARENT_MENUITEM 112 Represents a menu item, which is an entry in a menu that a user can choose to display another menu. ROLE_CALENDAR 113 A calendar that allows the user to select a date. ROLE_COMBOBOX_LIST 114 A list of items that is shown by combobox. ROLE_COMBOBOX_OPTION 1
15 A item of list that is shown by combobox; ROLE_IMAGE_MAP 116 An image map -- has child links representing the areas. ROLE_OPTION 117 An option in a listbox. ROLE_RICH_OPTION 118 A rich option in a listbox, it can have other widgets as children. ROLE_LISTBOX 119 A list of options. ROLE_FLAT_EQUATION 120 Represents a mathematical equation in the accessible name. ROLE_GRID_CELL 121 Repre...
nsIDialogParamBlock
. PRInt32 GetInt( in PRInt32 inIndex ); Parameters inIndex The index of the integer to get. Must be in the range 0..7. Return value The previously set integer, or 0 if no integer has been previously set at that index. GetString() Get a previously set string. wstring GetString( in PRInt32 inIndex ); Parameters inIndex The index of the string to get. Must be in the range 0..
15 unless SetNumberStrings was called. Return value The string at the given index, or the empty string if no string has previously been set at that index. SetInt() void SetInt( in PRInt32 inIndex, in PRInt32 inInt ); Parameters inIndex The index of the integer to set. Must be in the range 0..7. inInt The integer to set at the given index. SetNumberStrings() Set the maximum nu...
...e before setting any string (if you want to change it from the default). This method can only be called once. void SetNumberStrings( in PRInt32 inNumStrings ); Parameters inNumStrings The new maximum number of strings to pass. SetString() void SetString( in PRInt32 inIndex, in wstring inString ); Parameters inIndex The index of the string to set. Must be in the range 0..
15 unless SetNumberStrings was called. inString The string to set at the given index. ...
nsIIdleService
.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 16 (Firefox 16 / Thunderbird 16 / SeaMonkey 2.13) You can get the idle time directly, but in most cases you will want to register an observer for a predefined interval. The observer will get an 'idle' notification when the user is idle for that interval (or longer), and receive a 'back' (Gecko 3 to
15) or 'active' (Gecko 16+) notification when the user starts using their computer again. Note: The idle service is for computer-wide idle detection, not just application idle detection. In other words, even if the user is working in other applications, the idle service will still consider the user to be active. Currently nsIIdleService implementations exist for Windows, Mac OS X, and Linux (via ...
... to poll for idle time manually). Read only. Methods addIdleObserver() Add an observer to be notified when the user idles for some period of time, and when they get back from that. The subject of the notification the observer will get is always the nsIIdleService itself. When the user goes idle, the observer topic is 'idle' and when they get back, the observer topic is 'back' in Gecko
15 and earlier or 'active' in Gecko 16 and later. The data parameter for the notification contains the current user idle time in Gecko
15 and earlier or 0 in Gecko 16 and later. You can add the same observer twice. Most implementations need to poll the OS for idle info themselves, meaning your notifications could arrive with a delay up to the length of the polling interval in that implementation. ...
nsISmsDatabaseService
nsISmsDatabaseService dom/sms/interfaces/nsISmsDatabaseService.idlScriptable Used to store and manage SMS text messages for the WebSMS API 1.0 66 Introduced Gecko 13.0 Inherits from: nsISupports Last changed in Gecko
15.0 (Firefox
15.0 / Thunderbird
15.0 / SeaMonkey 2.12) Implemented by: @mozilla.org/sms/smsdatabaseservice;1. To create an instance, use: var smsService = Components.classes["@mozilla.org/sms/smsdatabaseservice;1"] .createInstance(Components.interfaces.nsISmsDatabaseService); Method overview long saveReceivedMessage(in DOMString aSender, in DOMString aBody, in unsigned long long aDate); long saveSentMessage(in DOMString aReceiver, in DOMString aBody, in unsigned long long aDate); void getMessage(in long messageId,...
...signed long long processId ); Parameters listId A number representing the id of the message list. requestId A number representing the id of the request. processId Optional A number representing the id of the process. clearMessageList() void getNextMessageInList( in long listId, ); Parameters listId A number representing the id of the message list. markMessageRead() Requires Gecko
15.0(Firefox
15.0 / Thunderbird
15.0 / SeaMonkey 2.12) void markMessageRead( in long messageId, in boolean value, in long requestId, [optional] in unsigned long long processId ); Parameters messageId A number representing the id of the message. value A Boolean indicating whether a message is read or unread. requestId A number representing the id of the request. processId Optional A number...
Xptcall Porting Status
om the assembler ASAXP ... if some knows how to do that then those last 2 files won't be needed. I have had someone look over this code at bridge.com (the entry point to compaq/gem compiler team) and this code was given the OK. I consider it "done". This code lives in the files where the name includes 'alpha' in the win32 directory. <font color="white">Done</font> Linux ARM Stefan Hanske<sh990
154@mail.uni-greifswald.de> <font color="red">?</font> Matthew Wilcox <willy@bofh.ai> Stefan's code is checked in and he says it is working. <font color="white">Done</font> Linux Sparc Anton Blanchard <anton@progsoc.uts.edu.au>, Roger Lawrence <rogerl@netscape.com>, Brandon Ehle <ehle.3@osu.edu> Anton contributed patches to Roger's Sparc code. Anton says it works and passes the tests! (24-Aug...
...ng to the platform based on the code for Linux ARM. The InvokeByIndex code works correctly when used with TestXPTCInvoke. I am currently working on making TestXPC function correctly. I am doing the porting work with egcs-1.1.2 on NetBSD 1.4P (NetBSD-current snapshot from a couple of days ago). <font color="white">Done</font> Linux ia64 HP Ulrich Drepper <drepper@redhat.com> bug 40950 comment
15 <font color="white">HELP!</font> All others! - - Note: I've used the symbol (<font color="red">?</font>) to indicate people who have expressed an interest in possibly contributing code. Just because these people are listed here does not mean that they have commited themselves to do the work. If you would like to contribute then let me know. Feel free to email these folks and offer to help or...
Index
ig file format No summary! 12 Autoconfig file format definition Please see https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat. 13 Autoconfig: How to create a configuration file Autoconfiguration, thunderbird Authoritative definition 14 Autoconfiguration in Thunderbird Moved to Autoconfiguration
15 Buddy icons in mail Seth Spitzer Mozilla is now able to show icons in the message header area and the addressbook card pane. For the message pane, the icon we will show is on disk at: <profile home>/NIM/<value of pref aim.session.screenname>/picture/<screenname for sender email address>.gif When trying to determine the screenname for the sender, we search the addressboo...
...ws 7 developer builds Thunderbird debug, thunderbird MAPI (Messaging Application Programming Interface) is a Windows feature that allows applications to send files via a system's default mail application. The Thunderbird installer sets the installed build as the default mapi/mail client. If you want to set a debug build as the default mail client, you need configure it manually: 1
15 Using the Multiple Accounts API By Alec Flett alecf@flett.org 118 libmime content type handlers by Richard H. Pizzarro <rhp@netscape.com> ...
Scripting plugins - Plugins
es scripting The Mozilla DOM code now checks if a plugin supports this new scriptability API and if it exposes a scriptable object through this new mechanism. Mozilla does this by calling the old plugin API call NPP_GetValue with the new enumeration value that has been added to the NPPVariable enumeration. The new NPPVariable enumeration is defined in npapi.h as: NPPVpluginScriptableNPObject =
15 Threading model This API is not designed to be thread safe. The threading model for this API is such that all calls through this API are synchronous and calls from a plugin to methods in this API must come from the thread on which the plugin was initiated, and likewise all calls to methods in this API by the browser are guaranteed to come from the same thread. Future revisions to this API migh...
...representing the browser object, and from there, the functions in this API can be used to get and set properties, and to call methods on those browser objects. And as always when working with reference counted NPObjects, the caller is responsible for calling NPN_ReleaseObject on the NPObject to drop the reference. ...
Plugin Roadmap for Firefox - Plugins
for plugins (bug 1381916). 2019 In September 2019, Firefox 69 will remove the "Always Activate" Flash option so we always ask for user permission before activating Flash on a website. 2020 In December 2020, Flash support will be completely removed from consumer versions of Firefox. Adobe will stop shipping security updates for Flash at the end of 2020. ...
...ating Flash on a website. 2020 In December 2020, Flash support will be completely removed from consumer versions of Firefox. Adobe will stop shipping security updates for Flash at the end of 2020. ...
Deprecated tools - Firefox Developer Tools
ided to remove the panel, we will provide a warning message, and finally, we will remove the panel from the codebase. You may see a warning message, as in the following image, when trying to activate a deprecated panel: In addition, if you open the panel for one of these tools, you will also see a warning message about its removal. Scratchpad Scratchpad is deprecated as of Firefox 70 (bug
1565380), and will be removed as of Firefox 72 (bug
1519103). Description Scratchpad provided an environment for experimenting with JavaScript code. You can write, run, and examine the result of code that interacts with the web page. Alternatives In Firefox 71+, you can write multi-line JavaScript code in the Web Console Editor Mode, making it similar to the Scratchpad. The Editor Mode can be ...
...put with an expandable stacktrace, making it easier to debug the code you're currently writing. Starting Firefox 72, you can import a Javascript file content in the console input with Ctrl + O (Cmd + O on macOS), as well as saving the console input content to a file using Ctrl + S (Cmd + S on macOS). WebIDE and Connect page WebIDE was deprecated as of Firefox 69 Disabled as of Firefox 70 (bug
1539451). Removed as of Firefox 71 (bug
1539462). Description WebIDE allowed you to connect the Firefox Developer Tools to remote browsers, such as Firefox for Android. It was also intended to support application development for Firefox OS. Alternatives Remote debugging is available in about:debugging as of Firefox 68. Features not ported to about:debugging are: WiFi debugging for Firefox for...
CSS Painting API - Web APIs
tx.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>item 8</li> <li>item 9</li> <li>item 10</li> <li>item 11</li> <li>item 12</li> <li>item 13</li> <li>item 14</li> <li>item
15</li> <li>item 16</li> <li>item 17</li> <li>item 18</li> <li>item 19</li> <li>item 20</li> </ul> CSS.paintWorklet.addModule('https://mdn.github.io/houdini-examples/cssPaint/intro/worklets/hilite.js'); Then we can use the <image> with the CSS paint() function: li { --boxColor: hsla(55, 90%, 60%, 1.0); background-image: paint(hollowHighlights, stroke, 2px); } li:nth-...
...Custom properties are accessible to the PaintWorklet. Specifications Specification Status Comment...
CanvasRenderingContext2D.arcTo() - Web APIs
arc to (20, 20) with a straight line. Note that the arc's second control point and the point specified by lineTo() are the same, which produces a totally smooth corner. const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); const p0 = { x: 230, y: 20 } const p1 = { x: 90, y: 130 } const p2 = { x: 20, y: 20 } const labelPoint = function (p) { const offset =
15; ctx.fillText('(' + p.x + ',' + p.y + ')', p.x + offset, p.y + offset); } ctx.beginPath(); ctx.moveTo(p0.x, p0.y); ctx.arcTo(p1.x, p1.y, p2.x, p2.y, 50); ctx.lineTo(p2.x, p2.y); labelPoint(p0); labelPoint(p1); labelPoint(p2); ctx.stroke(); Result Result of a large radius If you use a relatively large radius, the arc may appear in a place you didn't expect. In this example, the arc's c...
...yId('canvas'); const ctx = canvas.getContext('2d'); const controlOut = document.getElementById('radius-output'); const control = document.getElementById('radius'); control.oninput = () => { controlOut.textContent = r = control.value; }; const mouse = { x: 0, y: 0 }; let r = 100; // Radius const p0 = { x: 0, y: 50 }; const p1 = { x: 100, y: 100 }; const p2 = { x:
150, y: 50 }; const p3 = { x: 200, y: 100 }; const labelPoint = function (p, offset, i = 0){ const {x, y} = offset; ctx.beginPath(); ctx.arc(p.x, p.y, 2, 0, Math.PI * 2); ctx.fill(); ctx.fillText(`${i}:(${p.x}, ${p.y})`, p.x + x, p.y + y); } const drawPoints = function (points){ for (let i = 0; i < points.length; i++) { var p = points[i]; labelPoint(p, { x: 0, y: -20...
CanvasRenderingContext2D.closePath() - Web APIs
() or fill() methods. Syntax void ctx.closePath(); Examples Closing a triangle This example creates the first two (diagonal) sides of a triangle using the lineTo() method. After that, the triangle's base is created with the closePath() method, which automatically connects the shape's first and last points. HTML <canvas id="canvas"></canvas> JavaScript The triangle's corners are at (20,
150), (120, 20), and (220,
150). 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 T...
... arcs have been created, only the last arc (sub-path) gets closed. HTML <canvas id="canvas"></canvas> JavaScript The first two arcs create the face's eyes. The last arc creates the mouth. 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(2
15, 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. Living Standard ...
CanvasRenderingContext2D.drawFocusIfNeeded() - Web APIs
'blue' : 'black'; ctx.fillText(el.textContent, x + width / 2, y + height / 2); // Define clickable area ctx.beginPath(); ...
...(); } // Focus button2, if appropriate drawButton(button2, 20, 80); if (ctx.isPointInPath(x, y)) { button2.focus(); } } function drawButton(el, x, y) { const active = document.activeElement === el; const width =
150; const height = 40; // Button background ctx.fillStyle = active ? 'pink' : 'lightgray'; ctx.fillRect(x, y, width, height); // Button text ctx.font = '
15px sans-serif'; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillStyle = active ? 'blue' : 'black'; ctx.fillText(el.textContent, x + width / 2, y + height / 2); // Define clickable area ctx.beginPath(); ctx.rect(x, y, width, height); // Draw focus ring, if appropriate ctx.drawFocusIfNeeded(el); } Result Specifications Specification Status Comm...
CanvasRenderingContext2D.fillStyle - Web APIs
l colors using loops In this example, we use two for loops to draw a grid of rectangles, each having a different fill color. To achieve this, we use the two variables i and j to generate a unique RGB color for each square, and only modify the red and green values. (The blue channel has a fixed value.) By modifying the channels, you can generate all kinds of palettes. ...
...g loops In this example, we use two for loops to draw a grid of rectangles, each having a different fill color. To achieve this, we use the two variables i and j to generate a unique RGB color for each square, and only modify the red and green values. (The blue channel has a fixed value.) By modifying the channels, you can generate all kinds of palettes. ...
CanvasRenderingContext2D.fillText() - Web APIs
ntally condensed font (if one is available or can be generated without loss of quality), or scale down to a smaller font size in order to fit the text in the specified width. Return value undefined. Examples Drawing filled text This example writes the words "Hello world" using the fillText() method. HTML First, we need a canvas to draw into. This code creates a context 400 pixels wide and
150 pixels across. <canvas id="canvas" width="400" height="
150"></canvas> JavaScript The JavaScript code for this example follows. const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.font = '50px serif'; ctx.fillText('Hello world', 50, 90); This code obtains a reference to the <canvas>, then gets a reference to its 2D graphics context. With that in han...
...en gets a reference to its 2D graphics context. With that in hand, we set the font to 50-pixel-tall "serif" (the user's default serif font), then call fillText() to draw the text "Hello world," starting at the coordinates (50, 90). Result Restricting the text size This example writes the words "Hello world," restricting its width to 140 pixels. HTML <canvas id="canvas" width="400" height="
150"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.font = '50px serif'; ctx.fillText('Hello world', 50, 90, 140); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.fillText' in that specification. Living Standard ...
CanvasRenderingContext2D.globalAlpha - Web APIs
ll apply to all of our transparent shapes. After that, we use a for loop to draw a series of circles with increasing radii. With each new circle, the opacity of the previous circles underneath is effectively increased. If we were to increase the step count (and thus draw more circles), the background would eventually disappear completely from the center of the image. ...
...ll of our transparent shapes. After that, we use a for loop to draw a series of circles with increasing radii. With each new circle, the opacity of the previous circles underneath is effectively increased. If we were to increase the step count (and thus draw more circles), the background would eventually disappear completely from the center of the image. ...
CanvasRenderingContext2D.lineWidth - Web APIs
ckness 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. Zero, negative, Infinity, and NaN values are ignored. This value is 1.0 by default. ...
...pecifying the line width, in coordinate space units. Zero, negative, Infinity, and NaN values are ignored. This value is 1.0 by default. Examples Changing line width This example draws a line and a rectangle, using a line width of
15 units. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.lineWidth =
15; ctx.beginPath(); ctx.moveTo(20, 20); ctx.lineTo(130, 130); ctx.rect(40, 40, 70, 70); ctx.stroke(); Result More examples For more examples and explanation about this property, see Applying styles and color in the Canvas Tutorial. Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.lineWidth' in that specifica...
CanvasRenderingContext2D.quadraticCurveTo() - Web APIs
; ctx.arc(230, 30, 5, 0, 2 * Math.PI); ctx.fill(); Result In this example, the control point is red and the start and end points are blue. A simple quadratic curve This example draws a simple quadratic Bezier curve using quadraticCurveTo(). HTML <canvas id="canvas"></canvas> JavaScript The curve begins at the point specified by moveTo(): (20, 110). ...
...s a simple quadratic Bezier curve using quadraticCurveTo(). HTML <canvas id="canvas"></canvas> JavaScript The curve begins at the point specified by moveTo(): (20, 110). The control point is placed at (230,
150). The curve ends at (250, 20). const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.beginPath(); ctx.moveTo(20, 110); ctx.quadraticCurveTo(230,
150, 250, 20); ctx.stroke(); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.quadraticCurveTo' in that specification. Living Standard ...
CanvasRenderingContext2D.strokeStyle - Web APIs
100, 100); Result Creating multiple stroke colors using loops In this example, we use two for loops and the arc() method to draw a grid of circles, each having a different stroke color. To achieve this, we use the two variables i and j to generate a unique RGB color for each circle, and only modify the green and blue values. ...
... Result Creating multiple stroke colors using loops In this example, we use two for loops and the arc() method to draw a grid of circles, each having a different stroke color. To achieve this, we use the two variables i and j to generate a unique RGB color for each circle, and only modify the green and blue values. ...
CanvasRenderingContext2D.strokeText() - Web APIs
condensed font (if one is available or can be generated without loss of quality), or scale down to a smaller font size in order to fit the text in the specified width. Return value undefined. Examples Drawing text outlines This example writes the words "Hello world" using the strokeText() method. HTML First, we need a canvas to draw into. This code creates a context 400 pixels wide and
150 pixels high. <canvas id="canvas" width="400" height="
150"></canvas> JavaScript The JavaScript code for this example follows. const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.font = '50px serif'; ctx.strokeText('Hello world', 50, 90); This code obtains a reference to the <canvas>, then gets a reference to its 2D graphics context. With that in han...
... gets a reference to its 2D graphics context. With that in hand, we set the font to 50-pixel-tall "serif" (the user's default serif font), then call strokeText() to draw the text "Hello world," starting at the coordinates (50, 90). Result Restricting the text size This example writes the words "Hello world," restricting its width to 140 pixels. HTML <canvas id="canvas" width="400" height="
150"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.font = '50px serif'; ctx.strokeText('Hello world', 50, 90, 140); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.strokeText' in that specification. Living Standard ...
Canvas API - Web APIs
ntById() method gets a reference to the HTML <canvas> element. Next, the HTMLCanvasElement.getContext() method gets that element's context--the thing onto which the drawing will be rendered. The actual drawing is done using the CanvasRenderingContext2D interface. The fillStyle property makes the rectangle green. ...
...e drawing will be rendered. The actual drawing is done using the CanvasRenderingContext2D interface. The fillStyle property makes the rectangle green. The fillRect() method places its top-left corner at (10, 10), and gives it a size of
150 units wide by 100 tall. const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.fillStyle = 'green'; ctx.fillRect(10, 10,
150, 100); Result Reference HTMLCanvasElement CanvasRenderingContext2D CanvasGradient CanvasImageSource CanvasPattern ImageBitmap ImageData RenderingContext TextMetrics OffscreenCanvas Path2D ImageBitmapRenderingContext Note: The interfaces related to the WebGLRenderingContext are referenced under WebGL. CanvasCaptureMediaStream is a related interface. Guides and tut...
DOMHighResTimeStamp - Web APIs
accurate to the millisecond. Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of time stamps might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 20 us in Firefox 59; in 60 it will be 2ms. // reduced time precision (2ms) in Firefox 60 event.timeStamp //
1519211809934 //
1519211810362 //
1519211811670 // ... // reduced time precision with `privacy.resistFingerprinting` enabled event.timeStamp; //
1519129853500 //
1519129858900 //
1519129864400 // ... In Firefox, you can also enable privacy.resistFingerprinting, the precision will be 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger. Proper...
...for AndroidOpera for AndroidSafari on iOSSamsung InternetDOMHighResTimestampChrome Full support 6Edge Full support 12Firefox Full support 7IE Full support 9Opera Full support
15Safari Full support 8WebView Android Full support YesChrome Android Full support 18Firefox Android Full support
15Opera Android Full support 14Safari iOS Full ...
DOMRect - Web APIs
adOnly. ...
...-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="2px" /><text x="76" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">DOMRectReadOnly</text></a><polyline points="
151,25 161,20 161,30
151,25" stroke="#D4DDE4" fill="none"/><line x1="161" y1="25" x2="191" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/DOMRect" target="_top"><rect x="191" y="1" width="75" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="228.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" align...
GamepadEvent - Web APIs
on 24 until version 28 (exclusive): this feature is behind the dom.gamepad.enabled preference (needs to be set to true). ...
...on 24 until version 28 (exclusive): this feature is behind the dom.gamepad.enabled preference (needs to be set to true). ...
HTMLAreaElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLAreaElement" target="_top"><rect x="341" y="65" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLAreaElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties Inherits properties from its parent, HTMLElement, and implements...
HTMLBaseElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
... HTMLBaseEle...
HTMLBodyElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLBodyElement" target="_top"><rect x="341" y="65" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLBodyElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties Inherits properties from its parent, HTMLElement and from Window...
HTMLCanvasElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...D; pointer-events: all;} Properties Inherits properties from its parent, HTMLElement. HTMLCanvasElement.height The height HTML attribute of the <canvas> element is a positive integer reflecting the number of logical pixels (or RGBA values) going down one column of the canvas. When the attribute is not specified, or if it is set to an invalid value, like a negative, the default value of
150 is used. If no [separate] CSS height is assigned to the <canvas>, then this value will also be used as the height of the canvas in the length-unit CSS Pixel. HTMLCanvasElement.width The width HTML attribute of the <canvas> element is a positive integer reflecting the number of logical pixels (or RGBA values) going across one row of the canvas. When the attribute is not specified, or if it is s...
HTMLDataElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
... HTMLDataEle...
HTMLHeadElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
... HTMLHeadEle...
HTMLHtmlElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
... HTMLHtmlEle...
HTMLLinkElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/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-baseline="middle">HTMLLinkElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties Inherits properties from its parent, HTMLElement, and LinkStyle.
HTMLMenuElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLMenuElement" target="_top"><rect x="341" y="65" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLMenuElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} PropertiesThis interface has no properties, but inherits properties from: HT...
HTMLMetaElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
... Name...
HTMLScriptElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...ike comments) in tree order. On setting, it acts the same way as the textContent IDL attribute. Note: When inserted using the document.write() method, <script> elements execute (typically synchronously), but when inserted using innerHTML or outerHTML, they do not execute at all. HTMLScriptElement.noModule Is a Boolean that if true, stops the script's execution in browsers that support ES20
15 modules -- used to run fallback scripts in older browsers that do not support JavaScript modules. HTMLScriptElement.referrerPolicy Is a DOMString that reflects the referrerpolicy HTML attribute indicating which referrer to use when fetching the script, and fetches done by that script. Methods No specific methods; inherits methods from its parent, HTMLElement. Examples Dynamically importin...
HTMLSpanElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLSpanElement" target="_top"><rect x="341" y="65" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLSpanElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties This interface has no properties, but inherits properties from: ...
HTMLTimeElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
... HTMLTimeEle...
IDBCursorWithValue - Web APIs
-- 57Prefixed Prefixed Implemented with the vendor prefix: webkitChrome Android Full support 25 ...
... Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support
15Safari Full support 7WebView Android Full support YesChrome Android Full support YesFirefox Android Full support 22Opera Android Full support 14Safari iOS Full...
InstallEvent - Web APIs
"2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/ExtendableEvent" target="_top"><rect x="116" y="1" width="
150" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ExtendableEvent</text></a><polyline points="266,25 276,20 276,30 266,25" stroke="#D4DDE4" fill="none"/><line x1="276" y1="25" x2="306" y2="25" stroke="#D4DDE4"/><a xlink:href="/...
... ...
Intersection Observer API - Web APIs
ass="label topRight"></div> <div class="label bottomLeft"></div> <div class="label bottomRight"></div> </div> </template> <main> <div class="contents"> <div class="wrapper"> </div> </div> </main> .contents { position: absolute; width: 700px; height: 1725px; } .wrapper { position: relative; top: 600px; } .sampleBox { position: relative; left: 175px; width:
150px; background-color: rgb(245, 170, 140); border: 2px solid rgb(201, 126, 17); padding: 4px; margin-bottom: 6px; } #box1 { height: 200px; } #box2 { height: 75px; } #box3 { height:
150px; } #box4 { height: 100px; } .label { font: 14px "Open Sans", "Arial", sans-serif; position: absolute; margin: 0; background-color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(0,...
...holds--each of which is a ratio between 0.0 and 1.0, by pushing the value i/numSteps onto the thresholds array for each integer i between 1 and numSteps. It also pushes 0 to include that value. The result, given the default value of numSteps (20), is the following list of thresholds: # Ratio # Ratio 1 0.05 11 0.55 2 0.1 12 0.6 3 0.
15 13 0.65 4 0.2 14 0.7 5 0.25
15 0.75 6 0.3 16 0.8 7 0.35 17 0.85 8 0.4 18 0.9 9 0.45 19 0.95 10 0.5 20 1.0 We could, of course, hard-code the array of thresholds into our code, and often that's what you'll end up doing. But this example leaves room for adding c...
KeyboardEvent.code - Web APIs
cal "WASD" keyboard layout for steering forward, left, backward, and right. This will use the same four keys physically regardless of what the actual corresponding characters are, such as if the user is using an AZERTY keyboard. HTML <p>Use the WASD (ZQSD on AZERTY) keys to move and steer.</p> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="world"> <polygon id="spaceship" points="
15,0 0,30 30,30"/> </svg> <script>refresh();</script> CSS .world { margin: 0px; padding: 0px; background-color: black; width: 400px; height: 400px; } #spaceship { fill: orange; stroke: red; stroke-width: 2px; } JavaScript The first section of the JavaScript code establishes some variables we'll be using. shipSize contains the size of the ship the player is moving around, for co...
...osition.x = 0; } if (position.y < 0) { position.y = 399; } else if (position.y > 399) { position.y = 0; } } The refresh() function handles applying the rotation and position by using an SVG transform. function refresh() { let x = position.x - (shipSize.width/2); let y = position.y - (shipSize.height/2); let transform = "translate(" + x + " " + y + ") rotate(" + angle + "
15 15) "; spaceship.setAttribute("transform", transform); } Finally, the addEventListener() method is used to start listening for keydown events, acting on each key by updating the ship position and rotation angle, then calling refresh() to draw the ship at its new position and angle. window.addEventListener("keydown", function(event) { if (event.defaultPrevented) { return; // Do nothing...
Using the Media Capabilities API - Web APIs
hese are also used to determine the aspect ratio. The bitrate is the number of bits used to encode one second of video. The framerate is the number of frames which are played per second of time when playing the video. ...
...n>1280x720</option> <option selected>800x600</option> <option>640x480</option> <option>320x240</option> <option value=" x ">none</option> </select> </li> <li> <label for="framerate">Select a framerate</label> <select id="framerate"> <option>60</option> <option>50</option> <option>30</option> <option>24</option> <option selected>
15</option> </select> </li> <li> <label for="bitrate">Select a bitrate</label> <select id="bitrate"> <option>4000</option> <option>2500</option> <option>800</option> </select> </li> </ul> <p><input type="button" value="Test this Video Configuration" id="tryit"></p> </form> <ul id="results"></ul> JavaScript let mc = { videoConfiguration : new Object(...
OVR_multiview2.framebufferTextureMultiviewOVR() - Web APIs
ATTACHMENT: depth and stencil buffer. ...
... texture A WebGLTexture object whose image to attach. level A GLint specifying the mipmap level of the texture image to be attached. Must be 0. baseViewIndex A GLint specifying the base view index of the framebuffer object attachment. numViews ...
SVGGElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...idth="2px" /><text x="391" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGGraphicsElement</text></a><polyline 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-baseline="middle">SVGGElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties This interface doesn't implement any specific pro...
SVGGeometryElement.isPointInFill() - Web APIs
he point argument is interpreted as a point in the local coordiante system of the element. Syntax boolean someElement.isPointInFill(DOMPointInit point); Parameters point A DOMPointInit interpreted as a point in the local coordiante system of the element. Return value A boolean indicating whether the given point is within the fill or not. ...
...ment is interpreted as a point in the local coordiante system of the element. Syntax boolean someElement.isPointInFill(DOMPointInit point); Parameters point A DOMPointInit interpreted as a point in the local coordiante system of the element. Return value A boolean indicating whether the given point is within the fill or not. ...
SVGGeometryElement.isPointInStroke() - Web APIs
oint argument is interpreted as a point in the local coordiante system of the element. Syntax boolean someElement.isPointInStroke(DOMPointInit point); Parameters point A DOMPointInit interpreted as a point in the local coordinate system of the element. Return value A boolean indicating whether the given point is within the stroke or not. ...
... is interpreted as a point in the local coordiante system of the element. Syntax boolean someElement.isPointInStroke(DOMPointInit point); Parameters point A DOMPointInit interpreted as a point in the local coordinate system of the element. Return value A boolean indicating whether the given point is within the stroke or not. ...
SVGImageElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...391" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGGraphicsElement</text></a><polyline 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-baseline="middle">SVGImageElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties This interface also inherits properties from its parent, SVGGrap...
SVGMPathElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
..."middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGMPathElement" target="_top"><rect x="331" y="65" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGMPathElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties This interface doesn't implement any specific properties, but in...
SVGPathSeg - Web APIs
VETO_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 PATHSEG_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...
...lineto" (H) path data command. PATHSEG_LINETO_HORIZONTAL_REL 13 Corresponds to a "relative horizontal lineto" (h) path data command. PATHSEG_LINETO_VERTICAL_ABS 14 Corresponds to an "absolute vertical lineto" (V) path data command. PATHSEG_LINETO_VERTICAL_REL
15 Corresponds to a "relative vertical lineto" (v) path data command. PATHSEG_CURVETO_CUBIC_SMOOTH_ABS 16 Corresponds to an "absolute smooth cubic curveto" (S) path data command. PATHSEG_CURVETO_CUBIC_SMOOTH_REL 17 Corresponds to a "relative smooth cubic curveto" (s) path data command. ...
SVGStyleElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
..."middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGStyleElement" target="_top"><rect x="331" y="65" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGStyleElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties This interface also inherits properties from its parent interfac...
SVGTextContentElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
... LENGTHADJUST_SPACING 1 The...
SVGTextElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...ill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGGraphicsElement</text></a><polyline 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/SVGTextContentElement" target="_top"><rect x="51" y="65" width="210" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="
156" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGTextContentElement</text></a><polyline points="51,89 41,84 41,94 51,89" stroke="#D4DDE4" fill="none"/><line x1="41" y1="89" x2="11" y2="89" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGTextPositioningElement" target="_top"><rect x="-239" y="65" w...
SVGTextPathElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...ill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGGraphicsElement</text></a><polyline 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/SVGTextContentElement" target="_top"><rect x="51" y="65" width="210" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="
156" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGTextContentElement</text></a><polyline points="51,89 41,84 41,94 51,89" stroke="#D4DDE4" fill="none"/><line x1="41" y1="89" x2="11" y2="89" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGTextPathElement" target="_top"><rect x="-169" y="65" width="1...
SVGTextPositioningElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
...ill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGGraphicsElement</text></a><polyline 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/SVGTextContentElement" target="_top"><rect x="51" y="65" width="210" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="
156" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGTextContentElement</text></a><polyline points="51,89 41,84 41,94 51,89" stroke="#D4DDE4" fill="none"/><line x1="41" y1="89" x2="11" y2="89" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGTextPositioningElement" target="_top"><rect x="-239" y="65" w...
SVGTitleElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
..."middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGTitleElement" target="_top"><rect x="331" y="65" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGTitleElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties This interface doesn't implement any specific properties, but in...
WEBGL_draw_buffers - Web APIs
ext.DRAW_BUFFER0_WEBGL ext.DRAW_BUFFER1_WEBGL ext.DRAW_BUFFER2_WEBGL ext.DRAW_BUFFER3_WEBGL ext.DRAW_BUFFER4_WEBGL ext.DRAW_BUFFER5_WEBGL ext.DRAW_BUFFER6_WEBGL ext.DRAW_BUFFER7_WEBGL ext.DRAW_BUFFER8_WEBGL ext.DRAW_BUFFER9_WEBGL ext.DRAW_BUFFER10_WEBGL ext.DRAW_BUFFER11_WEBGL ext.DRAW_BUFFER12_WEBGL ext.DRAW_BUFFER13_WEBGL ext.DRAW_BUFFER...
...ng a color buffer. ext.DRAW_BUFFER0_WEBGL ext.DRAW_BUFFER1_WEBGL ext.DRAW_BUFFER2_WEBGL ext.DRAW_BUFFER3_WEBGL ext.DRAW_BUFFER4_WEBGL ext.DRAW_BUFFER5_WEBGL ext.DRAW_BUFFER6_WEBGL ext.DRAW_BUFFER7_WEBGL ext.DRAW_BUFFER8_WEBGL ext.DRAW_BUFFER9_WEBGL ext.DRAW_BUFFER10_WEBGL ext.DRAW_BUFFER11_WEBGL ext.DRAW_BUFFER12_WEBGL ext.DRAW_BUFFER13_WEBGL ext.DRAW_BUFFER14_WEBGL ext.DRAW_BUFFER
15_WEBGL A GLenum returning a draw buffer. ext.MAX_COLOR_ATTACHMENTS_WEBGL A GLint indicating the maximum number of framebuffer color attachment points. ext.MAX_DRAW_BUFFERS_WEBGL A GLint indicating the maximum number of draw buffers. Methods This extension exposes one new method. ext.drawBuffersWEBGL() Defines the draw buffers to which all fragment colors are written. (When using WebG...
WebGLRenderingContext.framebufferRenderbuffer() - Web APIs
ly: gl.COLOR_ATTACHMENT1 gl.COLOR_ATTACHMENT2 gl.COLOR_ATTACHMENT3 gl.COLOR_ATTACHMENT4 gl.COLOR_ATTACHMENT5 gl.COLOR_ATTACHMENT6 gl.COLOR_ATTACHMENT7 gl.COLOR_ATTACHMENT8 gl.COLOR_ATTACHMENT9 gl.COLOR_ATTACHMENT10 gl.COLOR_ATTACHMENT11 gl.COLOR_ATTACHMENT12 gl.COLOR_ATTACHMENT13 gl.COLOR_ATTACHMENT14 gl.COLOR_ATTACHMENT
15 When using the WEBGL_draw_buffers extension: ext.COLOR_ATTACHMENT0_WEBGL (same as gl.COLOR_ATTACHMENT0) ext.COLOR_ATTACHMENT1_WEBGL ext.COLOR_ATTACHMENT2_WEBGL ext.COLOR_ATTACHMENT3_WEBGL ext.COLOR_ATTACHMENT4_WEBGL ext.COLOR_ATTACHMENT5_WEBGL ext.COLOR_ATTACHMENT6_WEBGL ext.COLOR_ATTACHMENT7_WEBGL ext.COLOR_ATTACHMENT8_WEBGL ext.COLOR...
...Possible values: gl.RENDERBUFFER: Buffer data storage for single images in a renderable internal format. renderbuffer A WebGLRenderbuffer object to attach. Return value None. Exceptions A gl.INVALID_ENUM error is thrown if target is not gl.FRAMEBUFFER, gl.DRAW_FRAMEBUFFER, ...
WebGLRenderingContext.framebufferTexture2D() - Web APIs
buffer. ...
... textarget A GLenum specifying the texture target. Possible values: gl.TEXTURE_2D: A 2D image. gl.TEXTURE_CUBE_MAP_POSITIVE_X: Image for the positive X face of the cube. gl.TEXTURE_CUBE_MAP_NEGATIVE_X: Image for the negative X face of the cub...
WebGLRenderingContext.getFramebufferAttachmentParameter() - Web APIs
ly: gl.COLOR_ATTACHMENT1 gl.COLOR_ATTACHMENT2 gl.COLOR_ATTACHMENT3 gl.COLOR_ATTACHMENT4 gl.COLOR_ATTACHMENT5 gl.COLOR_ATTACHMENT6 gl.COLOR_ATTACHMENT7 gl.COLOR_ATTACHMENT8 gl.COLOR_ATTACHMENT9 gl.COLOR_ATTACHMENT10 gl.COLOR_ATTACHMENT11 gl.COLOR_ATTACHMENT12 gl.COLOR_ATTACHMENT13 gl.COLOR_ATTACHMENT14 gl.COLOR_ATTACHMENT
15 When using the WEBGL_draw_buffers extension: ext.COLOR_ATTACHMENT0_WEBGL (same as gl.COLOR_ATTACHMENT0) ext.COLOR_ATTACHMENT1_WEBGL ext.COLOR_ATTACHMENT2_WEBGL ext.COLOR_ATTACHMENT3_WEBGL ext.COLOR_ATTACHMENT4_WEBGL ext.COLOR_ATTACHMENT5_WEBGL ext.COLOR_ATTACHMENT6_WEBGL ext.COLOR_ATTACHMENT7_WEBGL ext.COLOR_ATTACHMENT8_WEBGL ext.COLOR...
...Possible values: gl.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: The type which contains the attached image. gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: The texture or renderbuffer of the attached image (WebGLRenderbuffer or WebGLTexture). gl.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: Mipmap level. Default value: 0. gl.FRAMEBUFFER_ATTACHME...
WebGLRenderingContext.getParameter() - Web APIs
ts) WebGL 2 You can query the following pname parameters when using a WebGL2RenderingContext. Constant Returned type Description gl.COPY_READ_BUFFER_BINDING WebGLBuffer or null See bindBuffer. gl.COPY_WRITE_BUFFER_BINDING WebGLBuffer or null See bindBuffer. gl.DRAW_BUFFERi GLenum gl.BACK, gl.NONE or gl.COLOR_ATTACHMENT{0-
15}. See also drawBuffers. gl.DRAW_FRAMEBUFFER_BINDING WebGLFramebuffer or null null corresponds to a binding to the default framebuffer. See also bindFramebuffer. gl.FRAGMENT_SHADER_DERIVATIVE_HINT GLenum gl.FASTEST, gl.NICEST or gl.DONT_CARE. See also hint. gl.MAX_3D_TEXTURE_SIZE GLint gl.MAX_ARRAY_TEXTURE_LAYERS GLint gl.MAX_C...
... ext.VERTEX_ARRAY_BINDING_OES WebGLVertexArrayObjectOES OES_vertex_array_object Bound vertex array object (VAO). ext.TIMESTAMP_EXT GLuint64EXT EXT_disjoint_timer_query The current time. ext.GPU_DISJOINT_EXT GLboolean EXT_disjoint_timer_query Returns whether or not the GPU p...
Matrix math for the web - Web APIs
e a simple variable name to each part of the matrix, a column and row number let c0r0 = matrix[ 0], c1r0 = matrix[ 1], c2r0 = matrix[ 2], c3r0 = matrix[ 3]; let c0r1 = matrix[ 4], c1r1 = matrix[ 5], c2r1 = matrix[ 6], c3r1 = matrix[ 7]; let c0r2 = matrix[ 8], c1r2 = matrix[ 9], c2r2 = matrix[10], c3r2 = matrix[11]; let c0r3 = matrix[12], c1r3 = matrix[13], c2r3 = matrix[14], c3r3 = matrix[
15]; // Now set some simple names for the point let x = point[0]; let y = point[1]; let z = point[2]; let w = point[3]; // Multiply the point against each part of the 1st column, then add together let resultX = (x * c0r0) + (y * c0r1) + (z * c0r2) + (w * c0r3); // Multiply the point against each part of the 2nd column, then add together let resultY = (x * c1r0) + (y * c1r1) + (z...
...to help out in this process: //matrixB o matrixA function multiplyMatrices(matrixA, matrixB) { // Slice the second matrix up into rows let row0 = [matrixB[ 0], matrixB[ 1], matrixB[ 2], matrixB[ 3]]; let row1 = [matrixB[ 4], matrixB[ 5], matrixB[ 6], matrixB[ 7]]; let row2 = [matrixB[ 8], matrixB[ 9], matrixB[10], matrixB[11]]; let row3 = [matrixB[12], matrixB[13], matrixB[14], matrixB[
15]]; // Multiply each row by matrixA let result0 = multiplyMatrixAndPoint(matrixA, row0); let result1 = multiplyMatrixAndPoint(matrixA, row1); let result2 = multiplyMatrixAndPoint(matrixA, row2); let result3 = multiplyMatrixAndPoint(matrixA, row3); // Turn the result rows back into a single matrix return [ result0[0], result0[1], result0[2], result0[3], result1[0], result1[1...
WebGL best practices - Web APIs
Hardware often has hyper-optimized or even specialized instructions for builtins, and the compiler can't reliably replace your c...
...Hardware often has hyper-optimized or even specialized instructions for builtins, and the compiler can't reliably replace your custom ...
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
escribed relative to the camera's reference space. The format for storing matrices is generally as a flat array in column-major order; that is, the values from the matrix are written starting with the top-left corner and moving down to the bottom, then moving over to the right a row and repeating until all values are in the array. ...
...r; that is, the values from the matrix are written starting with the top-left corner and moving down to the bottom, then moving over to the right a row and repeating until all values are in the array. Thus a matrix that looks like this: [a1a5a9a13a2a6a10a14a3a7a11a
15a4a8a12a16]\left [ \begin{matrix} a_{1} & a_{5} & a_{9} & a_{13} \\ a_{2} & a_{6} & a_{10} & a_{14} \\ a_{3} & a_{7} & a_{11} & a_{
15} \\ a_{4} & a_{8} & a_{12} & a_{16} \end{matrix} \right ] Is represented in array form like this: let matrixArray = [a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a
15, a16]; In this array, the leftmost column contains the entries a1, a2, a3, and a4. The topmost row contains the entries a1, a5, a9, and a13. Keep in mind that most WebGL and WebXR programming is...
Fundamentals of WebXR - Web APIs
ed in either degrees or radians. A human eye is typically able to take in a FOV of around 135?. Assuming a person has two healthy eyes, their total field of view is about 200? to 220? wide. Why is the FOV wider with two eyes, but not double the single-eye FOV? It's because the two eyes FOVs overlap a lot. That overlap is what gives us depth perception; within the overlap area -- which is around 1
15? across -- we have depth perception. Outside that overlap area, our vision is monocular and lacks good depth perception. The drawing shown here demonstrates the concept of FOV. The blue wedge represents the field of view of the leflt eye; the red wedge is the FOV of the right eye. The overlapping area, which is sort of a shade of purple, is the area in which the viewer has binocular vision and,...
...WebXR frame animation callback. Field of view and mixed reality devices To achieve a wide enough field of view that the user's eyes are tricked into believing that the virtual world completely surrounds them, the FOV needs to at least approach the width of the binocular vision area. Basic headsets typically start around 90? or so, while the best headsets generally have a field of view of around
150?. Because the FOV is a matter of the size of the lenses and how close they are to the user's eyes, there are limitations on how wide the FOV can get without installing lenses into the user's eyeballs. A wide FOV can substantially improve the user's sense of immersion. However, increasing the FOV can also increase the weight and cost of the headset. Degrees of freedom The term degrees of freed...
Movement, orientation, and motion: A WebXR example - Web APIs
ns in place, and we smooth out any transient deviations from the specification that occur during these still somewhat experimental days of the WebXR specification. Options This example has a number of options you can configure by adjusting the values of constants before you load it in the browser. The code looks like this: const xRotationDegreesPerSecond = 25; const yRotationDegreesPerSecond =
15; const zRotationDegreesPerSecond = 35; const enableRotation = true; const allowMouseRotation = true; const allowKeyboardMotion = true; const enableForcePolyfill = false; //const SESSION_TYPE = "immersive-vr"; const SESSION_TYPE = "inline"; const MOUSE_SPEED = 0.003; xRotationDegreesPerSecond The number of degrees of rotation to apply around the X axis per second. yRotationDegreesPerSecond ...
...etUniformLocation(shaderProgram, 'uProjectionMatrix'), modelViewMatrix: gl.getUniformLocation(shaderProgram, 'uModelViewMatrix'), normalMatrix: gl.getUniformLocation(shaderProgram, 'uNormalMatrix'), uSampler: gl.getUniformLocation(shaderProgram, 'uSampler') }, }; buffers = initBuffers(gl); texture = loadTexture(gl, 'https://cdn.glitch.com/a9381af1-18a9-495e-ad01-afddfd
15d000%2Ffirefox-logo-solid.png?v=
1575659351244'); xrSession.updateRenderState({ baseLayer: new XRWebGLLayer(xrSession, gl) }); if (SESSION_TYPE == "immersive-vr") { refSpaceType = "local"; } else { refSpaceType = "viewer"; } mat4.fromTranslation(cubeMatrix, viewerStartPosition); vec3.copy(cubeOrientation, viewerStartOrientation); xrSession.requestReferenceSpace(refS...
Web Authentication API - Web APIs
redParams: [{ type: "public-key", alg: -7 }], attestation: "direct", timeout: 60000, challenge: new Uint8Array([ // must be a cryptographically random number sent from a server 0x8C, 0x0A, 0x26, 0xFF, 0x22, 0x91, 0xC1, 0xE9, 0xB9, 0x4E, 0x2E, 0x17, 0x1A, 0x98, 0x6A, 0x73, 0x71, 0x9D, 0x43, 0x48, 0xD5, 0xA7, 0x6A, 0x
15, 0x7E, 0x38, 0x94, 0x52, 0x77, 0x97, 0x0F, 0xEF ]).buffer } }; // sample arguments for login var getCredentialDefaultArgs = { publicKey: { timeout: 60000, // allowCredentials: [newCredential] // see below challenge: new Uint8Array([ // must be a cryptographically random number sent from a server 0x79, 0x50, 0x68, 0x71, 0xDA, 0xEE, 0xEE, 0xB9, 0...
... 0x52, 0x77, 0x97, 0x0F, 0xEF ]).buffer } }; // sample arguments for login var getCredentialDefaultArgs = { publicKey: { timeout: 60000, // allowCredentials: [newCredential] // see below challenge: new Uint8Array([ // must be a cryptographically random number sent from a server 0x79, 0x50, 0x68, 0x71, 0xDA, 0xEE, 0xEE, 0xB9, 0x94, 0xC3, 0xC2, 0x
15, 0x67, 0x65, 0x26, 0x22, 0xE3, 0xF3, 0xAB, 0x3B, 0x78, 0x2E, 0xD5, 0x6F, 0x81, 0x26, 0xE2, 0xA6, 0x01, 0x7D, 0x74, 0x50 ]).buffer }, }; // register / create a new credential navigator.credentials.create(createCredentialDefaultArgs) .then((cred) => { console.log("NEW CREDENTIAL", cred); // normally the credential IDs available for an account would come...
Window.event - Web APIs
To change preferences in Firefox, visit about:config.IE Full support 4Opera Full support 7Safari Full support 1.1WebView Android ...
...To change preferences in Firefox, visit about:config.Opera Android Full support 10.1Safari iOS Full support 1Samsung Internet Android Full support ...
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
y); }; Note: These two replacements will also enable the HTML5 standard passage of arbitrary arguments to the callback functions of timers in IE. So they can be used as polyfills also. See the Callback arguments paragraph. New feature test: myArray = ['zero', 'one', 'two']; myArray.myMethod = function (sProperty) { alert(arguments.length > 0 ? this[sProperty] : this); }; setTimeout(alert,
1500, 'Hello world!'); // the standard use of setTimeout and setInterval is preserved, but... setTimeout.call(myArray, myArray.myMethod, 2.0*1000); // prints "zero,one,two" after 2 seconds setTimeout.call(myArray, myArray.myMethod, 2.5*1000, 2); // prints "two" after 2.5 seconds Note: JavaScript 1.8.5 introduced the Function.prototype.bind() method to set the value of this for all calls to a given...
... usage) from background tabs, timeouts are throttled to firing no more often than once per second (1,000 ms) in inactive tabs. Firefox implements this behavior since version 5 (see bug 633421, the 1000ms constant can be tweaked through the dom.min_background_timeout_value preference). Chrome implements this behavior since version 11 (crbug.com/66078). Firefox for Android uses a timeout value of
15 minutes for background tabs since bug 736602 in Firefox 14, and background tabs can also be unloaded entirely. Firefox 50 no longer throttles background tabs if a Web Audio API AudioContext is actively playing sound. Firefox 51 further amends this such that background tabs are no longer throttled if an AudioContext is present in the tab at all, even if no sound is being played. These resolve a ...
Synchronous and asynchronous requests - Web APIs
eter 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. If an error occurred, an error message is displayed. Line
15 actually initiates the request. The callback routine is called whenever the state of the request changes. Example: writing a function to read an external file In some cases, you must read many external files. This is a standard function which uses the XMLHttpRequest object asynchronously in order to switch the content of the read file to a specified listener. function xhrSuccess() { this.c...
...s callback property. Line 12 slices the arguments array given to the invocation of loadFile. Starting with the third argument, all remaining arguments are collected, assigned to the arguments property of the variable xhr, passed to the success callback function xhrSuccess., and ultimately supplied to the callback function (in this case, showMessage) which is invoked by function xhrSuccess. Line
15 specifies true for its third parameter to indicate that the request should be handled asynchronously. Line 16 actually initiates the request. Example: using a timeout You can use a timeout to prevent your code from hanging while waiting for a read to finish. This is done by setting the value of the timeout property on the XMLHttpRequest object, as shown in the code below: function loadFile(ur...
XMLHttpRequest - Web APIs
eb page to update just part of a page without disrupting what the user is doing. XMLHttpRequest is used heavily in AJAX programming. ...
...entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/XMLHttpRequestEventTarget" target="_top"><rect x="
151" y="1" width="250" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="276" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">XMLHttpRequestEventTarget</text></a><polyline points...
XRRigidTransform.matrix - Web APIs
by the position and orientation properties. Usage notes Matrix format All 4x4 transform matrices used in WebGL are stored in 16-element Float32Arrays. The values are stored into the array in column-major order; that is, each column is written into the array top-down before moving to the right one column and writing the next column into the array. ...
...ed in WebGL are stored in 16-element Float32Arrays. The values are stored into the array in column-major order; that is, each column is written into the array top-down before moving to the right one column and writing the next column into the array. Thus, for an array [a0, a1, a2, ..., a13, a14, a
15], the matrix looks like this: [a[0]a[4]a[8]a[12]a[1]a[5]a[9]a[13]a[2]a[6]a[10]a[14]a[3]a[7]a[11]a[
15]]\begin{bmatrix} a[0] & a[4] & a[8] & a[12]\\ a[1] & a[5] & a[9] & a[13]\\ a[2] & a[6] & a[10] & a[14]\\ a[3] & a[7] & a[11] & a[
15]\\ \end{bmatrix} The first time matrix is requested, it gets computed; after that, it's should be cached to avoid slowing down to compute it every time you need it. Creating the matrix In this section, intended for more advanced readers, we cover how the API calcu...
Generating HTML - Web APIs
A template matching the root node of the XML document is created and used to create the basic structure of the HTML page. Figure 4 : Creating the basic HTML document XSL Stylesheet (example2.xsl): ... ...
... xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:myNS="http://devedge.netscape.com/2002/de"> <xsl:output method="html" /> <xsl:template match="/"> <html> <head> <title> <xsl:value-of select="/myNS:Article/myNS:Title"/> </title> <style type="text/css"> .myBox {margin:10px
155px 0 50px; border: 1px dotted #639ACE; padding:0 5px 0 5px;} </style> </head> <body> <p class="myBox"> <span class="title"> <xsl:value-of select="/myNS:Article/myNS:Title"/> </span> <br /> Authors: <br /> <xsl:apply-templates select="/myNS:Article/myNS:Authors/myNS:Author"/> </p> ...
:nth-child() - CSS: Cascading Style Sheets
er> = [ '~' | | | '^' | '$' | '*' ]? '='<attr-modifier> = i | s Examples Example selectors tr:nth-child(odd) or tr:nth-child(2n+1) Represents the odd rows of an HTML table: 1, 3, 5, etc. tr:nth-child(even) or tr:nth-child(2n) Represents the even rows of an HTML table: 2, 4, 6, etc. :nth-child(7) Represents the seventh element. :nth-child(5n) Represents elements 5 [=5x1], 10 [=5x2],
15 [=5x3], etc. The first one to be returned as a result of the formula is 0 [=5x0], resulting in a no-match, since the elements are indexed from 1, whereas n starts from 0. This may seem weird at first, but it makes more sense when the B part of the formula is >0, like in the next example. :nth-child(n+7) Represents the seventh and all following elements: 7 [=0+7], 8 [=1+7], 9 [=2+7], etc. :nth-...
...0+3, -1+3, -2+3] p:nth-child(n) Represents every <p> element in a group of siblings. This selects the same elements as a simple p selector (although with a higher specificity). p:nth-child(1) or p:nth-child(0n+1) Represents every <p> that is the first element in a group of siblings. This is the same as the :first-child selector (and has the same specificity). p:nth-child(n+8):nth-child(-n+
15) Represents the eighth through the fifteenth <p> elements of a group of siblings. Detailed example HTML <h3><code>span:nth-child(2n+1)</code>, WITHOUT an <code><em></code> among the child elements.</h3> <p>Children 1, 3, 5, and 7 are selected.</p> <div class="first"> <span>Span 1!</span> <span>Span 2</span> <span>Span 3!</span> <span>Span 4</span> <span>Span 5!</span> <s...
:visited - CSS: Cascading Style Sheets
s Full support 1Notes Notes Chromium has never matched <link> elements with link pseudo-classes.Edge Full support 12Firefox Full support 70IE No support NoOpera Full support
15Notes Full support
15Notes Notes Chromium has never matched <link> elements with link pseudo-classes.Safari Full support 12WebView Android Full support 4.4Notes Full support 4.4Notes Notes Chromium has never matched <l...
...es.Restrict CSS properties allowed in a statement using :visited for privacyChrome Full support 6Edge Full support 12Firefox Full support 4IE Full support 8Opera Full support
15Safari Full support 5WebView Android Full support 37Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 14Safari iOS Full su...
@charset - CSS: Cascading Style Sheets
ven by the charset attribute of the Content-Type: HTTP header or the equivalent in the protocol used to serve the style sheet. The @charset CSS at-rule. Use the character encoding defined by the referring document: the charset attribute of the <link> element. This method is obsoleted in HTML5 and must not be used. Assume that the document is UTF-8 Syntax @charset "UTF-8"; @charset "iso-8859-
15"; where: charset Is a <string> denoting the character encoding to be used. It must be the name of a web-safe character encoding defined in the IANA-registry, and must be double-quoted, following exactly one space character (U+0020), and immediately terminated with a semicolon. If several names are associated with an encoding, only the one marked with preferred must be used. Formal syntax ...
...double-quoted, following exactly one space character (U+0020), and immediately terminated with a semicolon. If several names are associated with an encoding, only the one marked with preferred must be used. ...
@keyframes - CSS: Cascading Style Sheets
top: 0; } 50% { top: 30px; left: 20px; } 50% { top: 10px; } 100% { top: 0; } } In this example, at the 50% keyframe, the values used are top: 10px and left: 20px. Cascading keyframes are supported starting in Firefox 14. !important in a keyframe Declarations in a keyframe qualified with !important are ignored. ...
... Cascading keyframes are supported starting in Firefox 14. !important in a keyframe Declarations in a keyframe qualified with !important are ignored. ...
any-pointer - CSS: Cascading Style Sheets
ith at least one coarse pointer. The big checkbox takes precedence because it is declared after the small one. ...
...oarse pointer. The big checkbox takes precedence because it is declared after the small one. ...
Using CSS animations - CSS: Cascading Style Sheets
the CodePen button to see the animation in the CodePen environment. Adding another keyframe Let's add another keyframe to the previous example's animation. Let's say we want the header's font size to increase as it moves from right to left for a while, then to decrease back to its original size. ...
...ft for a while, then to decrease back to its original size. That's as simple as adding this keyframe: 75% { font-size: 300%; margin-left: 25%; width:
150%; } The full code now looks like this: p { animation-duration: 3s; animation-name: slidein; } @keyframes slidein { from { margin-left: 100%; width: 300%; } 75% { font-size: 300%; margin-left: 25%; width:
150%; } to { margin-left: 0%; width: 100%; } } <p>The Caterpillar and Alice looked at each other for some time in silence: at last the Caterpillar took the hookah out of its mouth, and addressed her in a languid, sleepy voice.</p> This tells the browser that 75% of the way through the animation sequence, the header should have its left margin at 25% and the width should be
150%. ...
Box-shadow generator - CSS: Cascading Style Sheets
ID OF TWELVE * ========================================================================== */ .span_12 { width: 100%; } .span_11 { width: 91.46%; } .span_10 { width: 83%; } .span_9 { width: 74.54%; } .span_8 { width: 66.08%; } .span_7 { width: 57.62%; } .span_6 { width: 49.16%; } .span_5 { width: 40.7%; } .span_4 { width: 32.24%; } .span_3 { width: 23.78%; } .span_2 { width:
15.32%; } .span_1 { width: 6.86%; } /* SECTIONS * ========================================================================== */ .section { clear: both; padding: 0px; margin: 0px; } /* GROUPING * ========================================================================== */ .group:before, .group:after { content: ""; display: table; } .group:after { clear:both; } .group { ...
...; display: none; } #layer_menu .delete:hover { background-image: url("https://mdn.mozillademos.org/files/5691/delete-yellow.png"); } #layer_menu .button:hover .delete { display: block; } /* * active element styling */ #layer_menu [data-active='subject'] { color: #FFF; background-color: #379B4A; border: 1px solid #379B4A; } /* Checkbox */ #layer_menu .ui-checkbox > label { height:
15px; line-height: 17px; font-weight: normal; width: 46px; margin: 0 5px 0 0; } #layer_menu .ui-checkbox > input:checked + label { display: none; } /******************************************************************************/ /******************************************************************************/ /* * Preview Area */ #preview_zone { width: 82%; float: left; } #preview { ...
Resizing background images with background-size - CSS: Cascading Style Sheets
ze by specifying the width and/or height of the image. By doing so, you can scale the image upward or downward as desired. Tiling a large image Let's consider a large image, a 2982x2808 Firefox logo image. We want (for some reason likely involving horrifyingly bad site design) to tile four copies of this image into a 300x300-pixel element. ...
...ge. We want (for some reason likely involving horrifyingly bad site design) to tile four copies of this image into a 300x300-pixel element. To do this, we can use a fixed background-size value of
150 pixels. HTML <div class="tiledBackground"> </div> CSS .tiledBackground { background-image: url(https://www.mozilla.org/media/img/logos/firefox/logo-quantum.9c5e96634f92.png); background-size:
150px; width: 300px; height: 300px; border: 2px solid; color: pink; } Result Stretching an image You can also specify both the horizontal and vertical sizes of the image, like this: background-size: 300px
150px; The result looks like this: Scaling an image up On the other end of the spectrum, you can scale an image up in the background. Here we scale a 32x32 pixel favicon to 300...
Relationship of grid layout to other layout methods - CSS: Cascading Style Sheets
he similarities should help you get to grips with Grid. One-dimensional vs. two-dimensional layout A simple example can demonstrate the difference between one- and two-dimensional layouts. In this first example, I am using flexbox to lay out a set of boxes. I have five child items in my container, and I have given the flex properties values so that they can grow and shrink from a flex-basis of
150 pixels. I have also set the flex-wrap property to wrap, so that if the space in the container becomes too narrow to maintain the flex basis, items will wrap onto a new row. * {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; ...
...These items are sharing the available space and not lining up underneath the items above. This is because when you wrap flex items, each new row (or column when working by column) becomes a new flex container. Space distribution happens across the row. A common question then is how to make those items line up. This...
Using z-index - CSS: Cascading Style Sheets
<b>DIV #3</b> <br />position: relative; <br />z-index: 2; </div> <div id="abs2"> <b>DIV #4</b> <br />position: absolute; <br />z-index: 1; </div> <div id="sta1"> <b>DIV #5</b> <br />no positioning <br />z-index: 8; </div> CSS div { padding: 10px; opacity: 0.7; text-align: center; } b { font-family: sans-serif; } #abs1 { z-index: 5; position: absolute; width:
150px; height: 350px; top: 10px; left: 10px; border: 1px dashed #900; background-color: #fdd; } #rel1 { z-index: 3; height: 100px; position: relative; top: 30px; border: 1px dashed #696; background-color: #cfc; margin: 0px 50px 0px 50px; } #rel2 { z-index: 2; height: 100px; position: relative; top:
15px; left: 20px; border: 1px dashed #696; background-color: #...
...olor: #fdd; } #rel1 { z-index: 3; height: 100px; position: relative; top: 30px; border: 1px dashed #696; background-color: #cfc; margin: 0px 50px 0px 50px; } #rel2 { z-index: 2; height: 100px; position: relative; top:
15px; left: 20px; border: 1px dashed #696; background-color: #cfc; margin: 0px 50px 0px 50px; } #abs2 { z-index: 1; position: absolute; width:
150px; height: 350px; top: 10px; right: 10px; border: 1px dashed #900; background-color: #fdd; } #sta1 { z-index: 8; height: 70px; border: 1px dashed #996; background-color: #ffc; margin: 0px 50px 0px 50px; } ...
Stacking with floated blocks - CSS: Cascading Style Sheets
position: absolute;</div> <div id="flo1"> <b>DIV #2</b><br />float: left;</div> <div id="flo2"> <b>DIV #3</b><br />float: right;</div> <br /> <div id="sta1"> <b>DIV #4</b><br />no positioning</div> <div id="abs2"> <b>DIV #5</b><br />position: absolute;</div> CSS div { padding: 10px; text-align: center; } b { font-family: sans-serif; } #abs1 { position: absolute; width:
150px; height: 200px; top: 10px; right: 140px; border: 1px dashed #900; background-color: #fdd; } #sta1 { height: 100px; border: 1px dashed #996; background-color: #ffc; margin: 0px 10px 0px 10px; text-align: left; } #flo1 { margin: 0px 10px 0px 20px; float: left; width:
150px; height: 200px; border: 1px dashed #090; background-color: #cfc; } #flo2 { margin: 0px ...
...ht: 140px; border: 1px dashed #900; background-color: #fdd; } #sta1 { height: 100px; border: 1px dashed #996; background-color: #ffc; margin: 0px 10px 0px 10px; text-align: left; } #flo1 { margin: 0px 10px 0px 20px; float: left; width:
150px; height: 200px; border: 1px dashed #090; background-color: #cfc; } #flo2 { margin: 0px 20px 0px 10px; float: right; width:
150px; height: 200px; border: 1px dashed #090; background-color: #cfc; } #abs2 { position: absolute; width:
150px; height: 100px; top: 130px; left: 100px; border: 1px dashed #990; background-color: #fdd; } ...
Using CSS transforms - CSS: Cascading Style Sheets
from right to left. Examples Here is an unaltered image of the MDN logo: Rotating Here is the MDN logo rotated 90 degrees from its bottom-left corner. <img style="transform: rotate(90deg); transform-origin: bottom left;" src="https://udn.realityripple.com/samples/6d/6633f3efc0.png"> Skewing and translating Here is the MDN logo, skewed by 10 degrees and translated by
150 pixels on the X-axis. <img style="transform: skewx(10deg) translatex(
150px); transform-origin: bottom left;" src="https://udn.realityripple.com/samples/6d/6633f3efc0.png"> 3D specific CSS properties Performing CSS transformations in 3D space is a bit more complex. You have to start by configuring the 3D space by giving it a perspective, then you have to configure how your ...
...lues */ .pers250 { perspective: 250px; } .pers350 { perspective: 350px; } .pers500 { perspective: 500px; } .pers650 { perspective: 650px; } /* Define the container div, the cube div, and a generic face */ .container { width: 200px; height: 200px; margin: 75px 0 0 75px; border: none; } .cube { width: 100%; height: 100%; backface-visibility: visible; perspective-origin:
150%
150%; transform-style: preserve-3d; } .face { display: block; position: absolute; width: 100px; height: 100px; border: none; line-height: 100px; font-family: sans-serif; font-size: 60px; color: white; text-align: center; } /* Define each face based on direction */ .front { background: rgba(0, 0, 0, 0.3); transform: translateZ(50px); } .back { background: rgba(0, 2...
Using CSS custom properties (variables) - CSS: Cascading Style Sheets
ty 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: inline-block; } .two { color: white; background-color: black; margin: 10px; width:
150px; height: 70px; display: inline-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">1:</div> <div class="two">2: Text <span class="five">5 - more text</span></div> <in...
... 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: inline-block; } .two { color: white; background-color: black; margin: 10px; width:
150px; height: 70px; display: inline-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> <div class="one"></div> <div class="two">Text <span class="five">- more text</span...
animation-direction - CSS: Cascading Style Sheets
in Firefox, visit about:config. ...
...Implemented with the vendor prefix: -moz-IE Full support 10Opera Full support 30 Full support 30 Full support
15Prefixed Prefixed Implemented with the vendor prefix: -webkit- No support 12.1 --
15 No support 12 --
15Prefixed Prefixed Implemented with the vendor prefix: -o-Safari Full support 9 Full support 9 Full support 4Prefixed Prefixed Implemented with the vendor prefix: -webkit-WebView Android Full support ...
background-color - CSS: Cascading Style Sheets
Though technically removing the transparent keyword, this doesn't change anything as it has been i...
... Though technically removing the transparent keyword, this doesn't change anything as it has been incorpora...
box-direction - CSS: Cascading Style Sheets
t 48Prefixed Disabled Prefixed Implemented with the vendor prefix: -webkit-Disabled From version 48: this feature is behind the layout.css.prefixes.webkit preference (needs to be set to true). ...
...d with the vendor prefix: -webkit-Disabled From version 48: this feature is behind the layout.css.prefixes.webkit preference (needs to be set to true). ...
clip-path - CSS: Cascading Style Sheets
</span> <div class="container viewbox"> <svg viewBox="0 0 192 192"> <g class="svg"> <rect x="24" y="24" width="144" height="144" /> <text x="96" y="91">I LOVE</text> <text x="96" y="109" class="em">clipping</text> </g> </svg> </div> </div> </div> <div class="note">clip-path: path('M
15,45 A30,30,0,0,1,75,45 A30,30,0,0,1,135,45 Q135,90,75,130 Q
15,90,
15,45 Z') </div> <div class="row"> <div class="cell"> <span>HTML</span> <div class="container"> <p class="svg2"> I LOVE<br><em>clipping</em> </p> </div> </div> <div class="cell"> <span>SVG</span> <div class="container viewbox"> <svg viewBox="0...
... content: 'viewbox'; position: absolute; left: 1.1rem; top: 1.1rem; font: italic .6em sans-serif; } .cell span { display: block; margin-bottom: .5em; } p { font-family: sans-serif; background: #000; color: pink; margin: 2em; padding: 3em 1em; border: 1em solid pink; width: 6em; } .none { clip-path: none; } .svg { clip-path: url(#myPath); } .svg2 { clip-path: path('M
15,45 A30,30,0,0,1,75,45 A30,30,0,0,1,135,45 Q135,90,75,130 Q
15,90,
15,45 Z');} .shape1 { clip-path: circle(25%); } .shape2 { clip-path: circle(25% at 25% 25%); } .shape3 { clip-path: fill-box circle(25% at 25% 25%); } .shape4 { clip-path: stroke-box circle(25% at 25% 25%); } .shape5 { clip-path: view-box circle(25% at 25% 25%); } .shape6 { clip-path: margin-box circle(25% at 25% 25%); } .sha...
font-stretch - CSS: Cascading Style Sheets
able for details. Keyword to numeric mapping The table below shows the mapping between keyword values and numeric percentages: Keyword Percentage ultra-condensed 50% extra-condensed 62.5% condensed 75% semi-condensed 87.5% normal 100% semi-expanded 112.5% expanded 125% extra-expanded
150% ultra-expanded 200% Description Some font families offer additional faces in which the characters are narrower than the normal face (condensed faces) or wider than the normal face (expanded faces). You can use font-stretch to select a condensed or expanded face from such fonts. If the font you are using does not offer condensed or expanded faces, this property has no effec...
... question. If the font does not provide a face that exactly matches the given value, then values less than 100% map to a narrower face, and values greater than or equal to 100% map to a wider face. The table below demonstrates the effect of supplying various different percentage values of font-stretch on two different fonts: 50% 62.5% 75% 87.5% 100% 112.5% 125%
150% 200% Helvetica Neue League Mono Variable Helvetica Neue, which is installed by default on macOS, has a single condensed face in addition to the normal face. All values of font-stretch less than 100% select the condensed face, while all other values select the normal face. League Mono Varia...
inset - CSS: Cascading Style Sheets
ne offsets, and instead defines physical offsets, regardless of the element's writing mode, directionality, and text orientation. It has the same multi-value syntax of the margin shorthand. It is a shorthand that corresponds to the top, right, bottom, and/or left properties. /* <length> values */ inset: 10px; /* value applied to all edges */ inset: 4px 8px; /* top/bottom left/right */ inset: 5px
15px 10px; /* top left/right bottom */ inset: 2.4em 3em 3em 3em; /* top right bottom left */ /* <percentage>s of the width (left/right) or height (top/bottom) of the containing block */ inset: 10% 5% 5% 5%; /* Keyword value */ inset: auto; /* Global values */ inset: inherit; inset: initial; inset: unset; Syntax Values The inset property takes the same values as the left property. Formal def...
... Editor's Draft Initial definition ...
line-height - CSS: Cascading Style Sheets
centage line-heights have poor inheritance behavior ... </div> <div class="box red"> <h1>Avoid unexpected results by using unitless line-height.</h1> length and percentage line-heights have poor inheritance behavior ... ...
... Recommendation No change. ...
max-height - CSS: Cascading Style Sheets
Full support 79Alternate Name Full support 79Alternate Name Alternate Name Uses the non-standard name: -webkit-fill-availableFirefox No support NoIE No support NoOpera Full support
15Alternate Name Full support
15Alternate Name Alternate Name Uses the non-standard name: -webkit-fill-availableSafari No support NoWebView Android Full support 4.4Alternate Name Full support 4.4Alternate Name Alternate ...
... -webkit-fill-availableChrome Android Full support 28Alternate Name Full support 28Alternate Name Alternate Name Uses the non-standard name: -webkit-fill-availableFirefox Android No support NoOpera Android Full support
15Alternate Name Full support
15Alternate Name Alternate Name Uses the non-standard name: -webkit-fill-availableSafari iOS No support NoSamsung Internet Android Full support 1.5Alternate Name Full support 1.5Alternate Na...
max-width - CSS: Cascading Style Sheets
to the width of the containing blockComputed valuethe percentage as specified or the absolute length or noneAnimation typea length, percentage or calc(); Formal syntax auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)where <length-percentage> = <length> | <percentage> Examples Setting max width in pixels In this example, the "child" will be either
150 pixels wide or the width of the "parent," whichever is smaller. HTML <div id="parent"> <div id="child"> Fusce pulvinar vestibulum eros, sed luctus ex lobortis quis. </div> </div> CSS #parent { background: lightblue; width: 300px; } #child { background: gold; width: 100%; max-width:
150px; } Result Specifications Specification Status Comment ...
... Full support 79Alternate Name Full support 79Alternate Name Alternate Name Uses the non-standard name: -webkit-fill-availableFirefox No support NoIE No support NoOpera Full support
15Alternate Name Full support
15Alternate Name Alternate Name Uses the non-standard name: -webkit-fill-availableSafari No support NoWebView Android Full support 4.4Alternate Name Full support 4.4Alternate Name Alternate ...
minmax() - CSS: Cascading Style Sheets
</div> <div> Item with flexible width but a minimum of 200 pixels. </div> <div> Inflexible item...
... </div> </div> Result Specifications Specification Status Comment CSS Grid LayoutThe definition of 'minmax()' in that specification. Candidate Recommendation Initial definition ...
outline-offset - CSS: Cascading Style Sheets
Recommendation Initial definition Browser compatibility The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://gith...
...o the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
repeating-conic-gradient() - CSS: Cascading Style Sheets
project, please clone https://github.com/mdn/interactive-examples and send us a pull request. 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. <position> Using the same length, order and keyterm values as the background-position property, the position defines center of the gradient. If omitted, the default value is center, meaing the gradient will be cent...
... <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. div { width: 200px; height: 200px; } <div></div> div { background: repeating-conic-gradient( from 3deg at 25% 25%, green, blue 2deg 5deg, green, yellow
15deg 18deg, green 20deg); } More repeating-conic-gradient examples Please see Using CSS gradients for more examples. Specifications Specification Status Comment CSS Images Module Level 4The definition of 'repeating-conic-gradient()' in that specification. Working Draft ...
shape-outside - CSS: Cascading Style Sheets
The float area determines the shape around which inline content (float elements) wrap. Values none The float area is unaffected. Inline content wraps around th...
...The float area determines the shape around which inline content (float elements) wrap. Values none The float area is unaffected. Inline content wraps around the element's...
translate - CSS: Cascading Style Sheets
but with relative lengths converted into absolute lengthsAnimation typea transformCreates stacking contextyes Formal syntax none | <length-percentage> [ <length-percentage> <length>? ...
... Editor's Draft Initial definition. Initial valuenoneApplies totransfor...
Block formatting context - Developer guides
auto"> <div class="float">I am a floated box!</div> <p>I am content inside the <code>overflow:auto</code> container.</p> </div> </section> <section> <div class="box" style="display:flow-root"> <div class="float">I am a floated box!</div> <p>I am content inside the <code>display:flow-root</code> container.</p> </div> </section> CSS section { height:
150px; } .box { background-color: rgb(224, 206, 247); border: 5px solid rebeccapurple; } .box[style] { background-color: aliceblue; border: 5px solid steelblue; } .float { float: left; width: 200px; height: 100px; background-color: rgba(255, 255, 255, .5); border:1px solid black; padding: 10px; } Exclude external floats In the following example, we are...
...in box of any floats in the same block formatting context as the element itself. ...
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
represent an RGB color in CSS. Hexadecimal string notation Hexadecimal string notation represents a color using hexadecimal digits to represent each of the color components (red, green, and blue). It may also include a fourth component: the alpha channel (or opacity). Each color component can be represented as a number between 0 and 255 (0x00 and 0xFF) or, optionally, as a number between 0 and
15 (0x0 and 0xF). All components must be specified using the same number of digits. If you use the single-digit notation, the final color is computed by using each component's digit twice; that is, "#D" becomes "#DD" when drawing. A color in hexadecimal string notation always begins with the character "#". After that come the hexadecimal digits of the color code. The string is case-insensitive. ...
...<thead> <tr> <th scope="col">Color in HSL notation</th> <th scope="col">Example</th> </tr> </thead> <tbody> <tr> <td><code>hsl(90deg, 100%, 50%)</code></td> <td style="background-color: hsl(90deg, 100%, 50%);"> </td> </tr> <tr> <td><code>hsl(90, 100%, 50%)</code></td> <td style="background-color: hsl(90, 100%, 50%);"> </td> </tr> <tr> <td><code>hsl(0.
15turn, 50%, 75%)</code></td> <td style="background-color: hsl(0.
15turn, 50%, 75%);"> </td> </tr> <tr> <td><code>hsl(0.
15turn, 90%, 75%)</code></td> <td style="background-color: hsl(0.
15turn, 90%, 75%);"> </td> </tr> <tr> <td><code>hsl(0.
15turn, 90%, 50%)</code></td> <td style="background-color: hsl(0.
15turn, 90%, 50%);"> </td> </tr> <tr> <td><code>hsl(27...
Date and time formats used in HTML - HTML: Hypertext Markup Language
the ASCII character set. Year numbers In order to simplify the basic format used for date strings in HTML, the specification requires that all years be given using the modern (or proleptic) Gregorian calendar. While user interfaces may allow entry of dates using other calendars, the underlying value always uses the Gregorian calendar. While the Gregorian calendar wasn't created until the year
1582 (replacing the similar Julian calendar), for HTML's purposes, the Gregorian calendar is extended back to the year 1 C.E. Make sure any older dates account for this. For the purposes of HTML dates, years are always at least four digits long; years prior to the year 1000 are padded with leading zeroes ("0"), so the year 72 is written as 0072. Years prior to the year 1 C.E. are not supported, so ...
...r, it must not be followed by a decimal point. If a fraction of a second is included, it may be from one to three digits long, indicating the number of milliseconds. It follows the decimal point placed after the seconds component of the time string. Examples of valid time strings Time string Time 00:00:30.75 12:00:30.75 AM (30.75 seconds after midnight) 12:
15 12:
15 PM 13:44:25 1:44:25 PM (25 seconds after 1:44 PM) Local date and time strings A valid datetime-local string consists of a date string and a time string concatenated together with either the letter "T" or a space character separating them. No information about the time zone is included in the string; the date and time is presumed to be in the user's local time zone. W...
<article>: The Article Contents element - HTML: Hypertext Markup Language
of <time> is no longer a part of the W3C HTML5 standard. Examples <article class="film_review"> <header> <h2>Jurassic Park</h2> </header> <section class="main_review"> <p>Dinos were great!</p> </section> <section class="user_reviews"> <article class="user_review"> <p>Way too scary for me.</p> <footer> <p> Posted on <time datetime="20
15-05-16 19:00">May 16</time> by Lisa. </p> </footer> </article> <article class="user_review"> <p>I agree, dinos are my favorite.</p> <footer> <p> Posted on <time datetime="20
15-05-17 19:00">May 17</time> by Tom. </p> </footer> </article> </section> <footer> <p> Posted on <time dat...
...:00">May 16</time> by Lisa. </p> </footer> </article> <article class="user_review"> <p>I agree, dinos are my favorite.</p> <footer> <p> Posted on <time datetime="20
15-05-17 19:00">May 17</time> by Tom. </p> </footer> </article> </section> <footer> <p> Posted on <time datetime="20
15-05-
15 19:00">May
15</time> by Staff. </p> </footer> </article> Specifications Specification Status Comment HTML Living StandardThe definition of '<article>' in that specification. Living Standard HTML 5.1The definition of '<article>' in that specification. Recommendation HTML5The definition of '<article>' in that specifica...
<details>: The Details disclosure element - HTML: Hypertext Markup Language
ome memory and ideally some kind of long-term storage. An input device as well as some form of output device is recommended.</p> </details> This results in: Customizing the appearance Now let's apply some CSS to customize the appearance of the disclosure box. CSS details { font: 16px "Open Sans", Calibri, sans-serif; width: 620px; } details > summary { padding: 2px 6px; width:
15em; background-color: #ddd; border: none; box-shadow: 3px 3px 4px black; cursor: pointer; } details > p { border-radius: 0 0 10px 10px; background-color: #ddd; padding: 2px 6px; margin: 0; box-shadow: 3px 3px 4px black; } This CSS creates a look similar to a tabbed interface, where clicking the tab opens it to reveal its contents. HTML <details> <summary>System Requirement...
...ist-style-image). For example, we can remove the disclosure widget icon by setting list-style: none. Chrome doesn't support this yet, however, so we also need to use its non-standard ::-webkit-details-marker pseudo-element to customize the appearance in that browser. ...
<input type="email"> - HTML: Hypertext Markup Language
ontrolling the input size You can control not only the physical length of the input box, but also the minimum and maximum lengths allowed for the input text itself. Physical input element size The physical size of the input box can be controlled using the size attribute. With it, you can specify the number of characters the input box can display at a time. In this example the email edit box is
15 characters wide: <input type="email" size="
15"> Element value length The size is separate from the length limitation on the entered e-mail address itself so that you can have fields fit in a small space while still allowing longer e-mail address strings to be entered. You can specify a minimum length, in characters, for the entered e-mail address using the minlength attribute; similarly, use...
...Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/ To learn more about how form validation works and how to take advantage of the :valid and :invalid CSS properties to style the input based on whether or not the current value is valid, see Form data validation. Note: There are known specification issues related to international domain names and the validation of e-mail addresses in HTML. See W3C bug
15489 for details. Pattern validation If you need the entered e-mail address to be restricted further than just "any string that looks like an e-mail address," you can use the pattern attribute to specify a regular expression the value must match for it to be valid. If the multiple attribute is specified, each individual item in the comma-delineated list of values must match the regular expressio...
<input type="time"> - HTML: Hypertext Markup Language
If the time includes seconds (see Using the step attribute), the format is always hh:mm:ss. You can learn more about the format of the time value used by this input typ...
...ace (the presented control will be different), and data handling. The second problem is the more serious; as mentioned previously, time inputs' values are always normalized to the format hh:mm or hh:mm:ss. With a text input, on the other hand, by default the browser has no idea of what format the time should be in, and there multiple ways in which people write times, such as: 3.00 pm 3:00pm
15:00 3 o'clock in the afternoon etc. One way around this is to put a pattern attribute on your time input. Even though the time input doesn't use it, the text input fallback will. For example, try viewing the following demo in a browser that doesn't support time inputs: <form> <div> <label for="appt-time">Choose an appointment time (opening hours 12:00 to 18:00): </label> <input id="...
<time> - HTML: Hypertext Markup Language
Living Standard No change from HTML 5.1 HTML 5.1The definition of '<time>' in that specification. Recommendation No change from HTML5 HTML5The definition of '<time>' in that specification.
... Living Standard No change from HTML 5.1 HTML 5.1The definition of '<time>' in that specification. Recommendation No change from HTML5 HTML5The definition of '<time>' in that specification. Recommenda...
<var>: The Variable element - HTML: Hypertext Markup Language
L Sample Output element If you encounter code that is mistakenly using <var> for style purposes rather than semantic purposes, you should either use a <span> with appropriate CSS or, an appropriate semantic element among the following: <em> <i> <q> Default style Most browsers apply font-style to "italic" when rendering <var>. This can be overridden in CSS, like this: var { font: bold
15px "Courier", "Courier New", monospace; } Examples Basic example Here's a simple example, using <var> to denote variable names in a mathematical equation. <p>A simple equation: <var>x</var> = <var>y</var> + 2 </p> The output: Overriding the default style Using CSS, you can override the default style for the <var> element. In this example, variable names are rendered using bold Courier ...
...<var> to denote variable names in a mathematical equation. <p>A simple equation: <var>x</var> = <var>y</var> + 2 </p> The output: Overriding the default style Using CSS, you can override the default style for the <var> element. In this example, variable names are rendered using bold Courier if it's available, otherwise it falls back to the default monospace font. CSS var { font: bold
15px "Courier", "Courier New", monospace; } HTML <p>The variables <var>minSpeed</var> and <var>maxSpeed</var> control the minimum and maximum speed of the apparatus in revolutions per minute (RPM).</p> This HTML uses <var> to enclose the names of two variables. Result Specifications Specification Status Comment HTML Living StandardThe definition of '<var>' i...
itemtype - HTML: Hypertext Markup Language
itemprop mpn 925872 itemprop brand [Thing] itemprop name ACME itemscope itemprop[itemtype] aggregateRating[AggregateRating] ...
... itemprop mpn 925872 itemprop brand [Thing] itemprop name ACME itemscope itemprop[itemtype] aggregateRating[AggregateRating] ...
MIME types (IANA media types) - HTTP
T / HTTP/1.1 Host: localhost:8000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive Upgrade-Insecure-Requests: 1 Content-Type: multipart/form-data; boundary=---------------------------87216560419114
15653955004498 Content-Length: 465 -----------------------------87216560419114
15653955004498 Content-Disposition: form-data; name="myTextField" Test -----------------------------87216560419114
15653955004498 Content-Disposition: form-data; name="myCheckBox" on -----------------------------87216560419114
15653955004498 Content-Disposition: form-data; name="myFile"; filename="test.txt" Content-Type: ...
... When the 206 Partial Content status code is sent, this MIME type indicates that the document is composed of several parts, one for each of the requested ranges. Like other multipart types, the Content-Type uses a boundary to separate the pieces. ...
Cross-Origin Resource Sharing (CORS) - HTTP
Macintosh; Intel Mac OS X 10.14; rv:71.0) Gecko/20100101 Firefox/71.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Connection: keep-alive Origin: http://foo.example Access-Control-Request-Method: POST Access-Control-Request-Headers: X-PINGOTHER, Content-Type HTTP/1.1 204 No Content Date: Mon, 01 Dec 2008 01:
15:39 GMT Server: Apache/2 Access-Control-Allow-Origin: https://foo.example Access-Control-Allow-Methods: POST, GET, OPTIONS Access-Control-Allow-Headers: X-PINGOTHER, Content-Type Access-Control-Max-Age: 86400 Vary: Accept-Encoding, Origin Keep-Alive: timeout=2, max=100 Connection: Keep-Alive Once the preflight request is complete, the real request is sent: POST /doc HTTP/1.1 Host: bar.other Use...
...The browser determines that it needs to send this based on the request parame...
Save-Data - HTTP
ed properly (for instance ensuring that the user is not served a lower-quality image from the cache when Save-Data header is no longer present [e.g. after having switched from cellular to Wi-Fi]). ...
...T /image.jpg HTTP/1.0 Host: example.com Save-Data: on Response: HTTP/1.0 200 OK Content-Length: 102832 Vary: Accept-Encoding, Save-Data Cache-Control: public, max-age=3
1536000 Content-Type: image/jpeg [...] Without Save-Data Request: GET /image.jpg HTTP/1.0 Host: example.com Response: HTTP/1.0 200 OK Content-Length: 481770 Vary: Accept-Encoding, Save-Data Cache-Control: public, max-age=3
1536000 Content-Type: image/jpeg [...] Specifications Specification Title draft-grigorik-http-client-hints-03, section 7: Save-Data HTTP Client Hints ...
Warning - HTTP
Arbitrary, non-specific warning 214 Transformation Applied Added by a proxy if it applies any transformation to the representation, such as changing the content-coding, media-type or the like. ...
...rmation Applied Added by a proxy if it applies any transformation to the representation, such as changing the content-coding, media-type or the like. ...
Network Error Logging - HTTP
r. This experimental header allows web sites and applications to opt-in to receive reports about failed (and, if desired, successful) network fetches from supporting browsers. Reports are sent to a reporting group defined within a Report-To header. Usage Web applications opt in to this behaviour with the NEL header, which is a JSON-encoded object: NEL: { "report_to": "nel", "max_age": 3
1556952 } An origin considered secure by the browser is required. The following object keys can be specified in the NEL header: report_to The reporting API group to send network error reports to (see below). max_age Specifies the lifetime of the policy, in seconds (in a similar way to e.g. HSTS policies are time-restricted). The referenced reporting group should have a lifetime at least...
...e_fraction Floating point value between 0 and 1 which specifies the proportion of failed network requests to report. Defaults to 1, so that all failed network requests will be reported if the key is not present in the JSON payload. The reporting group referenced above is defined in the usual manner within the Report-To header, for example: Report-To: { "group": "nel", "max_age": 3
1556952, "endpoints": [ { "url": "https://example.com/csp-reports" } ] } Error reports In these examples, the entire reporting API payload is shown. The top-level "body" key contains the network error report. HTTP 400 (Bad Request) response { "age": 20, "type": "network-error", "url": "https://example.com/previous-page", "body": { "elapsed_ti...
Closures - JavaScript
var s = sum(1); var s1 = s(2); var s2 = s1(3); var s3 = s2(4); console.log(s3) //log 20 In the example above, there's a series of nested functions, all of which have access to the outer functions' scope. In this context, we can say that closures have access to all outer function scopes. Creating closures in loops: A common mistake Prior to the introduction of the let keyword in ECMAScript 20
15, a common problem with closures occurred when you created them inside a loop. To demonstrate, consider the following example code. <p id="help">Helpful notes will appear here</p> <p>E-mail: <input type="text" id="email" name="email"></p> <p>Name: <input type="text" id="name" name="name"></p> <p>Age: <input type="text" id="age" name="age"></p> function showHelp(help) { document.getElementById...
...= 0; i < helpText.length; i++) { (function() { var item = helpText[i]; document.getElementById(item.id).onfocus = function() { showHelp(item.help); } })(); // Immediate event listener attachment with the current value of item (preserved until iteration). ...
Control flow and error handling - JavaScript
tement The most basic statement is a block statement, which is used to group statements. The block is delimited by a pair of curly brackets: { statement_1; statement_2; ? statement_n; } Example Block statements are commonly used with control flow statements (if, for, while). while (x < 10) { x++; } Here, { x++; } is the block statement. Important: JavaScript before ECMAScript20
15 (6th edition) does not have block scope! In older JavaScript, variables introduced within a block are scoped to the containing function or script, and the effects of setting them persist beyond the block itself. In other words, block statements do not define a scope. "Standalone" blocks in JavaScript can produce completely different results from what they would produce in C or Java. For example...
...scope. "Standalone" blocks in JavaScript can produce completely different results from what they would produce in C or Java. For example: var x = 1; { var x = 2; } console.log(x); // outputs 2 This outputs 2 because the var x statement within the block is in the same scope as the var x statement before the block. (In C or Java, the equivalent code would have outputted 1.) Since ECMAScript20
15, the let and const variable declarations are block-scoped. See the let and const reference pages for more information. Conditional statements A conditional statement is a set of commands that executes if a specified condition is true. JavaScript supports two conditional statements: if...else and switch. if...else statement Use the if statement to execute a statement if a logical condition is...
Details of the object model - JavaScript
eate class instances. JavaScript follows a similar model, but does not have a class definition separate from the constructor. Instead, you define a constructor function to create objects with a particular initial set of properties and values. Any JavaScript function can be used as a constructor. You use the new operator with a constructor function to create a new object. Note that ECMAScript 20
15 introduces a class declaration: JavaScript classes, introduced in ECMAScript 20
15, are primarily syntactical sugar over JavaScript's existing prototype-based inheritance. The class syntax does not introduce a new object-oriented inheritance model to JavaScript. Subclasses and inheritance In a class-based language, you create a hierarchy of classes through the class definitions. In a class d...
...object == constructor.prototype) return true; if (typeof object == 'xml') { return constructor.prototype == XML.prototype; } object = object.__proto__; } return false; } Note: The implementation above checks the type of the object against "xml" in order to work around a quirk of how XML objects are represented in recent versions of JavaScript. See bug 634
150 if you want the nitty-gritty details. Using the instanceOf function defined above, these expressions are true: instanceOf(chris, Engineer) instanceOf(chris, WorkerBee) instanceOf(chris, Employee) instanceOf(chris, Object) But the following expression is false: instanceOf(chris, SalesPerson) Global information in constructors When you create constructors, you need to be careful if you set...
Expressions and operators - JavaScript
o second bit, and so on. The operator is applied to each pair of bits, and the result is constructed bitwise. For example, the binary representation of nine is 1001, and the binary representation of fifteen is 1111. So, when the bitwise operators are applied to these values, the results are as follows: Bitwise operator examples Expression Result Binary Description
15 & 9 9 1111 & 1001 = 1001
15 | 9
15 1111 | 1001 = 1111
15 ^ 9 6 1111 ^ 1001 = 0110 ~
15 -16 ~ 0000 0000 ... 0000 1111 = 1111 1111 ... 1111 0000 ~9 -10 ~ 0000 0000 ... 0000 1001 = 1111 1111 ... 1111 0110 Note that all 32 bits are inverted using the Bitwise NOT operator, and that values with the most significant (left-most) bit ...
...ion uses the = operator to assign the value seven to the variable x. The expression itself evaluates to seven. The code 3 + 4 is an example of the second expression type. This expression uses the + operator to add three and four together without assigning the result, seven, to a variable. JavaScript has the following expression categories: Arithmetic: evaluates to a number, for example 3.14
159. (Generally uses arithmetic operators.) String: evaluates to a character string, for example, "Fred" or "234". (Generally uses string operators.) Logical: evaluates to true or false. (Often involves logical operators.) Primary expressions: Basic keywords and general expressions in JavaScript. Left-hand-side expressions: Left values are the destination of an assignment. Primary expressions ...
Numbers and dates - JavaScript
ax uses a leading zero. If the digits after the 0 are outside the range 0 through 7, the number will be interpreted as a decimal number. var n = 0755; // 493 var m = 0644; // 420 Strict mode in ECMAScript 5 forbids octal syntax. Octal syntax isn't part of ECMAScript 5, but it's supported in all browsers by prefixing the octal number with a zero: 0644 === 420 and "\045" === "%". In ECMAScript 20
15, octal numbers are supported if they are prefixed with 0o, e.g.: var a = 0o10; // ES20
15: 8 Hexadecimal numbers Hexadecimal number syntax uses a leading zero followed by a lowercase or uppercase Latin letter "X" (0x or 0X). If the digits after 0x are outside the range (0123456789ABCDEF), the following SyntaxError is thrown: "Identifier starts immediately after numeric literal". 0xFFFFFFFFF...
... Number.NEGATIVE_INFINITY; var notANum = Number.NaN; You always refer to a property of the predefined Number object as shown above, and not as a property of a Number object you create yourself. The following table summarizes the Number object's properties. ...
The legacy Iterator protocol - JavaScript
Non-standard. The legacy iterator protocol was a SpiderMonkey-specific feature, which is removed in Firefox 58+. For future-facing usages, consider using for..of loops and the iterator protocol. The deprecated Firefox-only iterator protocol Firefox, prior to version 26 implemented another iterator protocol that is similar to the standard ES20
15 Iterator protocol. ...
... prior to version 26 implemented another iterator protocol that is similar to the standard ES20
15 Iterator protocol. An object is an legacy iterator when it implements a next() method with the following semantics, and throws StopIteration at the end of iteration. Property Value next A zero arguments function that returns an value. Difference between legacy and ES20
15 iterator protocols The value was returned directly as a return value of calls to next, instead of the value property of a placeholder object Iteration termination was expressed by throwing a StopIteration object. Simple example with the old protocol function makeIterator(array){ var nextIndex = 0; return { next: function(){ if(nextIndex < array.length){ ...
RangeError: radix must be an integer - JavaScript
ses alphabetical characters as digits; therefore, the radix can't be larger than 36, since the Latin alphabet (used by English and many other languages) only has 26 characters. ...
...The most common radixes: 2 for binary numbers, 8 for octal numbers, 10 for decimal numbers, 16 for hexadecimal numbers. ...
Warning: String.x is deprecated; use String.prototype.x instead - JavaScript
recated; use String.prototype.trimRight instead Error type Warning. JavaScript execution won't be halted. What went wrong? The non-standard generic String methods are deprecated and have been removed in Firefox 68 and later. String generics provide String instance methods on the String object allowing String methods to be applied to any object. ...
... type Warning. JavaScript execution won't be halted. What went wrong? The non-standard generic String methods are deprecated and have been removed in Firefox 68 and later. String generics provide String instance methods on the String object allowing String methods to be applied to any object. ...
TypeError: "x" is read-only - JavaScript
t was assigned to is a read-only property. (Technically, it is a non-writable data property.) This error happens only in strict mode code. In non-strict code, the assignment is silently ignored. Examples Invalid cases Read-only properties are not super common, but they can be created using Object.defineProperty() or Object.freeze(). 'use strict'; var obj = Object.freeze({name: 'Elsa', score:
157}); obj.score = 0; // TypeError 'use strict'; Object.defineProperty(this, 'LUNG_COUNT', {value: 2, writable: false}); LUNG_COUNT = 3; // TypeError 'use strict'; var frozenArray = Object.freeze([0, 1, 2]); frozenArray[0]++; // TypeError There are also a few read-only properties built into JavaScript. Maybe you tried to redefine a mathematical constant. 'use strict'; Math.PI = 4; // TypeEr...
...o redefine a mathematical constant. 'use strict'; Math.PI = 4; // TypeError Sorry, you can't do that. ...
Method definitions - JavaScript
It is a shorthand for a function assigned to the method's name. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax const obj = { get property() {}, set property(value) {}, property( parameters... ) {}, *generator( parameters... ) {}, async property( parameters... ) {}, async* generator( parameters... ) {}, // with computed keys get [property]() {}, set [property](value) {}, [property]( parameters... ) {}, *[generator]( parameters... ...
...( parameters... ) {}, async* generator( parameters... ) {}, // with computed keys get [property]() {}, set [property](value) {}, [property]( parameters... ) {}, *[generator]( parameters... ) {}, async [property]( parameters... ) {}, async* [generator]( parameters... ) {}, }; Description The shorthand syntax is similar to the getter and setter syntax introduced in ECMAScript 20
15. Given the following code: const obj = { foo: function() { // ... }, bar: function() { // ... } } You are now able to shorten this to: const obj = { foo() { // ... }, bar() { // ... } } Generator methods Generator methods can be defined using the shorthand syntax as well. When doing so: The asterisk (*) in the shorthand syntax must be before the genera...
Array.prototype[@@unscopables] - JavaScript
The @@unscopable symbol property contains property names that were not included in the ECMAScript standard prior to the ES20
15 version. These properties are excluded from with statement bindings. Description The default array properties that are excluded from with bindings are: copyWithin() entries() fill() find() findIndex() includes() keys() values() See Symbol.unscopables for how to set unscopables for your own objects. ...
...s() keys() values() See Symbol.unscopables for how to set unscopables for your own objects. Property attributes of Array.prototype[@@unscopables] Writable no Enumerable no Configurable yes Examples Use in with environments The following code works fine in ES5 and below. However, in ECMAScript 20
15 and later, the Array.prototype.keys() method was introduced. That means that inside with environments, "keys" would now be the method and not the variable. This is where now the built-in @@unscopables Array.prototype[@@unscopables] symbol property comes into play and prevents that some of the Array methods are being scoped into the with statement. var keys = []; with (Array.prototype) { keys.
Array.prototype.reduce() - JavaScript
0 0 [0, 1, 2, 3, 4] 10 second call 10 1 1 [0, 1, 2, 3, 4] 11 third call 11 2 2 [0, 1, 2, 3, 4] 13 fourth call 13 3 3 [0, 1, 2, 3, 4] 16 fifth call 16 4 4 [0, 1, 2, 3, 4] 20 The value returned by reduce() in this case would be 20. ...
...ond call 10 1 1 [0, 1, 2, 3, 4] 11 third call 11 2 2 [0, 1, 2, 3, 4] 13 fourth call 13 3 3 [0, 1, 2, 3, 4] 16 fifth call 16 4 4 [0, 1, 2, 3, 4] 20 The value returned by reduce() in this case would be 20. ...
Array.prototype.reduceRight() - JavaScript
his time would be, of course, 20. Polyfill reduceRight was added to the ECMA-262 standard in the 5th edition; as such it may not be present in all implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of reduceRight in implementations which do not natively support it. ...
...educeRight was added to the ECMA-262 standard in the 5th edition; as such it may not be present in all implementations of the standard. You can work around this by inserting the following code at the beginning of your scripts, allowing use of reduceRight in implementations which do not natively support it. ...
Array.from() - JavaScript
More clearly, Array.from(obj, mapFn, thisArg) has the same result as Array.from(obj).map(mapFn, thisArg), except that it does not create an intermediate array. This is especially important for certain array subclasses, like typed arrays, since the intermediate array would necessarily have values truncated to fit into the appropriate type. The length property of the from() method is 1. In ES20
15, the class syntax allows sub-classing of both built-in and user-defined classes. As a result, static methods such as Array.from() are "inherited" by subclasses of Array, and create new instances of the subclass, not Array. Polyfill Array.from() was added to the ECMA-262 standard in the 6th Edition (ES20
15). As such, it may not be present in other implementations of the standard. You can work ...
...ed as a sequence range('A'.charCodeAt(0), 'Z'.charCodeAt(0), 1).map(x => String.fromCharCode(x)); // ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] Specifications Specification Initial publication ECMAScript (ECMA-262)The definition of 'Array.from' in that specification. ECMAScript 20
15 ...
Array.prototype.some() - JavaScript
this by inserting the following code at the beginning of your scripts, allowing use of some() in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming Object and TypeError have their original values and that fun.call evaluates to the original value of Function.prototype.call(). ...
...inning of your scripts, allowing use of some() in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming Object and TypeError have their original values and that fun.call evaluates to the original value of Function.prototype.call(). ...
Date.prototype[@@toPrimitive] - JavaScript
Primitive]() first tries to call valueOf, and if that fails, it calls toString. JavaScript calls the [@@toPrimitive]() method to convert an object to a primitive value. You rarely need to invoke the [@@toPrimitive]() method yourself; JavaScript automatically invokes it when encountering an object where a primitive value is expected. ...
...matically invokes it when encountering an object where a primitive value is expected. Examples Returning date primitives const testDate = new Date(
1590757517834); // "Date Fri May 29 2020 14:05:17 GMT+0100 (British Summer Time)" testDate[Symbol.toPrimitive]('string'); // Returns "Date Fri May 29 2020 14:05:17 GMT+0100 (British Summer Time)" testDate[Symbol.toPrimitive]('number'); // Returns "
1590757517834" testDate[Symbol.toPrimitive]('default'); // Returns "Date Fri May 29 2020 14:05:17 GMT+0100 (British Summer Time)" Specifications Specification ECMAScript (ECMA-262)The definition of 'Date.prototype.@@toPrimitive' in that specification. ...
Math.PI - JavaScript
If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
Object.create() - JavaScript
e); // mixin another Object.assign(MyClass.prototype, OtherSuperClass.prototype); // re-assign constructor MyClass.prototype.constructor = MyClass; MyClass.prototype.myMethod = function() { // do something }; Object.assign() copies properties from the OtherSuperClass prototype to the MyClass prototype, making them available to all instances of MyClass. Object.assign() was introduced with ES20
15 and can be polyfilled. If support for older browsers is necessary, jQuery.extend() or _.assign() can be used. Using propertiesObject argument with Object.create() var o; // create an object with null as prototype o = Object.create(null); o = {}; // is equivalent to: o = Object.create(Object.prototype); // Example where we create an object with a couple of // sample properties. (Note that t...
...ys to *property descriptors*.) o = Object.create(Object.prototype, { // foo is a regular 'value property' foo: { writable: true, configurable: true, value: 'hello' }, // bar is a getter-and-setter (accessor) property bar: { configurable: false, get: function() { return 10; }, set: function(value) { console.log('Setting `o.bar` to', value); } /* with ES20
15 Accessors our code can look like this get() { return 10; }, set(value) { console.log('Setting `o.bar` to', value); } */ } }); function Constructor() {} o = new Constructor(); // is equivalent to: o = Object.create(Constructor.prototype); // Of course, if there is actual initialization code // in the Constructor function, // the Object.create() cannot reflect it // Create a...
Object.freeze() - JavaScript
modified, unless they are also frozen. As an object, an array can be frozen; after doing so, its elements cannot be altered and no elements can be added to or removed from the array. freeze() returns the same object that was passed into the function. It does not create a frozen copy. In ES5, if the argument to this method is not an object (a primitive), then it will cause a TypeError. ...
...s passed into the function. It does not create a frozen copy. In ES5, if the argument to this method is not an object (a primitive), then it will cause a TypeError. In ES20
15, a non-object argument will be treated as if it were a frozen ordinary object, and be simply returned. ...
Object.getOwnPropertyDescriptor() - JavaScript
} o = {}; Object.defineProperty(o, 'qux', { value: 8675309, writable: false, enumerable: false }); d = Object.getOwnPropertyDescriptor(o, 'qux'); // d is { // value: 8675309, // writable: false, // enumerable: false, // configurable: false // } Non-object coercion In ES5, if the first argument to this method is not an object (a primitive), then it will cause a TypeError. ...
... configurable: false // } Non-object coercion In ES5, if the first argument to this method is not an object (a primitive), then it will cause a TypeError. In ES20
15, a non-object first argument will be coerced to an object at first. Object.getOwnPropertyDescriptor('foo', 0); // TypeError: "foo" is not an object // ES5 code Object.getOwnPropertyDescriptor('foo', 0); // Object returned by ES20
15 code: { // configurable: false, // enumerable: true, // value: "f", // writable: false // } Specifications Specification ECMAScript (ECMA-262)The definition of 'Object.getOwnPropertyDescriptor' in that specification. ...
Object.isSealed() - JavaScript
...
...rability matters for accessor properties) Non-object coercion In ES5, if the argument to this method is not an object (a primitive), then it will cause a TypeError. In ES20
15, a non-object argument will be treated as if it was a sealed ordinary object, simply return true. Object.isSealed(1); // TypeError: 1 is not an object (ES5 code) Object.isSealed(1); // true (ES20
15 code) Specifications Specification ECMAScript (ECMA-262)The definition of 'Object.isSealed' in that specification. ...
Object.prototype.__proto__ - JavaScript
that has access to any object whose [[Prototype]] has been altered. If you care about performance you should avoid setting the [[Prototype]] of an object. Instead, create a new object with the desired [[Prototype]] using Object.create(). Warning: While Object.prototype.__proto__ is supported today in most browsers, its existence and exact behavior has only been standardized in the ECMAScript 20
15 specification as a legacy feature to ensure compatibility for web browsers. For better support, use Object.getPrototypeOf() instead. The __proto__ property of Object.prototype is an accessor property (a getter function and a setter function) that exposes the internal [[Prototype]] (either an object or null) of the object through which it is accessed. The use of __proto__ is controversial and ...
...roperty (a getter function and a setter function) that exposes the internal [[Prototype]] (either an object or null) of the object through which it is accessed. The use of __proto__ is controversial and discouraged. It was never originally included in the ECMAScript language spec, but modern browsers implemented it anyway. Only recently was the __proto__ property standardized by the ECMAScript 20
15 specification for compatibility with web browsers, so it will be supported into the future. It is deprecated in favor of Object.getPrototypeOf/Reflect.getPrototypeOf and Object.setPrototypeOf/Reflect.setPrototypeOf (though still, setting the [[Prototype]] of an object is a slow operation that should be avoided if performance is a concern). The __proto__ property can also be used in an object lit...
String.prototype.startsWith() - JavaScript
position Optional The position in this string at which to begin searching for searchString. Defaults to 0. Return value true if the given characters are found at the beginning of the string; otherwise, false. Description This method lets you determine whether or not a string begins with another string. This method is case-sensitive. Polyfill This method has been added to the ECMAScript 20
15 specification and may not be available in all JavaScript implementations yet. However, you can polyfill String.prototype.startsWith() with the following snippet: if (!String.prototype.startsWith) { Object.defineProperty(String.prototype, 'startsWith', { value: function(search, rawPos) { var pos = rawPos > 0 ? rawPos|0 : 0; return this.substring(pos, pos + sear...
...ons yet. However, you can polyfill String.prototype.startsWith() with the following snippet: if (!String.prototype.startsWith) { Object.defineProperty(String.prototype, 'startsWith', { value: function(search, rawPos) { var pos = rawPos > 0 ? rawPos|0 : 0; return this.substring(pos, pos + search.length) === search; } }); } A more robust (fully ES20
15 specification compliant), but less performant and compact, Polyfill is available on GitHub by Mathias Bynens. Examples Using startsWith() //startswith let str = 'To be, or not to be, that is the question.' console.log(str.startsWith('To be')) // true console.log(str.startsWith('not to be')) // false console.log(str.startsWith('not to be', 10)) // true Specifications ...
isNaN() - JavaScript
Syntax isNaN(value) Parameters value The value to be tested. Return value true if the given value is NaN; otherwise, false. ...
..." returned value may be unexpected; the empty string, for example, is surely "not a number." The confusion stems from the fact that the term, "not a number", has a specific meaning for numbers represented as IEEE-754 floating-point values. The function should be interpreted as answering the question, "is this value, when coerced to a numeric value, an IEEE-754 'Not A Number' value?" ECMAScript 20
15 contains the Number.isNaN() function. Number.isNaN(x) is a reliable way to test whether x is NaN or not. Even with Number.isNaN, however, the meaning of NaN remains the precise numeric meaning and not simply, "not a number". Alternatively, in the absence of Number.isNaN, the expression (x != x) is a more reliable way to test whether variable x is NaN or not, as the result is not subject to the fa...
parseInt() - JavaScript
// -421 console.log(filterInt('+421')) // 421 console.log(filterInt('Infinity')) // Infinity console.log(filterInt('421e+0')) // NaN console.log(filterInt('421hop')) // NaN console.log(filterInt('hop1.61803398875')) // NaN console.log(filterInt('1.61803398875')) // NaN Examples Using parseInt The following examples all return
15: parseInt('0xF', 16) parseInt('F', 16) parseInt('17', 8) parseInt(021, 8) parseInt('0
15', 10) // but `parseInt(0
15, 10)` will return 13 parseInt(
15.99, 10) parseInt('
15,123', 10) parseInt('FXX123', 16) parseInt('1111', 2) parseInt('
15 * 3', 10) parseInt('
15e2', 10) parseInt('
15px', 10) parseInt('12', 13) The following examples all return NaN: parseInt('Hello', 8) // Not a number at all pa...
...t(0
15, 10)` will return 13 parseInt(
15.99, 10) parseInt('
15,123', 10) parseInt('FXX123', 16) parseInt('1111', 2) parseInt('
15 * 3', 10) parseInt('
15e2', 10) parseInt('
15px', 10) parseInt('12', 13) The following examples all return NaN: parseInt('Hello', 8) // Not a number at all parseInt('546', 2) // Digits other than 0 or 1 are invalid for binary radix The following examples all return -
15: parseInt('-F', 16) parseInt('-0F', 16) parseInt('-0XF', 16) parseInt(-
15.1, 10) parseInt('-17', 8) parseInt('-
15', 10) parseInt('-1111', 2) parseInt('-
15e1', 10) parseInt('-12', 13) The following examples all return 4. parseInt(4.7, 10) parseInt(4.7 * 1e22, 10) // Very large number becomes 4 parseInt(0.00000000000434, 10) // Very small number becomes 4 If the number is greater than...
Iteration protocols - JavaScript
These protocols can be implemented by any object by simply following some conventions. There are two protocols: The iterable protocol and the iterator protocol. The iterable protocol The iterable protocol allows JavaScript objects to define or customize their iteration behavior, such as what values are looped over in a for...of construct. Some built-in types are built-in iterables with a default iteration behavior, such as Array or Map, while other types (such as Object) are not. ...
... let gen = makeSimpleGenerator(['yo', 'ya']); console.log(gen.next().value); // 'yo' console.log(gen.next().value); // 'ya' console.log(gen.next().done); // true function* idMaker() { let index = 0; while (true) { yield index++; } } let gen = idMaker() console.log(gen.next().value); // '0' console.log(gen.next().value); // '1' console.log(gen.next().value); // '2' // ... With ES20
15 class class SimpleClass { constructor(data) { this.data = data; } [Symbol.iterator]() { // Use a new index for each iterator. This makes multiple // iterations over the iterable safe for non-trivial cases, // such as use of break or nested looping over the same iterable. let index = 0; return { next: () => { if (index < this.data.length) { ...
typeof - JavaScript
ble return values of typeof. For more information about types and primitives, see also the JavaScript data structure page. Type Result Undefined "undefined" Null "object" (see below) Boolean "boolean" Number "number" BigInt (new in ECMAScript 2020) "bigint" String "string" Symbol (new in ECMAScript 20
15) "symbol" Function object (implements [[Call]] in ECMA-262 terms) "function" Any other object "object" Note: ECMAScript 2019 and older permitted implementations to have typeof return any implementation-defined string value for non-callable non-standard exotic objects. The only known browser to have actually taken advantage of this is old Internet Explorer (see ...
...g the data type of expressions. let iData = 99; typeof iData + ' Wisen'; // 'number Wisen' typeof (iData + ' Wisen'); // 'string' Regular expressions Callable regular expressions were a non-standard addition in some browsers. typeof /s/ === 'function'; // Chrome 1-12 Non-conform to ECMAScript 5.1 typeof /s/ === 'object'; // Firefox 5+ Conform to ECMAScript 5.1 Errors Before ECMAScript 20
15, typeof was always guaranteed to return a string for any operand it was supplied with. Even with undeclared identifiers, typeof will return 'undefined'. Using typeof could never generate an error. But with the addition of block-scoped let and Statements/const using typeof on let and const variables (or using typeof on a class) in a block before they are declared will throw a ReferenceError. Bloc...
throw - JavaScript
zip code. If the zip code uses an invalid format, the throw statement throws an exception by cre...
...zip code. If the zip code uses an invalid format, the throw statement throws an exception by creating a...
The "codecs" parameter in common media types - Web media technologies
s considered legal for the specified color configuration (that is, the studio swing representation). The default is 0 (use the studio swing representation). All fields from M (monochrome flag) onward are optional; you may stop including fields at any point (but can't arbitrarily leave out fields). The default values are included in the table above. Some example AV1 codec strings: av01.2.
15M.10.0.100.09.16.09.0 AV1 Professional Profile, level 5.3, Main tier, 10 bits per color component, 4:2:2 chroma subsampling using ITU-R BT.2100 color primaries, transfer characteristics, and YCbCr color matrix. The studio swing representation is indicated. av01.0.
15M.10 AV1 Main Profile, level 5.3, Main tier, 10 bits per color component. The remaining properties are taken from the defaults: 4:2...
..., Scalable 8 CELP (Code-Excited Linear Prediction) Main, Scalable, Speech, HQ, LD 9 HVXC (Harmonic Vector Excitation Coding) Main, Scalable, Speech, LD 10 - 11 Reserved 12 TTSI (Text to Speech Interface) Main, Scalable, Speech, Synthetic, LD 13 Main Synthetic Main, Synthetic 14 Wavetable Synthesis
15 General MIDI 16 Algorithmic Synthesis and Audio Effects 17 ER AAC LC (Error Resilient AAC Low-Complexity) HQ, Mobile Internetworking 18 Reserved 19 ER AAC LTP (Error Resilient AAC Long Term Prediction) HQ 20 ER AAC Scalable (Error Resilient AAC Scalable) Mobile Internetworking 21 ER TwinVQ (Error Resil...
d - SVG: Scalable Vector Graphics
g viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- Cubic Bezier curve with absolute coordinates --> <path fill="none" stroke="red" d="M 10,90 C 30,90 25,10 50,10 S 70,90 90,90" /> <!-- Cubic Bezier curve with relative coordinates --> <path fill="none" stroke="red" d="M 110,90 c 20,0
15,-80 40,-80 s 20,80 40,80" /> <!-- Highlight the curve vertex and control points --> <g id="ControlPoints"> <!-- First cubic command control points --> <line x1="10" y1="90" x2="30" y2="90" stroke="lightgrey" /> <circle cx="30" cy="90" r="1.5"/> <line x1="50" y1="10" x2="25" y2="10" stroke="lightgrey" /> <circle cx="25" cy="10" r="1.5"/> <!-- Second smoot...
...same coordinates. Examples html,body,svg { height:100% } <svg viewBox="0 -1 30 11" xmlns="http://www.w3.org/2000/svg"> <!-- An open shape with the last point of the path different to the first one --> <path stroke="red" d="M 5,1 l -4,8 8,0" /> <!-- An open shape with the last point of the path matching the first one --> <path stroke="red" d="M
15,1 l -4,8 8,0 -4,-8" /> <!-- A closed shape with the last point of the path different to the first one --> <path stroke="red" d="M 25,1 l -4,8 8,0 z" /> </svg> Specification Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'd' in that specification. Candidate Recommendation Defin...
requiredFeatures - SVG: Scalable Vector Graphics
/SVG11/feature#SVG-animation" /> <text x="20" y="127">http://www.w3.org/TR/SVG11/feature#SVG-animation</text> <!-- Testing : http://www.w3.org/TR/SVG11/feature#SVGDOM-animation --> <rect class="ko" x="10" y="135" height="25" width="430" /> <rect class="ok" x="10" y="135" height="25" width="430" requiredFeatures="http://www.w3.org/TR/SVG11/feature#SVGDOM-animation" /> <text x="20" y="
152">http://www.w3.org/TR/SVG11/feature#SVGDOM-animation</text> <!-- Testing : http://www.w3.org/TR/SVG11/feature#SVG-dynamic --> <rect class="ko" x="10" y="160" height="25" width="430" /> <rect class="ok" x="10" y="160" height="25" width="430" requiredFeatures="http://www.w3.org/TR/SVG11/feature#SVG-dynamic" /> <text x="20" y="177">http://www.w3.org/TR/SVG11/feature#SVG-dynamic</text> ...
....w3.org/TR/SVG11/feature#BasicFont" /> <text x="20" y="1127">http://www.w3.org/TR/SVG11/feature#BasicFont</text> <!-- Testing : http://www.w3.org/TR/SVG11/feature#Extensibility --> <rect class="ko" x="10" y="1135" height="25" width="430" /> <rect class="ok" x="10" y="1135" height="25" width="430" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" /> <text x="20" y="1
152">http://www.w3.org/TR/SVG11/feature#Extensibility</text> </svg> CSS .ko { fill: #900; } .ok { fill: #060; } rect { stroke: #000; stroke-width: 2px; } text{ fill: #FFF; font: 12px sans-serif; } Result See also requiredFeatures.svg Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'req...
<marker> - SVG: Scalable Vector Graphics
Value type: <length> ; Default value: 3; Animatable: yes markerUnits This attribute defines the coordinate system for the attributes markerWidth, markerHeight an...
... Value type: <length> ; Default value: 3; Animatable: yes markerUnits This attribute defines the coordinate system for the attributes markerWidth, markerHeight and the contents of the <marker>. ...
Fills and Strokes - SVG: Scalable Vector Graphics
te. miter extends the line slightly beyond its normal width to create a square corner where only one angle is used. round creates a rounded line segment. bevel creates a new angle to aid in the transition between the two segments. Finally, you can also use dashed line types on a stroke by specifying the stroke-dasharray attribute. <?xml version="1.0" standalone="no"?> <svg width="200" height="
150" xmlns="http://www.w3.org/2000/svg" version="1.1"> <path d="M 10 75 Q 50 10 100 75 T 190 75" stroke="black" stroke-linecap="round" stroke-dasharray="5,10,5" fill="none"/> <path d="M 10 75 L 190 75" stroke="red" stroke-linecap="round" stroke-width="1" stroke-dasharray="5,5" fill="none"/> </svg> The stroke-dasharray attribute takes a series of comma-separated numbers as its argument. ...
...just properties on large groups of elements. ...
Getting started - SVG: Scalable Vector Graphics
<< PreviousNext >> A simple example Let us dive straight in with a simple example. Take a look at the following code. <svg version="1.1" baseProfile="full" width="300" height="200" xmlns="http://www.w3.org/2000/svg"> <rect width="100%" height="100%" fill="red" /> <circle cx="
150" cy="100" r="80" fill="green" /> <text x="
150" y="125" font-size="60" text-anchor="middle" fill="white">SVG</text> </svg> Copy the code and paste it in a file demo1.svg. Then open the file in Firefox. It will render as shown in the following screenshot. (Firefox users: click here) The rendering process involves the following: We start with the <svg> root element: a doctype declaration as known from (X)HTML should be left off because DTD based SVG validation le...
...tributes are deprecated in SVG 2. as an XML dialect, SVG must always bind the namespaces correctly (in the xmlns attribute). See the Namespaces Crash Course page for more info. The background is set to red by drawing a rectangle <rect> that covers the complete image area. A green circle <circle> with a radius of 80px is drawn atop the center of the red rectangle (center of circle offset
150px to the right, and 100px downward from the top left corner). The text "SVG" is drawn. The interior of each letter is filled in with white. The text is positioned by setting an anchor where we want the midpoint to be: in this case, the midpoint should correspond to the center of the green circle. Fine adjustments can be made to the font size and vertical position to ensure the final result is a...
Using custom elements - Web Components
nt inherits from, if any (only relevant to customized built-in elements; see the definition below). So for example, we can define a custom word-count element like this: customElements.define('word-count', WordCount, { extends: 'p' }); The element is called word-count, its class object is WordCount, and it extends the <p> element. A custom element's class object is written using standard ES 20
15 class syntax. For example, WordCount is structured like so: class WordCount extends HTMLParagraphElement { constructor() { // Always call super first in constructor super(); // Element functionality written in here ... } } This is just a simple example, but there is more you can do here. It is possible to define specific lifecycle callbacks inside the class, which run at s...
...lf = super(...args); // self functionality written in here // self.addEventListener(...) // return the right context return self; } } If you don't need to perform any operation in the constructor, you can simply omit it so that its native behavior (see following) will be preserved. constructor(...args) { return super(...args); } Transpilers vs. classes Please note that ES20
15 classes cannot reliably be transpiled in Babel 6 or TypeScript targeting legacy browsers. You can either use Babel 7 or the babel-plugin-transform-builtin-classes for Babel 6, and target ES20
15 in TypeScript instead of legacy. Libraries There are several libraries that are built on Web Components with the aim of increasing the level of abstraction when creating custom elements. Some of these li...
Private Properties - Archive of obsolete content
re is no way to access variables in one closure from within another closure, there is no way for objects of the same class to access each other's private properties. Using WeakMaps The techniques above are either not restrictive enough (prefixes) or too restrictive (closures), however the recent introduction of WeakMaps provides a solution. WeakMaps were introduced to JavaScript in ECMAScript 20
15 and have recently been implemented in SpiderMonkey. Before explaining how WeakMaps work, the following looks at how ordinary objects can be used as hash maps, by creating a simple image cache: let images = {}; function getImage(name) { let image = images[name]; if (!image) { image = loadImage(name); images[name] = image; } return image; } Now suppose there's a ...
panel - Archive of obsolete content
enu: true to the panel's constructor. The HTML <select> element doesn't work. The HTML <datalist> element doesn't give you autocomplete suggestions (bug 918600). You can't embed Flash (bug 952578). You can't provide tooltips using title attributes (bug 918600). Security warning pages (the "This Connection is Untrusted" warning) does not work, so panels which trigger it will be broken (bug 103
1554). Mouse button shortcuts, such as using the middle button to open a link in a new page, don't work. Scrolling using keyboard doesn't work properly (bug 1001914) Globals Constructors Panel(options) Creates a panel. Parameters options : object Optional options: Name Type width number The width of the panel in pixels. Optional. heigh...
simple-prefs - Archive of obsolete content
d>.<preference-name> For example, if you had a simple-pref named "somePreference" then you could get its value like so: require('sdk/preferences/service').get(['extensions', require('sdk/self').id, 'somePreference'].join('.')) This would give you the same value as: require('sdk/simple-prefs').prefs['somePreference'] The ability to change the default preferences branch is new in Add-on SDK 1.
15. The branch of the preferences tree under which simple-prefs are stored is, by default, the add-on ID. Sometimes you might need to use a different branch, especially if you are porting an add-on to the SDK. You can change the sub-branch of extensions using the preferences-branch key in your add-on's package.json file. Globals Functions on(prefName, listener) Registers an event listener that...
tabs - Archive of obsolete content
tle The title of the tab (usually the title of the page currently loaded in the tab) This property can be set to change the tab title. url The URL of the page currently loaded in the tab. This property can be set to load a different URL in the tab. favicon The URL of the favicon for the page currently loaded in the tab. This property is read-only. This property is deprecated. From version 1.
15, use the favicon module's getFavicon() function instead. contentType This is currently an experimental API, so we might change it in future releases. Returns the MIME type that the document currently loaded in the tab is being rendered as. This may come from HTTP headers or other sources of MIME information, and might be affected by automatic type conversions performed by either the browser o...
lang/type - Archive of obsolete content
Parameters value : mixed The variable to check. Returns boolean : Boolean indicating if value is a String. isNumber(value) Returns true if value is a Number, false otherwise. Uses typeof operator to check type, and will only properly detect number primitives: for example, a number created with new Number() will always return false. let { isNumber } = require('sdk/lang/type'); isNumber(3.14
15); // true isNumber(100); // true isNumber('100'); // false Parameters value : mixed The variable to check. Returns boolean : Boolean indicating if value is a Number. isRegExp(value) Returns true if value is a RegExp, false otherwise. let { isRegExp } = require('sdk/lang/type'); isRegExp(/[^\.]*\.js$/); // true isRegExp(new RegExp('substring')); // true isRegExp(1000); // false Parameter...
Developing for Firefox Mobile - Archive of obsolete content
atform Tools Next, attach the device to the development machine via USB. Now open up a command shell. Android Platform Tools will have installed adb in the "platform-tools" directory under the directory in which you installed the Android SDK. Make sure the "platform-tools" directory is in your path. Then type: adb devices You should see some output like: List of devices attached 51800F220F0
1564 device (The long hex string will be different.) If you do, then adb has found your device and you can get started. Running Add-ons on Android You can develop your add-on as normal, as long as you restrict yourself to the supported modules. When you need to run the add-on, first ensure that Firefox is not running on the device. Then execute jpm-mobile run with some extra options: jpm-mobi...
Dialogs and Prompts - Archive of obsolete content
g> You need to implement onAccept and onCancel functions in your script. If they return anything but false, the dialog will be closed. Buttons in <dialog> Predefined There are six button types you can use in the buttons attribute of dialog. They are: accept -- OK button. cancel -- Cancel button. disclosure -- More Info button. help -- Help button (Doesn't work in Thunderbird 1.0 bug 2569
15) extra1, extra2 -- Two buttons without any predefined labels or meaning. extra2 is positioned at the left side of the dialog (by default). For each of these buttons you can set their label, accesskey and oncommand handler by adding buttonlabel<buttonname>, buttonaccesskey<buttonname> and ondialog<buttonname> attributes to the dialog element. For example, to add an Apply button to your dialog, ...
Forms related code snippets - Archive of obsolete content
<td id="zdp-day-1-9" class="zdp-active-cell">9</td> </tr> <tr> <td id="zdp-day-1-10" class="zdp-active-cell">10</td> <td id="zdp-day-1-11" class="zdp-active-cell">11</td> <td id="zdp-day-1-12" class="zdp-active-cell">12</td> <td id="zdp-day-1-13" class="zdp-active-cell">13</td> <td id="zdp-day-1-14" class="zdp-active-cell">14</td> <td id="zdp-day-1-
15" class="zdp-active-cell">
15</td> <td id="zdp-day-1-16" class="zdp-active-cell">16</td> </tr> <tr> <td id="zdp-day-1-17" class="zdp-active-cell">17</td> <td id="zdp-day-1-18" class="zdp-active-cell">18</td> <td id="zdp-day-1-19" class="zdp-active-cell">19</td> <td id="zdp-day-1-20" class="zdp-active-cell">20</td> <td id="zdp-day-1-21" class="zdp-active-c...
Miscellaneous - Archive of obsolete content
ndow.getSelection().toString(); or: content.getSelection(); // |window| object is implied; i.e., window.content.getSelection() or: getBrowserSelection(); // |window| object is implied; i.e., window.getBrowserSelection() This final option massages the selection to remove leading and trailing whitespace. It also collapses consecutive whitespaces into a single whitespace, and returns at most
150 characters, making it ideal to display text in context menus. It is defined at //github.com/RealityRipple/Pale-Moon/blob/master/palemoon/base/content/browser.js#L5113. Note that it returns the empty string (""), not false, when nothing is selected. getBrowserSelection() is not implemented on some platforms, such as Thunderbird and Songbird. See also http://mxr.mozilla.org/seamonkey/source/brows...
How to convert an overlay extension to restartless - Archive of obsolete content
basic typed arrays for any data you did not earlier write into them in the same program session. Also, they're not particularly helpful if your data isn't all of the exact same type (which it probably isn't). The solution to read arbitrary binary data, of various sizes, in an endian-safe way, is to use DataView. The other typed array stuff is viable in Firefox 4+. This wasn't added until Firefox
15. If you were using nsIBinaryInputStream or anything similar, figuring out DataView will be fairly straightforward. Just read the docs and it's pretty simple. It will probably be notably faster than whatever you were doing before. Reportedly XMLHttpRequest doesn't work reliably when used in JSM under versions of Firefox less than 16, however as previously mentioned, this guide should be taken as ...
JavaScript Object Management - Archive of obsolete content
indow.setTimeout( function() { window.alert(that._stringBundle.getString("xulschoolhello.greeting.label")); }, 0); } The setTimeout function executes the function in the first parameter, after a delay in miliseconds specified by the second parameter. In this case we set the delay to 0, which means the function should be executed as soon as possible. Firefox has a minimum delay of 10-
15ms (taken from this blog post), so it won't really run instantly. It is more than enough to let the window finish its load. Use window.setTimeout and window.setInterval to control timed code execution. In case you're using JavaScript Code Modules or XPCOM objects, where a window object is not readily available, use an nsITimer instead. This post suggests a way to achieve a true zero ms time...
XML data - Archive of obsolete content
width: 8em; font-weight: bold; font-size: 200%; content: "Oceans"; margin: -.75em 0px .25em -.25em; padding: .1em .25em; background-color: #cdf; } planet { display: block; margin: 2em 1em; border: 4px solid #cdf; padding: 0px 1em; background-color: white; } ocean { display: block; margin-bottom: 1em; } name { display: block; font-weight: bold; font-size:
150%; } area { display: block; } area:before { content: "Area: "; } area:after { content: " million km\B2"; } depth { display: block; } depth:before { content: "Mean depth: "; } depth:after { content: " m"; } Open the document in your browser: Oceans Arctic Area: 13,000 million km2 Mean depth: 1,200 m Atlantic Area: 87...
CSS3 - Archive of obsolete content
there is no CSS3 standard per se . Each module being standardized independently, the standard CSS consists of CSS2.1 amended and extended by the completed modules, not necessary all with the same level number. At each point of time, a snapshot of the CSS standard can be defined, listing CSS2.1 and the mature modules. The W3 consortium periodically publishes such snapshots, like in 2007, 2010, 20
15, 2017, and 2018. Though today no module with a level greater than 3 is standardized, this will change in the future. Some modules, like Selectors 4 or CSS Borders and Backgrounds Level 4 already have an Editor's Draft, though they haven't yet reached the First Published Working Draft status. CSS modules status Completed modules A few CSS modules already became a standard as a W3C Recommendati...
Creating a dynamic status bar extension - Archive of obsolete content
samplePanel by calling the document.getElementById() DOM function. We need this so that we can make changes to the status bar panel itself. We then fetch the result returned by the web server into the variable output from the XMLHttpRequest.responseText property. The text we receive back from the server looks something like this: "GOOG",414.20,"5/1/2006","1:36pm",-3.74,417.85,419.44,412.19,47602
15 We then parse the text. We use the split() string function to split the comma-separated value string into its individual parts, with each field in a separate element in the array fieldArray. At index 0 is the ticker symbol itself, which we don't need since we know which stock we're looking at. The status bar panel's label is set to indicate the current value of the stock, which is stored in fiel...
Index of archived content - Archive of obsolete content
.htaccess ( hypertext access ) 20
15 MDN Fellowship Program API Navigator Navigator.mozNotification Add-ons Add-on SDK Builder Guides Content Scripts Communicating With Other Scripts Communicating using "port" Communicating using "postMessage" Cross-domain Content Scripts Interacting with page scripts Loading Content Scripts Reddit Example port self ...
List of Mozilla-Based Applications - Archive of obsolete content
a_Formats/Markup_Languages/XML/Applications/XUL/Applications/ http://blog.mozbox.org/post/2007/06/14/XUL-activity-in-France http://www.mozilla.org/projects/security/pki/nss/overview.html http://en.wikipedia.org/wiki/SpiderMonkey_(JavaScript_engine) http://www.mozilla.org/rhino/users.html http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/4eb9162c9c3054b0/1d41
15b40373ca3b?lnk=raot http://www.ohloh.net/tags/xulrunner ...
Autodial for Windows NT - Archive of obsolete content
bypass the feature altogether by setting the pref network.autodial-helper.enabled to false. Since the feature was implemented close to the release of Netscape 7, the pref was added so that we could include the feature in the 7.0 release with the feature turned off and enable it in specific cases. The feature was turned on in Mozilla 1.1 to get more exposure. Mozilla 1.1 also includes a fix to bug
157733, which allows our interaction with the autodial service to work a little more reliably. I don't see a need to expose this pref in the UI, but perhaps it should be there. Or pehaps we should assume Mozilla users can configure the autodial service and disable the helper by default, but Netscape users need a little more help, and enable it for them. Original Document Information Author(s): ...
Bookmark Keywords - Archive of obsolete content
g fedex UPS Tracking ups Of course, these are just a beginning. Any Web site that you commonly search is a candidate for its own keymark. Acknowledgements Thanks to Asa Dotzler and his article How Cool are Custom Keywords?, which provided the inspiration to write this article. Original Document Information Author(s): Eric A. Meyer, Netscape Communications Last Updated Date: Published
15 Mar 2002 Copyright Information: Copyright (C) 2001-2003 Netscape. All rights reserved. Note: This reprinted article was originally part of the DevEdge site. ...
In-Depth - Archive of obsolete content
sing the -moz-image-region style. A bunch of 20px X 20px icons in a grid format Above is the source image of some icons setup to use the -moz-image-region style. Each row is a different icon in one of its 4 different states (Normal, Hover, Mouse Down, and Disabled). To cut the pieces out you need to define rectangles in the css file like this: #button-send { -moz-image-region: rect(294px 23px 3
15px 0px); } #button-send:hover { -moz-image-region: rect(294px 46px 3
15px 23px); } #button-send:hover:active { -moz-image-region: rect(294px 69px 3
15px 46px); } #button-send[disabled="true"] { -moz-image-region: rect(294px 92px 3
15px 69px) !important; } The properties for Rect are listed in a clockwise fashion - Top, Right, Bottom, Left. Adding an image to the right of a toolbar This tut...
Exception logging in JavaScript - Archive of obsolete content
rst, you can set the boolean preference dom.report_all_js_exceptions. If this preference is true, all exceptions from inner frames will be logged. Alternatively, you can set the environment variable MOZ_REPORT_ALL_JS_EXCEPTIONS. It doesn't matter what value you set this to (it can even be 0). If the variable exists, all exceptions from inner frames will be reported. See also Error Console bug 4
15498 ...
Java in Firefox Extensions - Archive of obsolete content
but everything is working in Firefox 3.0.10.). I've also experienced crashes in referencing the 'java' global within the XUL Editor of the Extension Developer's Extension which seems to point to some stability problem. See also LiveConnect Overview https://jdk6.dev.java.net/plugin2/#LIVECONNECT https://jdk6.dev.java.net/plugin2/liveconnect/ http://forums.sun.com/thread.jspa?th...66932&start=
15 ...
slideBar - Archive of obsolete content
widthwidth of the content area and the selected slide sizeint persistdefault slide behavior when being selectedbool autoReloadautomatically reload content on selectbool onClickcallback when the icon is clickedfunction onSelectcallback when the feature is selectedfunction onReadycallback when featured is loadedfunction An example: jetpack.slideBar.append({ url: "http://mozilla.com", width:
150, onClick: function(slide){ slide.icon.src = "chrome://branding/content/icon48.png"; }}); ...
Microsummary XML grammar reference - Archive of obsolete content
cified by the browser.microsummary.updateInterval preference. If that preference has not been set, Firefox applies its default update interval, which is 30 minutes. Notes: regardless of the absolute or conditional update interval specified by this element, Firefox will never update microsummaries more frequently than once per minute; because Firefox checks for expired microsummaries every
15 seconds, it is possible for a microsummary update to begin up to
15 seconds later than its interval indicates; Firefox respects the browser cache when updating microsummaries, so it will not reload a page to update its microsummary if the cache contains a fresh copy of the page. The <condition> element The optional <condition> element specifies an XPath boolean expression along with a conditio...
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
than that height. The CSS standard defines that if no overflow behavior is set in this case, the div contents will overflow. However, Internet Explorer does not comply with this and will expand the div beyond its set height in order to hold the contents. Below is an example that shows this difference: <div style="height: _fckstyle="height: 100px; border: 1px solid black;"> <div style="height:
150px; border: 1px solid red; margin: 10px;"> a </div> </div> As you can see in Figure 4, Mozilla acts like the W3C standard specifies. The W3C standard says that, in this case, the inner div overflows to the bottom since the inner content is taller than its parent. If you prefer the Internet Explorer behavior, simply do not specify a height on the outer element. Figure 4. DIV overflow h...
Mozilla Application Framework in Detail - Archive of obsolete content
SQL support that provides the ability to set up data sources, query a database, and retrieve results as JavaScript objects or RDF data sources; and an API for Directory Services via the Lightweight Directory Access Protocol (LDAP). Original Document Information Author(s): Myk Melez, Ian Oeschger Original Document: http://www.mozilla.org/why/framework-details.html Last Updated Date: February
15, 2006 Copyright Information: Copyright (C) Myk Melez, Ian Oeschger ...
Priority Content - Archive of obsolete content
and Ben Karel Shorter Works Mostly completed: Bypassing Security Restrictions and Signing Code Original: Bypassing Security Restrictions and Signing Code Wiki Location: Bypassing Security Restrictions and Signing Code Migrators: Joel Stanley I added the related links from the original article. However, the link about SignTool seems to be broken. Anyone knows what to do? Mathieu Deaudelin
15:22, 17 May 2005 (PDT) Mostly completed: Netscape Gecko Compatibility Handbook Original: Netscape Gecko Compatibility Handbook Wiki Location: Gecko Compatibility Handbook Migrators: Mathieu Deaudelin There are inline examples on this page that cannot be migrated. They are dependant on some code that cannot be integrated in the page. Dependant on: Updating DHTML Web Pages for Next Generation ...
New Skin Notes - Archive of obsolete content
t ever notice that they were different, honestly. I'll take a look. --dria Ok, the difference on the cavendish theme is negligible (to the point where I never noticed). Direct external links have icons to differentiate them from internal links, so I think we'll just leave the internal/external links colours the same. ==dria You've got to be kidding me, the colors are clearly different (rgb(0,51,
153) vs rgb(51,102,187)). --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_guidelines page) (dria: fix catlinks style) The arrows that appear if you select "Enhanced recent changes" in your preferences have an ugly border around them. --Nickolay 04:43, 25 Aug 2005 (P...
Standalone XPCOM - Archive of obsolete content
les in standalone XPCOM. TODO for v 1.0 Optional exclusion of specific features into standalone XPCOM like registry, xpconnect. Tweeking these options will cause reduction in memory requirements and size. Get xpcom/tests directory upto date and documented. Update this document for Mac. API freeze and documentation Original Document Information Author: Suresh Duddi Last Updated Date:
15 May 2000 Copyright Information: Portions of this content are (C) 1998-2007 by individual mozilla.org contributors; content available under a Creative Commons license | Details. ...
Cmdline tests - Archive of obsolete content
cmdline 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.abc" % r.avm, expectedout=[ 'gros...
Anonymous Content - Archive of obsolete content
That binding can define inherited insertion points for its base binding as well. This pattern continues all the way up the binding chain. XPath selectors specified using the includes attribute determine which insertion point a given child should be placed under. [Actually, only tag names may be specified; see the includes attribute description in <children> element reference, bug 174614 and bug 5
1527.] If no attribute is specified, an insertion point is considered generic and will match on all content. The insertion point used for a given piece of content is the first encountered with a selector whose node set matches the element when doing a depth-first walk of the content template. Note that children elements are never cloned when content is generated from a template. Handling DOM chan...
Building Trees - Archive of obsolete content
we can't really see the photos, since the tree's rows are too small! It's not normal to put photos in a tree like this--instead, the images would be used for icons. On the other hand, you could use a stylesheet to change the default height of the tree rows. You cannot make each row a different height, but you can change the height of all rows with some CSS: treechildren::-moz-tree-row { height:
150px; } Since no elements are constructed by the tree builder, you cannot use the style or class attributes to change the style of a cell (This is the case with all trees). You must use syntax like that above to change the appearance. In the example above, it changes the height of a row to
150 pixels. You may want to change the syntax to refer to a specific treechildren element rather than all of ...
Sorting Results - Archive of obsolete content
description, the tree would sort by the value of the description variable for each row. In almost all situations however, you would normally sort using the same variable used for the label value. However, one situation where this is not desirable is if the displayed values would not generate the correct order as there is a different representation that is more accurate. For example, the date 'May
15' would appear after 'August 24' when sorted purely alphabetically but before it when sorted chronologically. For RDF datasources, another way to sort by dates is to use the the parseType="Date" construct in the RDF datasource. This marks a literal as being a date value rather than a string. The builder will recognize this and sort chronologically instead. This also has the advantage that the date...
SeaMonkey - making custom toolbar (SM ver. 1.x) - Archive of obsolete content
d="abToolbar"> <hbox id="toolbar_button_box"> <toolbarbutton id="custom-button-1" position="8"/> </hbox> </toolbar> <!-- message compose --> <toolbar id="composeToolbar"> <hbox id="toolbar_button_box"> <toolbarbutton id="custom-button-1" position="8"/> </hbox> </toolbar> <!-- mail, message --> <hbox id="toolbar_button_box"> <toolbarbutton id="custom-button-1" position="
15"/> </hbox> <!-- composer --> <toolbar id="EditToolbar"> <toolbarbutton id="custom-button-1" position="18"/> </toolbar> <!-- chat --> <menubar id="mainmenu"> <menu id="custom-menu" position="4" label="Custom" accesskey="C"> <menupopup> <menuitem id="custom-item-1" label="Custom Item 1" accesskey="1" tooltiptext="My custom menu item" oncommand="Cu...
Adding Style Sheets - Archive of obsolete content
itially. You could still put this in a separate style sheet if you really wanted to. A class was added to the spacers so that they can be referred to. A style sheet also needs to be created. Create a file findfile.css in the same directory as the XUL file. (It would normally be put into a separate skin). In this file, we'll add the style declarations, as shown below: #find-text { min-width:
15em; } #progmeter { margin: 4px; } .springspace { width: 10px; } .titlespace { height: 10px; } Notice how these styles are equivalent to the styles we had before. However, it is much easier for someone to change the look of the find files dialog now because they could add or modify the style declarations by either modifying the file or by changing the skin. If the user changes the inter...
Element Positioning - Archive of obsolete content
size, even if the font is very large. Example 6 The description element is constrained to have a maximum width of 50 pixels. The text inside will wrap to the next line, after fifty pixels. Our find files dialog Let's add some of these styles to the find files dialog. We'll make it so that the textbox will resize to fit the entire window. <textbox id="find-text" flex="1" style="min-width:
15em;"/> Here, the text input has been made flexible. This way, it will grow if the user changes the size of the dialog. This is useful if the user wants to enter a long string of text. Also, a minimum width of
15 ems has been set so that the text box will always show at least
15 characters. If the user resizes the dialog to be very small, the text input will not shrink past
15 ems. It will be d...
Keyboard Shortcuts - Archive of obsolete content
PAD0 VK_NUMPAD1 VK_NUMPAD2 VK_NUMPAD3 VK_NUMPAD4 VK_NUMPAD5 VK_NUMPAD6 VK_NUMPAD7 VK_NUMPAD8 VK_NUMPAD9 VK_MULTIPLY VK_ADD VK_SEPARATOR VK_SUBTRACT VK_DECIMAL VK_DIVIDE VK_F1 VK_F2 VK_F3 VK_F4 VK_F5 VK_F6 VK_F7 VK_F8 VK_F9 VK_F10 VK_F11 VK_F12 VK_F13 VK_F14 VK_F
15 VK_F16 VK_F17 VK_F18 VK_F19 VK_F20 VK_F21 VK_F22 VK_F23 VK_F24 VK_NUM_LOCK VK_SCROLL_LOCK VK_COMMA VK_PERIOD VK_SLASH VK_BACK_QUOTE VK_OPEN_BRACKET VK_BACK_SLASH VK_CLOSE_BRACKET VK_QUOTE VK_HELP For example, to create a shortcut that is activated when the user presses Alt and F5, do th...
Numeric Controls - Archive of obsolete content
ertical" dir="reverse"/> This scale will be shown vertical with lower values at the bottom and higher values at the top. Date and Time Entry Fields The datepicker and timepicker elements may be used to allow the user to enter dates and times. When used, they display a set of numeric textboxes to enter each of the components of the date or time. <datepicker value="2004-03-24"/> <timepicker value="
15:30:00"/> The value attribute is used to set the default value; if this attribute is omitted, the field will be initially set to the current date or time. The format of the attribute is exactly as above, that is dates are of the form YYYY/MM/DD and times are of the form HH:MM:SS (although the seconds and the accompanying colon may be omitted). These two elements ensure that the user enters a ...
Stacks and Decks - Archive of obsolete content
d using a bar and a label overlaid on top of it. Shadowing with stacks One convenient use of the stack element however is that you could emulate a number of CSS properties with it. For example, you could create an effect similar to the text-shadow property with the following: Example 1 : Source View <stack> <description value="Shadowed" style="padding-left: 1px; padding-top: 1px; font-size:
15pt"/> <description value="Shadowed" style="color: red; font-size:
15pt;"/> </stack> Both description elements create text with a size of
15 points. The first, however is offset one pixel to the right and down by adding a padding to its left and top sides. This has the result of drawing the same text 'Shadowed' again but slightly offset from the other. The second description element is drawn ...
Window icons - Archive of obsolete content
Starting with Firefox 1.5, Thunderbird 1.5, and XULRunner 1.8, you can specify an icon for a XUL window by putting files named mywindow.ico (for Windows) and mywindow.xpm or mywindow16.xpm (Linux), where mywindow is the id of the <window> you want to attach the icon to, in the chrome/icons/default subfolder of your bundle. These icons will override the global icon files, which are located in app_dir/browser/chrome/icons/default. Note: The global icons override does not currently work due to bug bug 543490. ...
XUL element attributes - Archive of obsolete content
tes are stored in the per-profile file xulstore.json. Persistence can also be stored using the document.persist function. In order for persistence to work, the element must also have an id. Persistence will not remember the absence of an attribute, so for boolean attributes like checked where absence means false, you will need to explicitly set the attribute to false before the window closes (bug
15232). popup Type: id Should be set to the value of the id of the popup element that should appear when the user clicks on the element. position Type: string (representing an integer) When an element is in an overlay, the position is an index where the child is inserted. The position is one-based, so use a value of 1 to place the element at the beginning. This attribute is ignor...
listbox - Archive of obsolete content
selectAll, selectItem, selectItemRange, timedSelect, toggleItemSelection Examples <listbox id="theList"> <listitem label="Ruby"/> <listitem label="Emerald"/> <listitem label="Sapphire" selected="true"/> <listitem label="Diamond"/> </listbox> <listbox id="theList" rows="10" width="400"> <listhead> <listheader label="1ct Gem" width="240"/> <listheader label="Price" width="
150"/> </listhead> <listcols> <listcol/> <listcol flex="1"/> </listcols> </listbox> var theList = document.getElementById('theList'); gems = [ {gem: "Ruby", Price: "$3,500 - $4,600"}, {gem: "Emerald", Price: "$700 - 4,250"}, {gem: "Blue Sapphire", Price: "$3,400 - $4,500"}, {gem: "Diamond", Price: "$5,600 - $16,000"} ]; for (var i = 0; i < gems...
menuitem - Archive of obsolete content
checked or not. Use hasAttribute() to determine whether this attribute is set instead of getAttribute(). For buttons, the type attribute must be set to checkbox or radio for this attribute to have any effect. Note: if the checked attribute is set to true, and you persist its value via the persist attribute, Mozilla will fail to persist its value when the menuitem is unchecked because of bug
15232. A workaround is to set the autocheck attribute to false, then programmatically set the checked attribute when the user selects the item, and set it to false instead of removing the attribute (i.e. do menuitem.setAttribute("checked", "false") instead of menuitem.removeAttribute("checked")) when the user unchecks the menuitem, as a value of false will both correctly hide the checkmark and persi...
prefwindow - Archive of obsolete content
e information is available in the Preferences System article. Important note for XULrunner-based applications: the Preferences System - part of the toolkit - still relies on two browser.* preferences. The first one is browser.preferences.instantApply, a boolean preference. The preference window will not run correctly if you do not set this preference in your application's defaults (see bug 485
150 for more information). A true value for this preference makes the preference window apply immediately the user choices, without waiting for the dialog to close with OK. The second preference is browser.preferences.animateFadeIn, again a boolean preference. This one can be safely omitted in XULrunner-based applications but you can override the default behavior (true for Mac OS X and false for ot...
nsIContentPolicy - Archive of obsolete content
iggered by a click on an <a> element using the ping attribute. TYPE_XMLHTTPREQUEST 11 Indicates an XMLHttpRequest. Also used for Document.load() TYPE_OBJECT_SUBREQUEST 12 Indicates a request by a plugin. TYPE_DTD 13 Indicates a DTD loaded by an XML document. TYPE_FONT 14 Indicates a font loaded via @font-face rule. TYPE_MEDIA
15 Indicates a video or audio load. TYPE_WEBSOCKET 16 Indicates a WebSocket load. TYPE_CSP_REPORT 17 Indicates a Content Security Policy report. TYPE_XSLT 18 Indicates a style sheet transformation. TYPE_BEACON 19 Indicates a beacon post. TYPE_FETCH 20 Indicates a load initiated by the GlobalFetch.fetch() method, which is a...
Gecko Compatibility Handbook - Archive of obsolete content
our Web Pages for a quick tutorial on what's different in Gecko. AOL or CompuServe Problems Even if your site works on Netscape 7.x, it is important to test your site in AOL for macOS and CompuServe 7 to check for browser detection and network issues. Testing AOL From Within a Firewall If you need to connect to AOL via a corporate firewall, America Online has registered TCP/IP ports 5190 and 1
1523 so you can communicate with the AOL client software. This way you can test your site on the AOL client from behind your firewall, provided that your network administrators will open these ports. You need to be connected to the Internet to test your site on AOL; it isn't possible to access your site on a local machine via your LAN, without an Internet connection. See Webmaster@AOL for further i...
2006-11-17 - Archive of obsolete content
e Should there be an additional options for account configuration that just delete the messages from the server whenever they are deleted in TB? Some discussion is posted. However, David Bienvenu stated that the options already exist in TB 2.0, just that it is a hidden. Code Review Requested for SMTP Swticher No comment is made. Meetings Calendar Project Weekly Status Meeting - 2006/11/
15 17:00 UTC (Meeting notes) Calendar Project weekly QA Chat - 2006/11/02 16:30 UTC (Meeting notes) ...
2006-10-06 - Archive of obsolete content
Summary: mozilla.dev.builds - September 30th to October 6th 2006 TB MOZILLA_1_8_BRANCH build problem on Mac OS X (10.4.7, universal build) Ludwig Hugelschafer stated that he has been encountering an error when he executes a "make export" operation on ThunderBird (part of the MOZILLA_1_8_BRANCH) since September
15th. ../../dist/host/bin/host_xpidl -m header -w -I~mozilla/xpcom/base -I../../dist/idl -o _xpidlgen/nsIConsoleListener ~/mozilla/xpcom/base/nsIConsoleListener.idl gmake[2]: *** [_xpidlgen/nsIConsoleListener.h] Bus error gmake[2]: *** Deleting file `_xpidlgen/nsIConsoleListener.h' gmake[1]: *** [export] Error 2 make: *** [all] Error 2:: On Octorber 4th Ludwig Hugelschafer responded to his original post with the solution to his own problem. He found out tha...
NPEvent - Archive of obsolete content
or the Windows event parameter; parameter value depends upon event type. EventRecord NPEvent on Mac OS NPEvent is defined as an EventRecord data structure, which has the following fields: what Integer representing an event type. Both windowed and windowless plug-ins receive the same events. Values: 0 nullEvent 1 mouseDown 2 mouseUp 3 keyDown 4 keyUp 5 autoKey 6 updateEvt 7 diskEvt 8 activateEvt
15 osEvt 23 kHighLevelEvent getFocusEvent 0, 1 (true, false) loseFocusEvent adjustCursorEvent 0, 1 (true, false) For information about these events, see the Mac OS developer documentation. message LongInt. Additional information about the event. Type of information depends on the event type. Undefined for null, mouseUp, and mouseDown events. when LongInt. Ticks since start-up. where Point. Cur...
Adobe Flash - Archive of obsolete content
th a concatenation of the name of the embed element, the underscore ("_"), and the string "DoFSCommand". The following code snippet illustrates the ideas behind the use of FSCommands demonstrated in Example 3: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="myFlash" width="250" height="
150" VIEWASTEXT> <param name="movie" value="js2flash.swf" /> <param name="quality" value="high"></param> <embed src="js2flash.swf" width="250" height="
150" swLiveConnect="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="myFlash"> </embed> </object> ..... function myFlash_DoFSCommand(command, args) { // handle an...
SSL and TLS - Archive of obsolete content
it is faster and requires shorter key lengths for stronger keys. The drawback to using ECC is that it is not as widely supported as RSA. Bits of Security RSA Key Length ECC Key Length Table 1: Comparison of RSA and ECC Cipher Strength 80 1024 160-223 112 2048 224-255 128 3072 256-383 192 7860 384-511 256
15360 512+ The information in this table is from the National Institute of Standards and Technology (NIST). For more information, see http://csrc.nist.gov/publications/nistpubs/800-57/SP800-57-Part1.pdf. For more information on ECC, see RFC 4492, Section 5.6.1, Table 2. Original Document Information Author(s): Ella Deon Lackey Last Updated Date: 2012 Copyright Information: (C) 2012...
Scratchpad - Archive of obsolete content
As an alternative, starting in Firefox 71, you can use the multi-line mode of the JavaScript console input. Scratchpad provides an environment for experimenting with JavaScript code. You can write, run, and examine the results of code that interacts with the web page. Unlike the Web Console, which is designed for interpreting a single line of code at a time, Scratchpad lets you edit larger chunks of JavaScript code, then execute it in various ways depending on how you want to use the output. The featured video tutorial shows a case of using Scratchpad with a page run by a local web server. ...
References - Archive of obsolete content
The webpage explains and proposes with small examples the best coding practices and most recommendable ways of developing problem-free javascript code. From Matt Kruse Debugging HTML and CSS is a well designed website explaining well the how, why and where of HTML validation, CSS validation and ...
ECMAScript 2016 to ES.Next support in Mozilla - Archive of obsolete content
New versions of ECMAScript specifications are released yearly. So far, ES2016, ES2017, and ES2018 have been released. This year, the ES2019 specification will be released and ES2020 is the current ECMAScript draft specification. You can see the latest proposals on the tc39/ecma262 GitHub repository. A channel for feedback on ECMAScript standards is es-discuss. ...
Function.prototype.isGenerator() - Archive of obsolete content
whether or not a function is a generator. It has been removed from Firefox starting with version 58. Syntax fun.isGenerator() Return value A Boolean indicating whether or not the given function is a generator. Description The isGenerator() method determines whether or not the function fun is a generator. It was part of an early Harmony proposal, but has not been included in the ECMAScript 20
15 specification. Examples function f() {} function* g() { yield 42; } console.log('f.isGenerator() = ' + f.isGenerator()); // f.isGenerator() = false console.log('g.isGenerator() = ' + g.isGenerator()); // g.isGenerator() = true Specifications Not part of any standard. ...
Generator comprehensions - Archive of obsolete content
r which yields [1, 4, 9] Example 2: Using if in generator. var numbers = [1, 2, 3]; // Generator function (function*() { for (let i of numbers) { if (i < 3) { yield i * 1; } } })(); // Generator comprehension (for (i of numbers) if (i < 3) i); // Result: both return a generator which yields [1, 2] Specifications Generator comprehensions were initially in the ECMAScript 20
15 draft, but got removed in revision 27 (August 2014). Please see older revisions of ES20
15 for specification semantics. ...
New in JavaScript 1.8.5 - Archive of obsolete content
Date object's parse() method now supports simple ISO 8601 format date strings. Global objects made read only: The NaN, Infinity, and undefined global objects have been made read only, per the ECMAScript 5 specification. obj.__parent__ and obj.__count__ become obsolete. Some information about why: SpiderMonkey change du jour: the special __parent__ property has been removed bug 55
1529 & bug 552560. Trailing commas no longer accepted in JSON.parse(). ...
New in JavaScript 1.8 - Archive of obsolete content
n HTML, use: <script type="application/javascript;version=1.8"> ... your code ... </script> Another way (not recommended) to do this is to use the deprecated <script> language attribute and define it as "JavaScript1.8". When using the JavaScript shell, JavaScript XPCOM components, or XUL <script> elements, the latest JS version (JS1.8 in Mozilla 1.9) is used automatically (bug 381031, bug 385
159). The features that require the use of the new keywords "yield" and "let" require you to specify version 1.7 or higher because existing code might use those keywords as variable or function names. The features that do not introduce new keywords (such as generator expressions) can be used without specifying the JavaScript version. New features in JavaScript 1.8 Expression Closures. Generato...
Object.prototype.__noSuchMethod__ - Archive of obsolete content
/ SeaMonkey 2.40)This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. The __noSuchMethod__ property used to reference a function to be executed when a non-existent method is called on an object, but this function is no longer available. While __noSuchMethod__ has been dropped, the ECMAScript 20
15 specification has the Proxy object, with which you can achieve the below (and more). Syntax obj.__noSuchMethod__ = fun Parameters fun A function that takes the form function (id, args) { . . . } id The name of the non-existent method that was called args An array of the arguments passed to the method Description By default, an attempt to call a method that doesn't exis...
JavaClass - Archive of obsolete content
ont; myFont = x("helv", x.BOLD, 10); // creates a Font object The previous example omits the Packages keyword and uses the java synonym because the Font class is in the java package. Example In the following example, the JavaClass object java.lang.String is passed as an argument to the newInstance method which creates an array: var cars = java.lang.reflect.Array.newInstance(java.lang.String,
15); See also JavaArray, JavaObject, JavaPackage, Packages ...
forEach - Archive of obsolete content
There is some mistype in Array.prototype.forEach: kValue = O[ Pk ]; should be kValue = O[ k ]; <hr> This page has been the target of a revert war, and so write access to it has been restricted. If you wish to make changes, and especially if you wish to revert another user's changes, please either add a comment here, or post to dev-mdc@lists.mozila.org, explaining the change you desire. jswisher
15 Aug 2011 <hr> Is this a from _core_ of JavaScript 1.5? If so, is JS 1.5 Gecko only? Those extra features like forEach are Gecko only, and it should be mentioned that they should *_not_* be used on web pages. --Gandalf 07:18, 31 May 2005 (PDT) Is there a way to make forEach make use of break? [1].forEach(function(value, index, array){ print(value); //break? if (value>1){ return false;//we c...
Building Mozilla XForms - Archive of obsolete content
have everything you need to get started. Configure your build: the .mozconfig file Mozilla uses a file called .mozconfig in your home directory to store the build configuration. For xforms, you will need to add the following line: ac_add_options --enable-extensions="default,xforms" # if you're using a Mozilla source before 2010-11-06 (e.g. an old Firefox 3.6 release) use this instead (see bug 60
1570 for details): ac_add_options --enable-extensions="default,xforms,schema-validation" A complete .mozconfig file for a release build might look like that: . $topsrcdir/browser/config/mozconfig mk_add_options MOZ_CO_PROJECT=browser mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@ #mk_add_options AUTOCONF=autoconf2.13 # possibly needed #mk_add_options MOZ_MAKE_FLAGS=-jn # (optional) repla...
RFE to the Custom Controls - Archive of obsolete content
f Mozilla only and custom control authors should be aware their controls won't work on other browser platforms. RFE Put your requests here. output that shows the DOM If output contains CDATA section or text node and its data is any Mozilla known language like XHTML/XUL/SVG then output should parse and display it (see bug 316817). output should show data in current locale format The bug 33
1585 address the issue. Probably this feature should be implemented by adding a new custom control. input that shows/modifies the DOM Like the request above for output. The related bug is bug 348562. ...
Archive of obsolete content
iate to move it here. In general, it may be best to discuss it in the MDN Web Docs room on Matrix before moving content here. .htaccess ( hypertext access ) File Accessing : htaccess files can be opened using any text editor, like Windows Notepad, Vin, Sublime text editor or any other. Syntax highliting support for .htaccess files less. 20
15 MDN Fellowship Program Add-ons Archived add-ons documentation. Adding preferences to an extension This article takes the Creating a dynamic status bar extension sample to the next level, adding a popup menu that lets you quickly switch between multiple stocks to watch. It also adds a preference dialog that lets you switch to a stock othe...
Index - Game development
lume collision detection with THREE.js 3D, Games, JavaScript, WebGL, bounding boxes, collision detection, three.js This article shows how to implement collision detection between bounding boxes and spheres using the Three.js library. It is assumed that before reading this you have read our 3D collision detection introductory article first, and have basic knowledge about Three.js.
15 3D games on the Web Games, Graphics, NeedsContent, NeedsExample, WebGL, WebVR, three.js For rich gaming experiences on the web, the weapon of choice is WebGL, which is rendered on HTML <canvas>. WebGL is basically an OpenGL ES 2.0 for the Web -- it's a JavaScript API providing tools to build rich interactive animations and of course, also games. You can generate and render dynamic 3...
2D collision detection - Game development
ctx = Crafty.canvas.context; ctx.save(); ctx.fillStyle = this.color; ctx.beginPath(); ctx.arc( this.x + this.radius, this.y + this.radius, this.radius, 0, Math.PI * 2 ); ctx.closePath(); ctx.fill(); ctx.restore(); } }); var circle1 = Crafty.e("2D, Canvas, Circle").attr(dim1).circle(
15, "red"); var circle2 = Crafty.e("2D, Canvas, Circle, Fourway").fourway(2).attr(dim2).circle(20, "blue"); circle2.bind("EnterFrame", function () { var dx = (circle1.x + circle1.radius) - (circle2.x + circle2.radius); var dy = (circle1.y + circle1.radius) - (circle2.y + circle2.radius); var distance = Math.sqrt(dx * dx + dy * dy); if (distance < circle1.radius + circle2.radius) {...
Building up a basic demo with Babylon.js - Game development
ment using Babylon.js! It was easier than you thought, right? Here's how it should look: And here's the code we have created so far: You can also check it out on GitHub. More shapes We have a box on the scene already; now let's try adding more shapes. Torus Let's try adding a torus -- add the following lines below the previous code: var torus = BABYLON.Mesh.CreateTorus("torus", 2, 0.5,
15, scene); torus.position.x = -5; torus.rotation.x = 1.5; This will create a torus and add it to the scene; the parameters are: name, diameter, thickness, tessellation (number of segments) and the scene to add it to. We also position it a bit to the left and rotate it on the x axis so it can be seen better. Now let's add a material: var torusMaterial = new BABYLON.StandardMaterial("material", sc...
Building up a basic demo with Three.js - Game development
e both, the Phong and Lambert materials properly visible, we need to introduce a source of light. Lights There are various types of light sources available in Three.js. The most basic is PointLight, which works like a flashlight, shining a spotlight in a defined direction. Add the following lines, below your shape definitions: var light = new THREE.PointLight(0xFFFFFF); light.position.set(-10,
15, 50); scene.add(light); We define a white point of light, set its position a little away from the center of the scene, so it can light up some parts of the shapes, finally adding it to the scene. Now everything works as it should, all three shapes are visible. You should check the documentation for other types of lights, like Ambient, Directional, Hemisphere, or Spot. Experiment placing them on...
Implementing controls using the Gamepad API - Game development
take effect. For example, the Fridge tank will turn right only when the X value is bigger than 0.5: if(gamepadAPI.axesStatus[0].x > 0.5) { this.player.angle += 3; this.turret.angle += 3; } Even if we move it a little by mistake or the stick doesn't make it back to its original position, the tank won't turn unexpectedly. Specification update After more than a year of stability, in April 20
15 the W3C Gamepad API spec was updated (see the latest.) It hasn't changed much, but it's good to know whats going on -- the updates are as follows. Getting the gamepads The Navigator.getGamepads() method has been updated with a longer explanation and an example piece of code. Now the length of the array of gamepads has to be n+1 where n is the number of connected devices -- when there's one devi...
Player paddle and controls - Game development
t from the bottom. To place it exactly as we want it we will set the anchor to the exact middle of the ball. Find the existing ball = game.add.sprite( ... ) line, and replace it with the following two lines: ball = game.add.sprite(game.world.width*0.5, game.world.height-25, 'ball'); ball.anchor.set(0.5); The velocity stays almost the same -- we're just changing the second parameter's value from
150 to -
150, so the ball will start the game by moving up instead of down. Find the existing ball.body.velocity.set( ... ) line and update it to the following: ball.body.velocity.set(
150, -
150); Now the ball will start right from the middle of the paddle. Compare your code You can check the finished code for this lesson in the live demo below, and play with it to understand better how it works:...
DNS - MDN Web Docs Glossary: Definitions of Web-related terms
DNS (Domain Name System) is a hierarchical and decentralized naming system for Internet connected resources. DNS maintains a list of domain names along with the resources, such as IP addresses, that are associated with them. The most prominent function of DNS is the translation of human-friendly domain names (such as mozilla.org) to a numeric IP address (such as
151.106.5.172); this process of mapping a domain name to the appropriate IP address is known as a DNS lookup. By contrast, a reverse DNS lookup (rDNS) is used to determine the domain name associated with an IP address. Learn more General knowledge Understanding domain names Domain Name System on Wikipedia ...
Hoisting - MDN Web Docs Glossary: Definitions of Web-related terms
Hoisting was thought up as a general way of thinking about how execution contexts (specifically the creation and execution phases) work in JavaScript. However, the concept can be a little confusing at first. Conceptually, for example, a strict definition of hoisting suggests that variable and function declarations are physically moved to the top of your code, but this is not in fact what happens. Instead, the variable and function declarations are put into memory during the compile phase, but stay exactly where you typed them in your code. ...
RAIL - MDN Web Docs Glossary: Definitions of Web-related terms
The performance mantra of RAIL is "Focus on the user; the end goal isn't to make your site perform fast on any specific device, it's to make users happy." There are 4 stages of interaction: page load, idle, response to input, and scrolling and animation. In acronym order, the main tenets are: Response Respond to users immediately, acknowledging any user input in 100ms or less. ...
Symbol - MDN Web Docs Glossary: Definitions of Web-related terms
l("Sym") console.log(Sym1 === Sym2) // returns "false" // Symbols are guaranteed to be unique. // Even if we create many symbols with the same description, // they are different values. Note: If you are familiar with Ruby's (or another language) that also has a feature called "symbols", please don't be misguided. JavaScript symbols are different. Symbol type is a new feature in ECMAScript 20
15. There is no ECMAScript 5 equivalent for Symbol. In some programming languages, the symbol data type is referred to as an "atom." Symbols don't "Auto-Convert" to strings Most values in JavaScript support implicit conversion to a string. For instance, we can alert almost any value, and it will work. Symbols are special. They don't auto-convert. For example: let Sym = Symbol("Sym") alert(Sym) ...
Tree shaking - MDN Web Docs Glossary: Definitions of Web-related terms
In modern JavaScript applications, we use module bundlers (e.g., webpack or Rollup) to automatically remove dead code when bundling multiple JavaScript files into single files. This is important for preparing code that is production ready, for example with clean structures and minimal file size. ...
Whitespace - MDN Web Docs Glossary: Definitions of Web-related terms
space: U+0009 TAB, U+000A LF, U+000C FF, U+000D CR, and U+0020 SPACE. In the form of text, they are treated as normal space characters and sequential whitespaces are collapsed as a single space in many cases (this behavior can be changed by the white-space CSS property. They are also used as a separator of an element name and its parameters, class names, and so on. In JavaScript ECMAScript(R) 20
15 Language Specification specifies several Unicode codepoints as white space: U+0009 CHARACTER TABULATION <TAB>, U+000B LINE TABULATION <VT>, U+000C FORM FEED <FF>, U+0020 SPACE <SP>, U+00A0 NO-BREAK SPACE <NBSP>, U+FEFF ZERO WIDTH NO-BREAK SPACE <ZWNBSP> and Other category "Zs" Any other Unicode "Separator, space" code point <USP>. These characters are usually unnecessary for the functionality of ...
WAI-ARIA basics - Learn web development
ria-valuemax properties to specify min and max values, but these currently don't seem very well supported; a better supported feature is the HTML5 placeholder attribute, which can contain a message that is shown in the input when no value is entered, and is read out by a number of screenreaders. Update your number input like this: <input type="number" name="age" id="age" placeholder="Enter 1 to
150" aria-required="true"> Note: You can see the finished example live at form-validation-updated.html. WAI-ARIA also enables some advanced form labelling techniques, beyond the classic <label> element. We already talked about using the aria-label property to provide a label where we don't want the label to be visible to sighted users (see the Signposts/Landmarks section, above). There are so...
What is accessibility? - Learn web development
beyond your own computer and how you use the web, and start learning about how others use it -- you are not your users. The main types of disability to consider are explained below, along with any special tools they use to access web content (known as assistive technologies, or ATs). Note: The World Health Organization's Disability and health fact sheet states that "Over a billion people, about
15% of the world's population, have some form of disability", and "Between 110 million and 190 million adults have significant difficulties in functioning." People with visual impairments People with visual impairments include people with blindness, low-level vision, and color blindness. Many people with visual impairments use screen magnifiers that are either physical magnifiers or software zoom...
Advanced styling effects - Learn web development
th shadows based on multiple light sources. Other box shadow features Unlike text-shadow, box-shadow has an inset keyword available -- putting this at the start of a shadow declaration causes it to become an inner shadow, rather than an outer shadow. Let's have a look and see what we mean. ...
Fundamental CSS comprehension - Learn web development
t too. Write a ruleset that gives the <h2> an effective font size of 20px (but expressed in ems) and an appropriate line height to place it in the center of the header's content box. Recall from earlier that the content box height should be 30px -- this gives you all the numbers you need to calculate the line height. Write a ruleset that gives the <p> inside the footer an effective font size of
15px (but expressed in ems) and an appropriate line height to place it in the center of the footer's content box. Recall from earlier that the content box height should be 30px -- this gives you all the numbers you need to calculate the line height. As a last little touch, give the paragraph inside the <article> an appropriate padding value so that its left edge lines up with the <h2> and footer pa...
Test your skills: Selectors - Learn web development
ample: For assessment or further work purposes, download the starting point for this task to work in your own editor or in an online editor. Selectors Three In this example, try making the following changes without adding to the HTML. Style links, making the link-state orange, visited links green, and remove the underline on hover. Make the first element inside the container font-size:
150% and the first line of that element red. Stripe every other row in the table by selecting these rows and giving them a background color of #333 and foreground of white. 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 online editor. Selectors Four I...
Sizing items in CSS - Learn web development
imum size. If you have a box that might contain a variable amount of content, and you always want it to be at least a certain height, you could set the min-height property on it. The box will always be at least this height, but will then grow taller if there is more content than the box has space for at its minimum height. In the example below you can see two boxes, both with a defined height of
150 pixels. The box on the left is
150 pixels tall; the box on the right has content that needs more room, and so it has grown taller than
150 pixels. This is very useful for dealing with variable amounts of content while avoiding overflow. A common use of max-width is to cause images to scale down if there is not enough space to display them at their intrinsic width while making sure they don't...
CSS values and units - Learn web development
age for the <color> value. Try playing with different color values in the live examples below, to get more of an idea how they work. Hexadecimal RGB values The next type of color value you are likely to encounter is hexadecimal codes. Each hex value consists of a hash/pound symbol (#) followed by six hexadecimal numbers, each of which can take one of 16 values between 0 and f (which represents
15) -- so 0123456789abcdef. Each pair of values represents one of the channels -- red, green and blue -- and allows us to specify any of the 256 available values for each (16 x 16 = 256.) These values are a bit more complex and less easy to understand, but they are a lot more versatile than keywords -- you can use hex values to represent any color you want to use in your color scheme. Again, tr...
Introduction to CSS layout - Learn web development
vel, viverra egestas ligula. Curabitur vehicula tellus neque, ac ornare ex malesuada et. In vitae convallis lacus. Aliquam erat volutpat. Suspendisse ac imperdiet turpis. Aenean finibus sollicitudin eros pharetra congue. Duis ornare egestas augue ut luctus. Proin blandit quam nec lacus varius commodo et a urna. Ut id ornare felis, eget fermentum sapien.</p> .box { float: left; width:
150px; height:
150px; margin-right: 30px; } Note: Floats are fully explained in our lesson on the float and clear properties. Prior to techniques such as Flexbox and Grid Layout floats were used as a method of creating column layouts. You may still come across these methods on the web; we will cover these in the lesson on legacy layout methods. Positioning techniques Positioning all...
What is CSS? - Learn web development
ndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internetfont-familyChrome Full support 1Edge Full support 12Firefox Full support 1Notes Full support 1Notes Notes Not supported on option elements. ...
How much does it cost to do something on the Web? - Learn web development
Note that there is no such thing as "unlimited" bandwidth. If you consume a huge amount of bandwidth, expect to pay a huge amount of money. Domain names Your domain name has to be purchased through a domain name provider (a registrar). Your hosting provider may also be a registrar (1&1, Gandi for instance are at the same time registrars and hosting providers). The domain name usually costs $5-
15 per year. This cost varies depending on: Local obligations: some country top-level domain names are more costly, as different countries set different prices. Services associated with the domain name: some registrars provide spam protection by hiding your postal address and email address behind their own addresses: the postal address can be provided in care of the registrar, and your email add...
What is a Domain Name? - Learn web development
me registrar's website. Most of them provide a "whois" service that tells you whether a domain name is available. Alternatively, if you use a system with a built-in shell, type a whois command into it, as shown here for mozilla.org: $ whois mozilla.org Domain Name:MOZILLA.ORG Domain ID: D1409563-LROR Creation Date: 1998-01-24T05:00:00Z Updated Date: 2013-12-08T01:16:57Z Registry Expiry Date: 20
15-01-23T05:00:00Z Sponsoring Registrar:MarkMonitor Inc. (R37-LROR) Sponsoring Registrar IANA ID: 292 WHOIS Server: Referral URL: Domain Status: clientDeleteProhibited Domain Status: clientTransferProhibited Domain Status: clientUpdateProhibited Registrant ID:mmr-33684 Registrant Name:DNS Admin Registrant Organization:Mozilla Foundation Registrant Street: 650 Castro St Ste 300 Registrant City:Mounta...
Test your skills: Form validation - Learn web development
validation features to it: Make all of the input fields mandatory to complete before the form can be submitted. Change the type of the "Email address" and "Phone number" fields to make the browser apply some more specific validation suitable for the data being asked for. Give the "User name" field a required length of between 5 and 20 characters, the "Phone number" field a maximum length of
15 characters, and the "Comment" field a maximum length of 200 characters. Try submitting your form -- it should refuse to submit until the above constaints are followed, and give suitable error messages. To help, you might want to consider adding some simple CSS to show when a form field is valid or invalid. Download the starting point for this task to work in your own editor or in an online ed...
How the Web works - Learn web development
gives you your goods, and you bring them back to your house). The browser assembles the small chunks into a complete web page and displays it to you (the goods arrive at your door -- new shiny stuff, awesome!). DNS explained Real web addresses aren't the nice, memorable strings you type into your address bar to find your favorite websites. They are special numbers that look like this: 63.245.2
15.20. This is called an IP address, and it represents a unique location on the web. However, it's not very easy to remember, is it? That's why Domain Name Servers were invented. These are special servers that match up a web address you type into your browser (like "mozilla.org") to the website's real (IP) address. Websites can be reached directly via their IP addresses. You can find the IP addres...
Add a hitmap on top of an image - Learn web development
hat it does. alt text only displays when the image is unavailable. Please refer to our guidelines for writing accessible link text. You may write alt="" if the href attribute is blank and the entire image already has an alt attribute. <map name="example-map-1"> <area shape="circle" coords="200,250,25" href="page-2.html" alt="circle example" /> <area shape="rect" coords="10, 5, 20,
15" href="page-3.html" alt="rectangle example" /> </map> Step 3: Make sure it works for everybody You aren't done until you test image maps rigorously on many browsers and devices. Try following links with your keyboard alone. Try turning images off. If your image map is wider than about 240px, you'll need to make further adjustments to make your website responsive. It's not enough to resize...
Test your skills: HTML images - Learn web development
e. The image is called blueberries.jpg, and it is in a folder inside the current folder called images. Add some alternative text to an appropriate attribute to describe the image, for people that cannot see it. Give the <img> element an appropriate width and height so that it displays at the correct aspect ratio, and enough space is left on the page to display it. The image's intrinsic size is 6
15 x 419 pixels. 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 online editor. HTML images 2 In this task you already have a full-featured image, but we'd like you to add a tooltip that appears when the image is moused over. You should put some appropriate information into the tooltip. Try upd...
HTML table advanced features and accessibility - Learn web development
many rings were sold in Gent last August. To understand its information we make visual associations between the data in this table and its column and/or row headers. Items Sold August 2016 Clothes Accessories Trousers Skirts Dresses Bracelets Rings Belgium Antwerp 56 22 43 72 23 Gent 46 18 50 61
15 Brussels 51 27 38 69 28 The Netherlands Amsterdam 89 34 69 85 38 Utrecht 80 12 43 36 19 But what if you cannot make those visual associations? How then can you read a table like the above? Visually impaired people often use a screenreader that reads out information on web pages to them. This is no problem when you'r...
A first splash into JavaScript - Learn web development
nd open the developer tools JavaScript console. Then we can try typing in the examples shown below -- type in each one from the "Example" columns exactly as shown, pressing Return/Enter after each one, and see what results they return. First let's look at arithmetic operators, for example: Operator Name Example + Addition 6 + 9 - Subtraction 20 -
15 * Multiplication 3 * 7 / Division 10 / 5 You can also use the + operator to join text strings together (in programming, this is called concatenation). 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 aug...
Storing the information you need — Variables - Learn web development
6 is less than 3. As you might expect, it returns false, because 6 is not less than 3! You will learn a lot more about such operators later on in the course. Arrays An array is a single object that contains multiple values enclosed in square brackets and separated by commas. Try entering the following lines into your console: let myNameArray = ['Chris', 'Bob', 'Jim']; let myNumberArray = [10,
15, 40]; Once these arrays are defined, you can access each value by their location within the array. Try these lines: myNameArray[0]; // should return 'Chris' myNumberArray[2]; // should return 40 The square brackets specify an index value corresponding to the position of the value you want returned. You might have noticed that arrays in JavaScript are zero-indexed: the first element is at index...
Aprender y obtener ayuda - Learn web development
n relax with a drink before getting back to work, and as we said earlier, the diffuse learning you do in that time can often help you to figure out a solution to the problem you were facing. It is also physically bad to work for too long without a break -- looking at a monitor for too long can hurt your eyes, and sitting still for too long can be bad for your back or legs. We'd recommend taking a
15 minutes break every hour to 90 minutes. Eat, exercise, and sleep. Eat healthily, get regular exercise, and make sure you get enough sleep. This sounds obvious, but it is easy to forget when you get really into coding. Factor these essential ingredients into your schedule, and make sure you are not doing your learning time instead of these things. Give yourself rewards. It's true that all work a...
The "why" of web performance - Learn web development
st and trust. Here's some real-world examples of performance improvements: Tokopedia reduced render time from 14s to 2s for 3G connections and saw a 19% increase in visitors, 35% increase in total sessions, 7% increase in new users, 17% increase in active users and 16% increase in sessions per user. Rebuilding Pinterest pages for performance resulted in a 40% decrease in wait time, a
15% increase in SEO traffic and a
15% increase in conversion rate to signup. To build websites and applications people want to use; to attract and retain site visitors, you need to create an accessible site that provides a good user experience. Building websites requires HTML, CSS, and JavaScript, typically including binary file types such as images and video. The decisions you make and the tool...
Handling common JavaScript problems - Learn web development
onsider, for example Polyfill.io -- this is a meta-polyfill library that will look at each browser's capabilities and apply polyfills as needed, depending on what APIs and JS features you are using in your code. JavaScript transpiling Another option that is becoming popular for people that want to use modern JavaScript features now is converting code that makes use of ECMAScript 6/ECMAScript 20
15 features to a version that will work in older browsers. Note: This is called "transpiling" -- you are not compiling code into a lower level to be run on a computer (like you would say with C code); instead, you are changing it into a syntax that exists at a similar level of abstraction so it can be used in the same way, but in slightly different circumstances (in this case, transforming one fla...
Deploying our app - Learn web development
You should now be able to run the following command in the root of your project directory to run the production build step (first quit the running process with Ctrl + C if you need to): npm run build This should give you an output like the following, showing you the production files that were created, how big they are, and how long they took to build: dist/src.99d8a31a.js.map 446.
15 KB 63ms dist/src.99d8a31a.js 172.51 KB 5.55s dist/stars.7f1dd035.svg 6.31 KB 145ms dist/asteriod2.3ead4904.svg 3.51 KB
155ms dist/asteriod1.698d75e9.svg 2.9 KB
153ms dist/src.84f2edd1.css.map 2.57 KB 3ms dist/src.84f2edd1.css 1.25 KB 1.53s dist/bg.084d3fd3.svg 795 B 147ms dist/index.html 35...
Embedding API for Accessibility
ndow::SetTextZoom(2.0); Using Accessibility Preferences There are a number of prefs related to accessibility. For the most part, an automatic reframe is performed when one of these prefs is changed. A reframe fixes the appearance of the page to match the new prefs, without reloading the document over the network. ...
Mozilla Plugin Accessibility
board users to still access menus, close the current page, scroll, move back and forward in history, etc. If the plugin needs those keystrokes, the can consume them and not pass them on. See the plugin keyboard navigation proposal for the implementation plan. The same solution will be used for Bug 140566 (full page plugins) and Bug 78414 (partial page plugins), as well as the Linux-specific bug 84
159 and Mac-specific bug 180426. ? No target 2. Focus gets stuck in plugin. User cannot keyboard navigate out of a plugin We will apply the same solution as in problem 4 above. The plugin will be responsible for bubbling up shift+tab and tab when the user has reached the end of the tab cycle within the plugin. The bug tracking this work is bug 93149. ? N...
Theme concepts
"frame": and "tab_background_text": only support RGB color array definition on Chrome. So, in the single image theme example (weta_fade) could be supported in Chrome using the following manifest.json file: { "manifest_version": 2, "version": "1.0", "name": "<your_theme_name>", "theme": { "images": { "theme_frame": "weta.png" }, "colors": { "frame": [ 173 , 176 ,
159 ], "tab_background_text": [ 0 , 0 , 0 ] } } } Also, note that Chrome tiles the "theme_frame": image from the left of the header area. For more information, see the notes on Chrome compatibility. ...
Application cache implementation overview
rror event is invoked and the update 'finishes'. The parallel load is implemented by asynchronous recursive calls to ProcessNextURI(), a method searching always a single entry that is scheduled to load. When found, channel is open for it (+onprogress event is invoked). ProcessNextURI then invokes it self asynchronously via dispatch to a main thread when not already on the concurrency limit of
15 loads. When concurrency limit is reached, the ProcessNextURI self-invocation cycle is stopped. From now on ProcessNextURI can only be called from LoadCompleted() again. Note: the ProcessNextURI method early returns when state of the update is different then DOWNLOADING. On DOWNLOADING state LoadCompleted checks whether load of the item succeeded. If so, its marked as valid in the ne...
Cookies in Mozilla
Suggestions as to needed documentation can be directed to Mike Connor. Creating a Cookie Log Steps to create and attach a cookie log in order to aid in triaging a bug in cookies. Cookies Preferences in Mozilla Documentation on what the preferences used by the cookies code actually do. Original Document Information Author(s): Mike Connor Last Updated Date: March
15, 2004 Copyright Information: Portions of this content are (C) 1998-2007 by individual mozilla.org contributors; content available under a Creative Commons license | Details. ...
Debugging Table Reflow
DEBUG_TABLE_STRATEGY Editor's Note: the following examples are not shown correctly due to the wiki's technical constraint. The table layout strategy can be visualized by defining...
Simple Instantbird build
.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 streamline common developer tasks. See the mach article for more. Building can take a significant amount of time, depending on your system, OS, and chosen build options. Linux builds on a fast box may take under
15 minutes, but Windows builds on a slow box may take several hours. 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 direc...
Simple Thunderbird build
hould see green Bs on https://treeherder.mozilla.org/#/jobs?repo=comm-central To start the build, cd into the source directory, and run: ./mach build mach is our command-line tool to streamline common developer tasks. See the mach article for more. Building can take a significant amount of time, depending on your system, OS, and chosen build options. Linux builds on a fast box may take under
15 minutes, but Windows builds on a slow box may take several hours. Tips for making builds faster. The executable will be at the location listed under Running below. Running To run your build, you can use ./mach run There are various command line parameters you can add, e.g. to specify a profile. Various temporary files, libraries, and the Thunderbird executable will be found in your object d...
The Firefox codebase: CSS Guidelines
the content area, Gecko does some automatic color adjustments regarding page colors. Part of those adjustments include making all box-shadow invisible, so this is something to be aware of if you create a focus ring or a border using the box-shadow property: consider using a border or an outline if you want the border/focus ring to stay visible in high-contrast mode. An example of such bug is bug
1516767. Another adjustment to be aware of is that Gecko removes all the background-image when high contrast mode is enabled. Consider using an actual <img> tag (for HTML documents) or list-style-image (for XUL documents) if rendering the image is important. If you are not using Windows, one way to test against those adjustments on other platforms is: Going to about:preferences Clicking on the...
Index
Page Tags and summary 1 Firefox Firefox, Landing, Mozilla Here you can learn about how to contribute to the Firefox project and you will also find links to information about the construction of Firefox add-ons, using the developer tools in Firefox, and other topics. 3 Building Firefox with Rust code Build documentation, Gecko, build, rust In May 20
15 the Rust programming language reached its 1.0 stability milestone, and various experiments with writing parts of Gecko in Rust began. Rust code first shipped in August 2016 with the release of Firefox 48. It became a requirement for building Gecko in February 2017 with Firefox 54. 8 Experimental features in Firefox Experimental, Firefox, Preferences, features This page lists ...
Storage access policy: Block cookies from trackers
from a tracking origin to a non-tracking origin, the tracking origin receives short-lived storage access on the non-tracking origin and any other non-tracking origins that appear further down the redirect chain (i.e., if the load continues to redirect). The tracking origin must have received user interaction as a first party within the past 30 days, and the storage access permission expires after
15 minutes. Scope of storage access When storage access is granted, it is scoped to the origin of the opener document or subdomains of that origin. Access that is granted on the subdomain of an origin does not extend to the top-level origin. As an example, if a resource from tracker.example is granted storage access on foo.example.com, then tracker.example will be able to access its cookies on ba...
Using the Browser API
s after each page reload. In addition, the background of the controls UI bar is changed to the background color of the site that has just loaded, to provide a more integrated experience -- this can be read out of the event object's e.detail.backgroundColor value. When the front page of https://developer.mozilla.org is loaded, for example, the e.detail.backgroundColor value reported is rgb(0, 83,
159). Back to the stop/reload button -- updating the icon is nice, but we also need to update the functionality that is invoked when each icon is displayed. We do this with the following function, which runs the HTMLIFrameElement.stop() method to stop the page loading if the button is displaying a cross, and the HTMLIFrameElement.reload() method to reload the page otherwise. stopReload.addEventLis...
mozbrowserloadend
sed to change the icon shown on the stop/reload button between stop (x) and reload (R), as appropriate. In addition, the background of the controls UI bar is changed to the background color of the site that has just loaded, to provide a more integrated experience. When the front page of https://developer.mozilla.org is loaded, for example, the e.detail.backgroundColor value reported is rgb(0, 83,
159). var browser = document.querySelector("iframe"); browser.addEventListener('mozbrowserloadend',function(e) { stopReload.textContent = 'R'; console.log(e.detail.backgroundColor); controls.style.background = e.detail.backgroundColor; }); browser.addEventListener('mozbrowserloadend',function() { stopReload.textContent = 'R'; }); Related Events mozbrowserasyncscroll mozbrowserclose ...
Browser API
roformat data) contained in the HTML loaded in the browser <iframe> and returns it as JSON. Browser API methods removed in Firefox 65 In Firefox 65, several of the Mozilla Browser API methods were removed in an effort to cut down on DOMRequest usage in the browser, and remove the parts of the Browser API that are no longer needed (it is used only by the Firefox DevTools at this point). See bug
1503070 for more details. The methods removed in Firefox 65 are: HTMLIFrameElement.addNextPaintListener() Defines a handler to listen for the next MozAfterPaint event in the browser <iframe>. HTMLIFrameElement.clearMatch() Clears any content highlighted by findAll() or findNext(). HTMLIFrameElement.download() Downloads a specified URL, storing it at the specified filename/path. HTMLIFrameE...
Gecko versions and application versions
o 25 Firefox 25, SeaMonkey 2.22 Gecko 24 Firefox 24, Thunderbird 24, SeaMonkey 2.21 Gecko 23 Firefox 23, SeaMonkey 2.20 Gecko 22 Firefox 22, SeaMonkey 2.19 Gecko 21 Firefox 21, SeaMonkey 2.18 Gecko 20 Firefox 20, SeaMonkey 2.17 Gecko 19 Firefox 19, SeaMonkey 2.16 Gecko 18 Firefox 18, Firefox OS 1.0, SeaMonkey 2.
15 Gecko 17 Firefox 17, Thunderbird 17, SeaMonkey 2.14 Gecko 16 Firefox 16, Thunderbird 16, SeaMonkey 2.13 Gecko
15 Firefox
15, Thunderbird
15, SeaMonkey 2.12 Gecko 14 Firefox 14, Thunderbird 14, SeaMonkey 2.11 Gecko 13 Firefox 13, Thunderbird 13, SeaMonkey 2.10 Gecko 12 Firefox 12, Thunderbird 12, SeaMonkey 2.9 Gecko 1...
IME handling guide
l contents. So, e.g., reconvertion around caret may not work as unexpectd in such case, but we don't have a good solution for this issue. On the other hand, TSFTextStore cannot cache character rects since if there are a lot of characters, caching the rects require a lot of CPU cost (to compute each rect) and memory. Therefore, TSFTextStore will use insertion point relative query for them bug 1286
157. Then, it can retrieve expected character's rect even if the cache of TSFTextStore is different from the actual contents because TIP typically needs caret position's character rect (for a popup to indicate current input mode or next word suggestion list) or first character rect of the target clause of current composition (for a candidate list window of conversion). Mac Both IME and key events ...
AddonManager
T_ENABLE Enabling the add-on will require a restart. OP_NEEDS_RESTART_DISABLE Disabling the add-on will require a restart. OP_NEEDS_RESTART_UNINSTALL Uninstalling the add-on will require a restart. OP_NEEDS_RESTART_INSTALL Installing the add-on will require a restart. Installation scopes Constant Value Description SCOPE_ALL
15 A combination of all the installation scopes. SCOPE_APPLICATION 4 This add-on is a part of the current application (Installed and owned by Firefox). SCOPE_PROFILE 1 This add-on is installed in the current profile directory. SCOPE_SYSTEM 8 This add-on is installed somewhere global to the system (installed for all users of the computer). SCOP...
DeferredTask.jsm
have to rewrite data very soon afterwards. With DeferredTask, the task is delayed by a few milliseconds and, should a new change to the data occur during this period, only the final version of the data is actually written; a further grace delay is added to take into account other changes. The DeferredTask constructor Requires Gecko 18.0(Firefox 18.0 / Thunderbird 18.0 / SeaMonkey 2.
15) If you have a function call you want to defer for two seconds, you can do so using the DeferredTask constructor, like this: var task = new DeferredTask(myFunction, 2000); You can also pass a generator function as the first argument of constructor. Method overview bool isPending();Obsolete since Gecko 28 void start();Obsolete since Gecko 28 void flush();Obsolete...
Dict.jsm
The Dict.jsm JavaScript code module offers routines for managing dictionaries of key/value pairs. ...
ISO8601DateUtils.jsm
DateUtils object it exports. Using the ISO 8601 date utilities To convert a date string into a Date object, simply use: dateObj = ISO8601DateUtils.parse(dateString); To convert a Date object into a date string: dateString = ISO8601DateUtils.create(dateObj); Method overview String create(aDate); Date parse(aDateString); Methods create Creates an ISO 8601 format date string, e.g. "2010-05-
15T13:45:00Z", from a JavaScript Date object. String create( aDate ); Parameters aDate A JavaScript Date object to translate into an ISO 8601 format string. Return value An ISO 8601 format date string. parse Converts an ISO 8601 format date string into a JavaScript Date object. Date parse( aDateString ); Parameters aDateString An ISO 8601 format date string. Return value A JavaScript Date ...
OS.File.Info
nAttributes hidden Boolean readOnly Boolean system Boolean MacOS X macBirthDate A Date representing the time at which the file was created. May not be exact on all file systems. (As of Firefox 38 this attribute is not found, see screen shots below, Bugzilla :: Bug 1
156060) Screenshot of Info object in Variable Viewer MacOSX 10.10.1 Ubuntu 14.04.1 Windows 8.1 See Also OS.File.DirectoryIterator.Entry ...
Deferred
tion handling. Note: This argument should not be a promise. Specifying a rejected promise would make the rejection reason equal to the rejected promise itself, and not its rejection reason. Backwards and forwards compatible helper This Deferred function can be used for backwards and forwards compatibility, due to a change that took place in Firefox 30. ...
Index
e Localization After all of your hard work localizing we're sure that you not only want to see your work but you want to make sure it's accurate! If you don't have a lot of experience with code, you might even be concerned that you've broken something (oops!). Now we'll walk you through performing some quality assurance testing on your work to make sure you're on the right track.
15 Release phase Localization You've made it! You've setup up your local and remote environments, you've selected your L10n tools and projects, done some localization and even some testing! Now you're ready for the final phase: becoming an official L10n release. Here, we'll continue to stay true to the original intent of this guide and only present you with the technical information yo...
QA phase
shing to http://hg.mozilla.org/l10n-central/x-testing searching for changes http authorization required realm: hg.mozilla.org HTTP user: your_id password: After you enter your account information, the changeset will be pushed. adding changesets adding manifests adding file changes added 1 changesets with 2 changes to 2 files bb/acl: your_id is allowed. accepted payload. quota: 979.7 KB in use,
150.0 MB available (0.64% used) Your changeset has been successfully pushed to your repository! As you begin to move through your translations, you should commit the changes locally and push your work to this experimental repository. For instance, if you have finished translating all the .dtd and .properties files in your x-testing/browser/chrome/browser/ directory, then you should run these comm...
SVN for Localizers
to the repository here, you will be asked for your LDAP login credentials. The -m parameter followed by some text within double quotes (") will be pushed along with your changes. Within the double quotes you should briefly describe your changes so that everyone can see what you contributed. You can also double check your changes using the ViewVC interface. After you commit your changes, wait
15 minutes and check the staging website for your locale. Your recent changes should now be visible online. You will have the chance to see how the localized website will look when it's pushed to prod (i.e., a website that regular visitors will see). When localizing websites, l10n-drivers will always add needed files to your repository or update your files with new strings in English. It's very ...
Uplifting a localization from Central to Aurora
So yes, you need to merge those two. hg merge If this just passes, you want to commit, and you probably want to use a commit message like "merging central and aurora". You can safely push this to l10n-central already, in particular if you don't plan ...
Various MathML Tests
rror>, <mtext>: This is a text in mtext This is a text in merror Testing <maction>: Click to toggle between expressions, and watch the status line onmouseover/onmouseout: statusline#First Expression First Expression statusline#Second Expression Second Expression statusline#And so on... And so on.. Click the expression below to see several definitions of pi: ? = 3.14
159265358... ? = 2i Log 1-i 1+i ? = 2 . 2 2 . 2 2 + 2 . 2 2 + 2 + 2 ... ? 4 = 1 2 + 12 2 + 32 2 + 52 2 + 72 2+... Thomson scattering theory d 2 P d ? s d ? s = r e 2 ? V < S i > d 3 r ? | e ^ . ? <-> . e ^ | 2 ? 2 f ? ( k . v - ? ) d 3 v = r e 2 ? V < S i ...
Using the viewport meta tag to control layout on mobile browsers
obile devices are the same width; you should make sure that your pages work well in a large variation of screen sizes and orientations. The default pixel ratio depends on the display density. On a display with density less than 200dpi, the ratio is 1.0. On displays with density between 200 and 300dpi, the ratio is 1.5. For displays with density over 300dpi, the ratio is the integer floor(density/
150dpi). Note that the default ratio is true only when the viewport scale equals 1. Otherwise, the relationship between CSS pixels and device pixels depends on the current zoom level. Viewport width and screen width Sites can set their viewport to a specific size. For example, the definition "width=320, initial-scale=1" can be used to fit precisely onto a small phone display in portrait mode. This...
Mozilla DOM Hacking Guide
alse and -1 is returned. static inline PRBool IsReadonlyReplaceable(jsval id) { ... }: help me! static inline PRBool IsWritableReplaceable(jsval id) { ... }: help me! nsresult doCheckPropertyAccess(...): help me! (bug 90757) static JSClass sDOMConstructorProtoClass: XPConnect fu to expose the DOM objects constructors to JavaScript. static JSFunctionSpec sDOMJSClass_methods[];: help me! (bug 9
1557) static nsIXPConnect *sXPConnect: Used to call nsIXPConnect methods that we need. Initialized in Init(). static nsIScriptSecurityManager *sSecMan: Used by the DOM security engine. Initialized in Init(). static nsresult DefineStaticJSVals(JSContext *cx);: Used to define all the static JSString data members of nsDOMClassInfo. static PRBool sIsInitialized: Keeps track of wether Class Info wa...
Mozilla Quirks Mode Behavior
CSS parser accepts colors not beginning with #, except in shorthands. 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). In quirks mode, the CSS parser allows {} around the contents of style attributes (bug 99554). This behavior is being removed in Firefox 27, for interoperability. (bug 9
15053) An empty string for the background attribute sets the background URL to empty only in quirks mode. The topmargin, bottommargin, leftmargin, and rightmargin attributes on BODY are supported only in quirks mode (bug 9258). Obsolete since Gecko 35 (Firefox 35.0 / Thunderbird 35.0 / SeaMonkey 2.32) (bug 95530) This quirk is now HTML5 conform and has been adopted in standards mode. The scroll...
Activity Monitor, Battery Status Menu and top
mmand,cpu,idlew,power -o power -d Note: -a and -e can be used instead of -d to get different counting modes. See the man page for details. It will show periodically-updating data like the following. PID COMMAND %CPU IDLEW POWER 50300 firefox 12.9 278 26.6 76256 plugin-container 3.4
159 11.3
151 coreaudiod 0.9 68 4.3 76505 top 1.5 1 1.6 76354 Activity Monitor 1.0 0 1.0 The PID, COMMAND and %CPU columns are self-explanatory. The IDLEW column is the number of "package idle exit" wakeups. The POWER column's value is computed by the same f...
Investigating leaks using DMD heap scan mode
lector log. If you are investigating a leak of www.example.com, then from $logdir you can do "grep nsGlobalWindow cc-edges* | grep example.com". This looks through all of the windows in all of the CC logs (which may leaked, this late in shutdown), and then filters out windows where the URL contains example.com. The result of that grep will contain output that looks something like this: cc-edges.
15873.log:0x7f0897082c00 [rc=1285] nsGlobalWindowInner # 2147483662 inner https://www.example.com/ * cc-edges.
15873.log: The first part is the file name where it was found.
15873 is the PID of the process that leaked. You'll want to write down the name of the file and the PID. Let's call the file $cclog and the pid $pid. * 0x7f0897082c00: This is the address of the leaking window. You'll also want...
Gecko Profiler FAQ
vtune on Windows, Instruments on OSX, and perf/Zoom on Linux.) One workaround is to break the hot function into several explicitly-non-inline helpers, recompile, and re-profile. This can change some performance characteristics, but is a decent way to get a sense of which parts of a large function are expensive. How to profile startup code that regresses just a little (<10-
15ms ts_paint/tpaint) [mstange] We currently don't have a good way to do that. You can write your own tools to assist you in this process, though. I did something like this a few years ago with the old profiler and I think something similar would work here: I think there are three main challenges here. You need deterministic profiles that can be compared meaningfully, you nee...
Leak Gauge
1 DOM Windows Leaked 0 out of 44 documents Leaked 0 out of 3 docshells Leaked content nodes in 0 out of 0 documents If there are leaks, output will look like the following. Results of processing log leak2.log : Leaked outer window 2c6e410 at address 2c6e410. Leaked outer window 2c6ead0 at address 2c6ead0. Leaked inner window 2c6ec80 (outer 2c6ead0) at address 2c6ec80. Summary: Leaked 13 out of
15 DOM Windows Leaked 35 out of 46 documents Leaked 4 out of 4 docshells Leaked content nodes in 42 out of 53 documents If you see such a results, please file a bug. ...
tools/power/rapl
does not have APIs that allow easy access to the relevant model-specific registers. Output The following is 10 seconds of output from a default invocation of rapl. total W = _pkg_ (cores + _gpu_ + other) + _ram_ W #01 5.17 W = 1.78 ( 0.12 + 0.10 + 1.56) + 3.39 W #02 9.43 W = 5.44 ( 1.44 + 1.20 + 2.80) + 3.98 W #03 14.26 W = 10.21 ( 5.47 + 0.19 + 4.55) + 4.04 W #04 10.02 W = 6.
15 ( 2.62 + 0.43 + 3.10) + 3.86 W #05 14.63 W = 10.43 ( 4.41 + 0.81 + 5.22) + 4.19 W #06 11.16 W = 6.90 ( 1.91 + 1.68 + 3.31) + 4.26 W #07 5.40 W = 1.97 ( 0.20 + 0.10 + 1.67) + 3.44 W #08 5.17 W = 1.76 ( 0.07 + 0.08 + 1.60) + 3.41 W #09 5.17 W = 1.76 ( 0.09 + 0.08 + 1.58) + 3.42 W #10 8.13 W = 4.40 ( 1.55 + 0.11 + 2.74) + 3.73 W Things to note include the following. ...
A brief guide to Mozilla preferences
xisting profiles will not be affected. This method is considered user-hostile. Any use of this technique by software such as Firefox extension to override normal user preference will result in being added to the Firefox blocklist or the preferences being forcibly removed. Note: because of abuse of user.js preferences, support for user.js may be removed in a future version of Firefox. See bug
1543752. Sticky Preferences Sticky preferences were introduced in Firefox 40 via bug 1098343. Sticky preferences are created when they are defined using sticky_pref(). These preferences act as default preferences but whenever a value is created for the preference, that value is always written even when it matches the default. Sticky preferences are generally used for preferences that have a dif...
browser.download.lastDir.savePerSite
browser.download.lastDir.savePerSite controls whether the directory preselected in the file picker for saving a file download is being remembered on a per-website (host) base. If set to true, the data is stored as content preference. Type:boolean Default value:true Exists by default: no Application support:Firefox 11.0 Status: Active; last updated 2012-02-
15 Introduction: Pushed to Nightly on 2011-12-11 Bugs: bug 702748 Values true (default) The last used directory for the website (host) serving the file for download will be preselected in the file picker. If no download directory for the current website has been stored, browser.download.lastDir will be used. false The last used directory for any download (stored in browser.download.lastDir) will be the preselected ...
browser.search.context.loadInBackground
her a search from the context menu with "Search <search engine> for <selected text>" opening a new tab will give focus to it and load it in the foreground or keep focus on the current tab and open it in the background. Type:boolean Default value:false Exists by default: yes Application support: Firefox 13.0 Status: Active; last updated 2012-02-17 Introduction: Pushed to Nightly on 2012-02-
15 Bugs: bug 727131 Values true New tab with search results will be opened in the background, focus stays on the current tab. false (default) New tab with search results will be opened in the foreground. ...
dom.event.clipboardevents.enabled
ons if the user copies, pastes, or cuts something from a web page, and it lets them know which part of the page had been selected. The emitting of the oncopy, oncut and onpaste events are controlled by this preference. Type:boolean Default value:true Exists by default: no Application support: Gecko 13.0 (Firefox 13.0 / Thunderbird 13.0 / SeaMonkey 2.10) Status: Active; last updated 2012-02-
15 Introduction: Pushed to Nightly on 2012-02-14 Bugs: bug 542938 Values true (default) The oncopy, oncut and onpaste events are enabled for web content. false The oncopy, oncut and onpaste events are disabled for web content. ...
ui.tooltipDelay
ui.tooltipDelay stores the delay in milliseconds between the mouse stopping over an element and the appearing of its tooltip. Type:integer Default value:500 Exists by default: no Application support: Gecko 11.0 (Firefox 11.0 / Thunderbird 11.0 / SeaMonkey 2.8) Status: Active; last updated 2012-02-21 Introduction: Pushed to Nightly on 2011-12-
15 Bugs: bug 204786 Values integer (milliseconds, default: 500) The time for delay between the mouse stopping over the element and the tooltip appearing is stored in milliseconds and the default value is 500ms. ...
view_source.syntax_highlight
The preference view_source.syntax_highlight controls whether markup in the view source view is syntax highlighted. Type:boolean Default value: true Exists by default: yes Application support:Firefox 1.0 Status: Active Introduction: Bugs: bug 52
154 Values true (default) Syntax hightlighting is enabled. false Syntax hightlighting is disabled. ...
Debugging out-of-memory problems
aking temporary memory spikes difficult to diagnose. This article explains how to debug such problems. Out-of-memory exceptions from JS Setting memory.dump_reports_on_oom in about:config to true will cause the browser to automatically write about:memory dumps to a temp file printed to the Browser Console (note: not Web Console) when an OOM crash is encountered. For more information, see bug 9694
15. Out-of-memory crashes In some cases, running out of memory causes the browser to crash. Ideally, memory.dump_reports_on_oom would generate an about:memory dump, but it does not currently. Firefox Android On Firefox Android, an about:memory dump may be triggered from a connect desktop machine with the command: adb shell am broadcast -a org.mozilla.gecko.MEMORY_DUMP The location of the dum...
Midas
ent becomes editable, authors often load the editable document into an IFRAME and do the bulk of the scripting in the parent document. According to standards, The IFRAME element has the contentDocument property that refers to the document in the inline frame. It also has a property called contentWindow that refers to the window object inside the inline frame. This also avoids problems with bug 198
155. In addition to the built-in commands, advanced editing can be done by manipulating the Selection and range objects. It is beneficial to be familiar with these objects when working with an editable document. Examples This example shows the basic structure described in the Notes section : <html> <head> <title>Simple Edit Box</title> </head> <body> <iframe id="MidasForm" src="abou...
NSPR LOG MODULES
NSPR's log service at execution time. These controls should be set in the NSPR_LOG_MODULES environment variable at execution time to affect NSPR's log service for your application. all The name all enables all log modules. To enable all log module calls to PR_LOG, set the variable as follows: set NSPR_LOG_MODULES=all:5 timestamp Including timestamp results in a timestamp of the form "20
15-01-
15 21:24:26.049906 UTC - " prefixing every logged line. append Including append results in log entries being appended to the existing contents of the file referenced by NSPR_LOG_FILE. If not specified, the existing contents of NSPR_LOG_FILE will be lost as a new file is created with the same filename. sync The name sync enables unbuffered logging. This ensures that all log messages are fl...
Cryptography functions
_IsReadOnly MXR 3.2 and later PK11_IsRemovable MXR 3.12 and later PK11_IVFromParam MXR 3.2 and later PK11_KeyGen MXR 3.2 and later PK11_LinkGenericObject MXR 3.9.2 and later PK11_ListCerts MXR 3.2 and later. Updated 3.8 with new options. ...
HTTP delegation
wo possible solutions to this limitation. Instead of improving the simple HTTP client in NSS, the NSS team has decided to provide an NSS API to register application callback functions. If provided by the application, NSS will use the registered HTTP client for querying an OSCP responder. This NSS feature is currently targeted to first appear in NSS version 3.11.1. More details can be found in bug
152426. In order to use the HTTP Delegation feature in your NSS-based application, you need to implement several callback functions. Your callback functions might be a full implementation of a HTTP client. Or you might choose to leverage an existing HTTP client library and implement the callback functions as a thin layer that forwards requests from NSS to the HTTP client library. To learn about all ...
HTTP delegation
wo possible solutions to this limitation. Instead of improving the simple HTTP client in NSS, the NSS team has decided to provide an NSS API to register application callback functions. If provided by the application, NSS will use the registered HTTP client for querying an OSCP responder. This NSS feature is currently targeted to first appear in NSS version 3.11.1. More details can be found in bug
152426. In order to use the HTTP Delegation feature in your NSS-based application, you need to implement several callback functions. Your callback functions might be a full implementation of a HTTP client. Or you might choose to leverage an existing HTTP client library and implement the callback functions as a thin layer that forwards requests from NSS to the HTTP client library. To learn about all ...
Build instructions for JSS 4.3.x
tory path that doest not have spaces. Unix setenv JAVA_HOME /usr/local/jdk1.5.0 (or wherever your JDK is installed) Windows set JAVA_HOME=c:\programs\jdk1.5.0 (or wherever your JDK is installed) Windows (Cygnus) JAVA_HOME=/cygdrive/c/programs/jdk1.5.0 (or wherever your JDK is installed) export JAVA_HOME Windows build Configurations WINNT vs WIN95 As of NSS 3.
15.4, NSPR/NSS/JSS build generates a "WIN95" configuration by default on Windows. We recommend most applications use the "WIN95" configuration. If you want JSS to be used with your applet and the Firefox browser than you must build WIN95. (See JSS FAQ) The "WIN95" configuration supports all versions of Windows. The "WIN95" name is historical; it should have been named "WIN32". To generate a "WINNT" ...
NSS_3.11.10_release_notes.html
SSL_ForceHandshake Bug 403240: threads hanging in nss_InitLock Bug 403888: memory leak in trustdomain.c Bug 416067: certutil -L -h token doesn't report token authentication failure Bug 417637: tstclnt crashes if -p option is not specified Bug 421634: Don't send an SNI Client Hello extension bearing an IPv6 address Bug 422918: Add VeriSign Class 3 Public Primary CA - G5 to NSS Bug 424
152: Add thawte Primary Root CA to NSS Bug 424169: Add GeoTrust Primary Certification Authority root to NSS Bug 425469: Add multiple new roots: Geotrust Bug 426568: Add COMODO Certification Authority certificate to NSS Bug 431381: Add Network Solutions Certificate Authority root to NSS Bug 431621: Add DigiNotar Root CA root to NSS Bug 431772: add network solutions and diginotar root cert...
NSS_3.12.2_release_notes.html
NSS 3.12.2. Bug 200704: PKCS11: invalid session handle 0 Bug 205434: Fully implement new libPKIX cert verification API from bug 294531 Bug 302670: Use the installed libz.so where available Bug 305693: shlibsign generates PQG for every run Bug 311483: exposing includeCertChain as a parameter to SEC_PKCS12AddCertAndKey Bug 390527: get rid of pkixErrorMsg variable in PKIX_Error Bug 39
1560: libpkix does not consistently return PKIX_ValidateNode tree that truly represent failure reasons Bug 408260: certutil usage doesn't give enough information about trust arguments Bug 412311: Replace PR_INTERVAL_NO_WAIT with PR_INTERVAL_NO_TIMEOUT in client initialization calls Bug 423839: Add multiple PKCS#11 token password command line option to NSS tools. Bug 432260: [[@ pkix_pl_HttpD...
NSS 3.14.2 release notes
uses the optimized code path, reducing the CPU cycles per byte to 1/20 of what was required before the patch (https://bugzilla.mozilla.org/show_bug.cgi?id=805604 and https://crypto.stanford.edu/RealWorldCrypto/slides/gueron.pdf). Support for other platforms, such as Windows, will follow in a future NSS release. (https://bugzilla.mozilla.org/show_bug.cgi?id=540986) SQLite has been updated to 3.7.
15. Note: please apply the patch in https://bugzilla.mozilla.org/show_bug.cgi?id=837799 if you build NSS with the system SQLite library and your system SQLite library is older than 3.7.
15. Bug 816853 - When using libpkix for certificate validation, applications may now supply additional application-defined trust anchors to be used in addition to those from loaded security tokens, rather than as an...
NSS 3.17.1 release notes
.17.1 requires NSPR 4.10.7 or newer. NSS 3.17.1 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_17_1_RTM/src/ Security Advisories The following security-relevant bugs have been resolved in NSS 3.17.1. Users are encouraged to upgrade immediately. Bug 1064636 - (CVE-2014-
1568) RSA Signature Forgery in NSS. See also MFSA 2014-73 for details. New in NSS 3.17.1 This patch release adds new functionality and fixes a bug that caused NSS to accept forged RSA signatures. A new symbol, _SGN_VerifyPKCS1DigestInfo is exported in this release. As with all exported NSS symbols that have a leading underscore '_', this is an internal symbol for NSS use only. Applications that ...
NSS 3.19.1 release notes
are described in the "Bugs Fixed" section below. Distribution Information The HG tag is NSS_3_19_1_RTM. NSS 3.19.1 requires NSPR 4.10.8 or newer. NSS 3.19.1 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_19_1_RTM/src/ Security Fixes in NSS 3.19.1 Bug 1138554 / CVE-20
15-4000 - The minimum strength of keys that libssl will accept for finite field algorithms (RSA, Diffie-Hellman, and DSA) have been increased to 1023 bits. New in NSS 3.19.1 New Functionality No new functionality is introduced in this release. This patch release includes a fix for the recently published logjam attack. Notable Changes in NSS 3.19.1 NSS reports the bit length of keys more accu...
NSS 3.19.2.2 release notes
update to NSS 3.20.2, NSS 3.21, or a later release.) Distribution Information The HG tag is NSS_3_19_2_2_RTM. NSS 3.19.2.2 requires NSPR 4.10.10 or newer. NSS 3.19.2.2 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_19_2_2_RTM/src/ Security Fixes in NSS 3.19.2.2 Bug 1
158489 / CVE-20
15-7575 - Prevent MD5 Downgrade in TLS 1.2 Signatures. New in NSS 3.19.2.2 New Functionality No new functionality is introduced in this release. Acknowledgements The NSS development team would like to thank Karthikeyan Bhargavan from INRIA for responsibly disclosing the issue in Bug 1
158489. Compatibility NSS 3.19.2.2 shared libraries are backward compatible with all older NSS...
NSS 3.19.2 release notes
ality is introduced in this release. Notable Changes in NSS 3.19.2 Bug 1172128 - In NSS 3.19.1, the minimum key sizes that the freebl cryptographic implementation (part of the softoken cryptographic module used by default by NSS) was willing to generate or use was increased - for RSA keys, to 512 bits, and for DH keys, 1023 bits. This was done as part of a security fix for Bug 1138554 / CVE-20
15-4000. Applications that requested or attempted to use keys smaller then the minimum size would fail. However, this change in behaviour unintentionally broke existing NSS applications that need to generate or use such keys, via APIs such as SECKEY_CreateRSAPrivateKey or SECKEY_CreateDHPrivateKey. In NSS 3.19.2, this change in freebl behaviour has been reverted. The fix for Bug 1138554 has bee...
NSS 3.20.2 release notes
NSS 3.20.2 are described in the "Security Fixes" section below. Distribution Information The HG tag is NSS_3_20_2_RTM. NSS 3.20.2 requires NSPR 4.10.10 or newer. NSS 3.20.2 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_20_2_RTM/src/ Security Fixes in NSS 3.20.2 Bug 1
158489 / CVE-20
15-7575 - Prevent MD5 Downgrade in TLS 1.2 Signatures. New in NSS 3.20.2 New Functionality No new functionality is introduced in this release. Acknowledgements The NSS development team would like to thank Karthikeyan Bhargavan from INRIA for responsibly disclosing the issue in Bug 1
158489. Compatibility NSS 3.20.2 shared libraries are backward compatible with all older NSS 3.x...
NSS 3.22 release notes
22, which is a minor release. Distribution Information The HG tag is NSS_3_22_RTM. NSS 3.22 requires NSPR 4.11 or newer. NSS 3.22 source distributions are available on ftp.mozilla.org for secure HTTPS download: Source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_22_RTM/src/ New in NSS 3.22 New Functionality RSA-PSS signatures are now supported (bug 12
15295) New functions PK11_SignWithMechanism() and PK11_SignWithMechanism() are provided to allow RSA keys to be used with PSS. Pseudorandom functions based on hashes other than SHA-1 are now supported with PBKDF (bug 554827). PK11_CreatePBEV2AlgorithmID() now supports SEC_OID_PKCS5_PBKDF2 with cipherAlgTag and prfAlgTag set to SEC_OID_HMAC_SHA256, SEC_OID_HMAC_SHA224, SEC_OID_HMAC...
NSS 3.56 release notes
and mulq optimizations on x86-64 MacOS. Bug 1654142 - Add CPU feature detection for Intel SHA extension. Bug 1648822 - Add stricter validation of DH keys in FIPS mode. Bug 1656986 - Properly detect arm64 during GYP build architecture detection. Bug 1652729 - Add build flag to disable RC2 and relocate to lib/freebl/deprecated. Bug 1656429 - Correct RTT estimate used in 0-RTT anti-replay. Bug
1588941 - Send empty certificate message when scheme selection fails. Bug 1652032 - Fix failure to build in Windows arm64 makefile cross-compilation. Bug 1625791 - Fix deadlock issue in nssSlot_IsTokenPresent. Bug 1653975 - Fix 3.53 regression by setting "all" as the default makefile target. Bug 1659792 - Fix broken libpkix tests with unexpired PayPal cert. Bug 1659814 - Fix interop.sh failures...
Release notes for recent versions of NSS
NSS 3.17.4 release notes NSS 3.17.3 release notes NSS 3.17.2 release notes NSS 3.17.1 release notes NSS 3.17 release notes NSS 3.16.6 release notes NSS 3.16.5 release notes NSS 3.16.4 release notes NSS 3.16.3 release notes NSS 3.16.2.3 release notes NSS 3.16.2.2 release notes NSS 3.16.2.1 release notes NSS 3.16.2 release notes NSS 3.16.1 release notes NSS 3.16 release notes NSS 3.
15.5 release notes NSS 3.
15.4 release notes NSS 3.
15.3.1 release notes NSS 3.
15.3 release notes NSS 3.
15.2 release notes NSS 3.
15.1 release notes NSS 3.
15 release notes NSS 3.14.5 release notes NSS 3.14.4 release notes NSS 3.14.3 release notes NSS 3.14.2 release notes NSS 3.14.1 release notes NSS 3.14 release notes Older release notes Future releases Release planning is done on the M...
NSS Sample Code Sample_1_Hashing
if (PORT_Strcasecmp(hashName, HASH_NAMES[i].hashName) == 0) { hashtag = HASH_NAMES[i].oid; break; } } return hashtag; } /* * Newline */ static void Newline(PRFileDesc* out) { PR_fprintf(out, "\n"); } /* * PrintAsHex */ void PrintAsHex(PRFileDesc* out, unsigned char *data, unsigned int len) { unsigned i; int column; unsigned int limit =
15; unsigned int level = 1; column = level; if (!len) { PR_fprintf(out, "(empty)\n"); return; } for (i = 0; i < len; i++) { if (i != len - 1) { PR_fprintf(out, "%02x:", data[i]); column += 3; } else { PR_fprintf(out, "%02x", data[i]); column += 2; break; } if (column > 7...
NSS Sample Code Sample_2_Initialization of NSS
eaders */ #include <prthread.h> #include <plgetopt.h> #include <prprf.h> /* NSS headers */ #include <nss.h> #include <pk11func.h> #include "util.h" /* Print a usage message and exit */ static void Usage(const char *progName) { fprintf(stderr, "\nUsage: %s -d <dbdirpath> [-p <plainpasswc>]" " [-f <passwdffile>]\n\n", progName); fprintf(stderr, "%-
15s Specify a DB directory path\n\n", "-d <dbdirpath>"); fprintf(stderr, "%-
15s Specify a plaintext password\n\n", "-p <plainpasswc>"); fprintf(stderr, "%-
15s Specify a password file\n\n", "-f <plainpasswc>"); exit(-1); } /* Initialize the slot password */ char *InitSlotPassword(PK11SlotInfo *slot, PRBool retry, void *arg) { FILE *input; ...
NSS Sample Code Utilities_1
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 PrintAsHex(PRFileDesc* out, const 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 > 7...
Hashing - sample 1
if (PORT_Strcasecmp(hashName, HASH_NAMES[i].hashName) == 0) { hashtag = HASH_NAMES[i].oid; break; } } return hashtag; } /* * Newline */ static void Newline(PRFileDesc* out) { PR_fprintf(out, "\n"); } /* * PrintAsHex */ void PrintAsHex(PRFileDesc* out, unsigned char *data, unsigned int len) { unsigned i; int column; unsigned int limit =
15; unsigned int level = 1; column = level; if (!len) { PR_fprintf(out, "(empty)\n"); return; } for (i = 0; i < len; i++) { if (i != len - 1) { PR_fprintf(out, "%02x:", data[i]); column += 3; } else { PR_fprintf(out, "%02x", data[i]); column += 2; break; } if (column > 7...
Utilities for nss samples
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 PrintAsHex(PRFileDesc* out, const 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 > 7...
sample1
ecmp(hashName, HASH_NAMES[i].hashName) == 0) { hashtag = HASH_NAMES[i].oid; break; } } return hashtag; } /* Newline */ static void Newline(PRFileDesc* out) { PR_fprintf(out, "\n"); } /* PrintAsHex */ void PrintAsHex(PRFileDesc* out, unsigned char *data, unsigned int len) { unsigned i; int column; unsigned int limit =
15; unsigned int level = 1; column = level; if (!len) { PR_fprintf(out, "(empty)\n"); return; } for (i = 0; i < len; i++) { if (i != len - 1) { PR_fprintf(out, "%02x:", data[i]); column += 3; } else { PR_fprintf(out, "%02x", data[i]); column += 2; break; } ...
sample2
On earlier versions of nss that * don't support error tables, PR_ErrorToString will return "Unknown code". */ #ifndef PORT_ErrorToString #define PORT_ErrorToString(err) PR_ErrorToString((err), PR_LANGUAGE_I_DEFAULT) #endif /* sample 6 commands */ typedef enum { GENERATE_CSR, ADD_CERT_TO_DB, SAVE_CERT_TO...
Python binding for NSS
ssl.SSL_LIBRARY_VERSION_TLS_1_2 ssl.SSL_LIBRARY_VERSION_TLS_1_3 ssl.ssl2 ssl.ssl3 ssl.tls1.0 ssl.tls1.1 ssl.tls1.2 ssl.tls1.3 The following methods were missing thread locks, this has been fixed. nss.nss_initialize nss.nss_init_context nss.nss_shutdown_context Release 0.
15.0 Release Date 2014-09-09 SCM Tag PYNSS_RELEASE_0_
15_0 Source Download https://ftp.mozilla.org/pub/mozilla.org/security/python-nss/releases/PYNSS_RELEASE_0_
15_0/src/ Change Log The primary enhancements in this version was fixing access to extensions in a CertificateRequest and giving access to CertificateRequest attributes. There is a bug in ...
Migration to HG
make nss_build_all Note that the JSS project has been given a private copy of the former mozilla/security/coreconf directory, allowing it to remain stable, and only update its build system as necessary. Because of the changes described above, we have decided to use a new series of (minor) version numbers. The first releases using the new code layout will be NSPR 4.10 and NSS 3.
15 ...
NSS environment variables
HREADS Boolean (1 to enable) On platforms where POSIX threads are available, but are not the OS'es preferred threads library, this tells NSS and NSPR to build using pthreads. Before 3.0 NSS_NO_PKCS11_BYPASS String (1 to enable) Disables at compile-time the NS ssl code to bypass the pkcs11 layer. When set the SSLBYPASS run-time variable won't take effect Before 3.
15 ...
NSS functions
_IsReadOnly MXR 3.2 and later PK11_IsRemovable MXR 3.12 and later PK11_IVFromParam MXR 3.2 and later PK11_KeyGen MXR 3.2 and later PK11_LinkGenericObject MXR 3.9.2 and later PK11_ListCerts MXR 3.2 and later. Updated 3.8 with new options. ...
NSS tools : crlutil
obsolete -u url Specify the url. CRL Generation script syntax CRL generation script file has the following syntax: * Line with comments should have # as a first symbol of a line * Set "this update" or "next update" CRL fields: update=YYYYMMDDhhmmssZ nextupdate=YYYYMMDDhhmmssZ Field "next update" is optional. Time should be in GeneralizedTime format (YYYYMMDDhhmmssZ). For example: 20050204
153000Z * Add an extension to a CRL or a crl certificate entry: addext extension-name critical/non-critical [arg1[arg2 ...]] Where: extension-name: string value of a name of known extensions. critical/non-critical: is 1 when extension is critical and 0 otherwise. arg1, arg2: specific to extension type extension parameters addext uses the range that was set earlier by addcert and will install ...
NSS tools : ssltab
] --> [ SSLRecord { 0: 17 03 00 01 1f |..... type = 23 (application_data) version = { 3,0 } length = 287 (0x11f) < encrypted > } ] <-- [ SSLRecord { 0: 17 03 00 00 a0 |.... type = 23 (application_data) version = { 3,0 } length = 160 (0xa0) < encrypted > } ] <-- [ SSLRecord { 0: 17 03 00 00 df |....ss type = 23 (application_data) version = { 3,0 } length = 223 (0xdf) < encrypted > } SSLRecord { 0:
15 03 00 00 12 |..... type = 21 (alert) version = { 3,0 } length = 18 (0x12) < encrypted > } ] Server socket closed. Example 2 The -s option turns on SSL parsing. Because the -x option is not used in this example, undecoded values are output as raw data. The output is routed to a text file. $ ssltap -s -p 444 interzone.mcom.com:443 > s.txt Output Connected to interzone.mcom.com:443 --> [ alloclen = ...
NSS tools : ssltap
] --> [ SSLRecord { 0: 17 03 00 01 1f |..... type = 23 (application_data) version = { 3,0 } length = 287 (0x11f) < encrypted > } ] <-- [ SSLRecord { 0: 17 03 00 00 a0 |.... type = 23 (application_data) version = { 3,0 } length = 160 (0xa0) < encrypted > } ] <-- [ SSLRecord { 0: 17 03 00 00 df |....ss type = 23 (application_data) version = { 3,0 } length = 223 (0xdf) < encrypted > } SSLRecord { 0:
15 03 00 00 12 |..... type = 21 (alert) version = { 3,0 } length = 18 (0x12) < encrypted > } ] Server socket closed. Example 2 The -s option turns on SSL parsing. Because the -x option is not used in this example, undecoded values are output as raw data. The output is routed to a text file. $ ssltap -s -p 444 interzone.mcom.com:443 > s.txt Output Connected to interzone.mcom.com:443 --> [ alloclen = ...
NSS Tools certutil
:79:7c:f6:22:a7:18:66:9f:ab:2d:33:03:ec: 63:eb:9d:0d:02:1b:da:32:ae:6c:d4:40:95:9f:b3: 44:8b:8e:8e:a3:ae:ad:08:38:4f:2e:53:e9:e1:3f: 8e:43:7f:51:61:b9:0f:f3:a6:25:1e:0b:93:74:8f: c6:13:a3:cd:51:40:84:0e:79:ea:b7:6b:d1:cc:6b: 78:d0:5d:da:be:2b:57:c2:6f Exponent: 65537 (0x10001) Signature Algorithm: PKCS #1 MD5 With RSA Encryption Signature: 44:
15:e5:ae:c4:30:2c:cd:60:89:f1:1d:22:ed:5e:5b:10:c8: 7e:5f:56:8c:b4:00:12:ed:5f:a4:6a:12:c3:0d:01:03:09:f2: 2f:e7:fd:95:25:47:80:ea:c1:25:5a:33:98:16:52:78:24:80: c9:53:11:40:99:f5:bd:b8:e9:35:0e:5d:3e:38:6a:5c:10:d1: c6:f9:54:af:28:56:62:f4:2f:b3:9b:50:e1:c3:a2:ba:27:ee: 07:9f:89:2e:78:5c:6d:46:b6:5e:99:de:e6:9d:eb:d9:ff:b2: 5f:c6:f6:c6:52:4a:d4:67:be:8d:fc:dd:52:51:8e:a2:d7:
15: ...
NSS Tools ssltap
< encrypted >}]<-- [SSLRecord { 0: 17 03 00 00 a0 |.... type = 23 (application_data) version = { 3,0 } length = 160 (0xa0) < encrypted >}]<-- [SSLRecord {0: 17 03 00 00 df |....ss type = 23 (application_data) version = { 3,0 } length = 223 (0xdf) < encrypted >}SSLRecord { 0:
15 03 00 00 12 |..... type = 21 (alert) version = { 3,0 } length = 18 (0x12) < encrypted >}]Server socket closed. Example 2 The -s option turns on SSL parsing. Because the -x option is not used in this example, undecoded values are output as raw data. The output is routed to a text file. Command ssltap.exe -s -p 444 interzone.mco...
NSS tools : crlutil
Specify the url. CRL Generation script syntax CRL generation script file has the following syntax: * Line with comments should have # as a first symbol of a line * Set "this update" or "next update" CRL fields: update=YYYYMMDDhhmmssZ nextupdate=YYYYMMDDhhmmssZ Field "next update" is optional. Time should be in GeneralizedTime format (YYYYMMDDhhmmssZ). For example: 20050204
153000Z * Add an extension to a CRL or a crl certificate entry: addext extension-name critical/non-critical [arg1[arg2 ...]] Where: extension-name: string value of a name of known extensions. critical/non-critical: is 1 when extension is critical and 0 otherwise. arg1, arg2: specific to extension type extension parameters addext uses the range that was set earlier by addcer...
NSS tools : signtool
u must have the utility in your path environment variable. You should use the zip.exe utility rather than pkzip.exe, which cannot handle long filenames. You can use a ZIP utility instead of the -Z option to package a signed archive into a JAR file after you have signed it: cd signdir zip -r ../myjar.jar * adding: META-INF/ (stored 0%) adding: META-INF/manifest.mf (deflated
15%) adding: META-INF/signtool.sf (deflated 28%) adding: META-INF/signtool.rsa (stored 0%) adding: text.txt (stored 0%) Generating the Keys and Certificate The signtool option -G generates a new public-private key pair and certificate. It takes the nickname of the new certificate as an argument. The newly generated keys and certificate are installed into the key and certifi...
NSS tools : ssltap
0: 17 03 00 00 a0 |.... type = 23 (application_data) version = { 3,0 } length = 160 (0xa0) < encrypted > } ] <-- [ SSLRecord { 0: 17 03 00 00 df |....ss type = 23 (application_data) version = { 3,0 } length = 223 (0xdf) < encrypted > } SSLRecord { 0:
15 03 00 00 12 |..... type = 21 (alert) version = { 3,0 } length = 18 (0x12) < encrypted > } ] Server socket closed. Example 2 The -s option turns on SSL parsing. Because the -x option is not used in this example, undecoded values are output as raw data. The output is routed to a text file. $ ssltap -s -p 444 inte...
Rhino downloads archive
06-09-10 bug 343976 rhino1_6R4.zip Rhino 1.6R3 2006-07-24 Changes in 1.6R3 rhino1_6R3.zip Rhino 1.6R2 2005-09-19 Changes in 1.6R2 rhino1_6R2.zip Rhino 1.6R1 2004-11-29 Changes in 1.6R1 rhino1_6R1.zip Rhino 1.5R5 2004-03-25 Changes in 1.5R5 rhino1_5R5.zip Rhino 1.5R4.1 2003-04-21 Changes in 1.5R4.1 rhino
15R41.zip Rhino 1.5R4 2003-02-10 Changes in 1.5R4 rhino
15R4.zip Rhino 1.5R3 2002-01-27 Changes in 1.5R3 rhino
15R3.zip Rhino 1.5R2 2001-07-27 Changes in 1.5R2 rhino
15R2.zip Rhino 1.5R1 2000-09-10 Changes in 1.5R1 rhino
15R1.zip Rhino 1.4R3 1999-05-10 Initial public release rhino14R3.zip Rhino 1.6R1 through...
Rhino JavaScript compiler
for more details. If optLevel is greater than zero, -debug may not be specified. -package packageName Specifies the package to generate the class into. The string packageName must be composed of valid identifier characters optionally separated by periods. -version versionNumber Specifies the language version to compile with. The string versionNumber must be one of 100, 110, 120, 130, 140,
150, 160, or 170. See JavaScript Language Versions for more information on language versions. Examples $ cat test.js java.lang.System.out.println("hi, mom!"); $ java org.mozilla.javascript.tools.jsc.Main test.js $ ls *.class test.class $ java test hi, mom! $ java org.mozilla.javascript.tools.jsc.Main -extends java.applet.Applet -implements java.lang.Runnable NervousText.js --Norrisboyd 12...
Scripting Java
t. This works just as in Java, with the use of the new operator: js> new java.util.Date() Thu Jan 24 16:18:17 EST 2002 If we store the new object in a JavaScript variable, we can then call methods on it: js> f = new java.io.File("test.txt") test.txt js> f.exists() true js> f.getName() test.txt Static methods and fields can be accessed from the class object itself: js> java.lang.Math.PI 3.14
1592653589793 js> java.lang.Math.cos(0) 1 In JavaScript, unlike Java, the method by itself is an object and can be evaluated as well as being called. If we just view the method object by itself we can see the various overloaded forms of the method: js> f.listFiles function listFiles() {/* java.io.File[] listFiles() java.io.File[] listFiles(java.io.FilenameFilter) java.io.File[] listFiles(java.io.
Rhino serialization
le in the classpath so serialization works. This isn't that interesting an example since compiling a function to a class and then loading it accomplishes the same as serializing an interpreted function, but it becomes more relevant if you wish to serialize JavaScript objects that have references to compiled functions. Original Document Information Author: Norris Boyd Last Updated Date: November
15, 2006 Copyright Information: Portions of this content are (C) 1998-2006 by individual mozilla.org contributors; content available under a Creative Commons license | Details. ...
SpiderMonkey Build Documentation
u are on Mac and getting an error similar to "checking whether the C compiler (gcc-4.2 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables." You can try configuring like so: CC=clang CXX=clang++ ../configure It is also possible that baldrdash may fail to compile with /usr/local/Cellar/llvm/7.0.1/lib/clang/7.0.1/include/inttypes.h:30:
15: fatal error: 'inttypes.h' file not found /usr/local/Cellar/llvm/7.0.1/lib/clang/7.0.1/include/inttypes.h:30:
15: fatal error: 'inttypes.h' file not found, err: true This is because, starting from Mohave, headers are no longer installed in /usr/include. Refer the release notes under Command Line Tools -> New Features The release notes also states that this compatibility package will no longer ...
Getting SpiderMonkey source code
test 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. It also changes to the SpiderMonkey directory (js/src). git clone https://github.com/mozilla/gecko-dev.git cd gecko-dev/js/src If you want a faster (about 5 times as of January 20
15) download, try doing a shallow clone (no version control history). git clone --depth 1 https://github.com/mozilla/gecko-dev.git If you have any problems check the https://wiki.mozilla.org/Github page. Getting older SpiderMonkey sources from CVS Note: You will need to explicitly fetch the JavaScript shell sources even if you currently build another Mozilla project, as there are files specific...
Bytecode Descriptions
if the returnValue is undefined and thisval is an object, store thisval in the returnValue slot. Otherwise, throw a TypeError. This is exactly what has to happen when a derived class constructor returns. thisval should be the current value of this, or MagicValue(JS_UNINITIALIZED_LEXICAL) if this is uninitialized. Implements: The [[Construct]] internal method of JS functions, steps 13 and
15. Exceptions Throw Stack: exc => Throw exc. (????)??+--+ This sets the pending exception to exc and jumps to error-handling code. If we're in a try block, error handling adjusts the stack and environment chain and resumes execution at the top of the catch or finally block. Otherwise it starts unwinding the stack. Implements: ThrowStatement Evaluation, step 3. This is also used in for-of loops...
Self-hosted builtins in SpiderMonkey
r.fun, receiver) wouldn't be guaranteed to work, because content might have changed the value of receiver.fun, so callContentFunction(receiver.fun, receiver) has to be used. Self-hosted functions by default are not constructors and do not have a prototype property, so that they meet the requirements for standard built-in functions as described in the ECMAScript Language Specification 5.1, clause
15. To make a self-hosted function a constructor, call MakeConstructible(FunctionName) after the function declaration. A prototype property can be added from the self-hosted code itself. All self-hosted functions have direct access to each other and can rely on references being stable, i.e. not changeable by client JS code. OTOH, self-hosted code doesn't have access to most of the C++-implemented ...
JS_MakeStringImmutable
g by storing it in a JavaScript object that another thread can read, the JavaScript engine automatically makes the string thread-safe.) After a successful call to JS_MakeStringImmutable, subsequent calls to JS_GetStringCharsZ on the same string are guaranteed to succeed, and subsequent calls to JS_GetStringChars on the same string are guaranteed to return a null-terminated string. See Also bug 11
15986 ...
JS_SetProperty
on-default setter to assign to v. Description JS_SetProperty assigns the value v to the property name of the object obj. It behaves like the JavaScript expression obj[name] = v. JS_SetUCProperty is the Unicode version of the function. JS_SetPropertyById is the same but takes a JS::HandleId for the property name. If obj is a Proxy, the JS_SetProperty [[Set]] internal method defined in ES20
15 (rev 29 9.5.9) is performed. If obj is a native object with custom setGeneric op, the op is called with (cx, obj, id, &v, false)). Otherwise, [[Set]] internal method defined in ES20
15 (rev 29 9.1.9) is performed. If the lookup found no property with the given name, or if it found that obj inherits such a property from a non-native object, then a new own property is added to obj, as described...
Profiling SpiderMonkey
and Callgrind. When we have JS scriptable profiling options available for all tier 1 platforms, we'll look at adding global start/stop profiling functions. If you'd like to profile something at a higher level of detail than the JS Shark functions allow, there are corresponding C functions available at the bottom of jsdbgapi.h. Costs Of Thread Safety Currently, threadsafe SpiderMonkey costs us 10-
15% on some benchmarks vs. a non-threadsafe JS shell. If you're looking to investigate that, build a standalone copy of SpiderMonkey and compare it with xpcshell. ...
SpiderMonkey 1.8.5
Stub, and user-defined functions of type JSPropertyOp (e.g. getters and setters) changed from passing jsvals to passing jsid as part of bug 549143. This bug introduced "fat" (64-bit) unboxed valued into the engine. Garbage collection JS_MarkGCThing was changed in bug 549143 to mark jsvals rather than void pointers (GC root addresses), improving the typed rooting API which was introduced in bug 565
157. A conservative stack-scanning collector was also added for SpiderMonkey 1.8.5, making the *LocalRootScope APIs obsolete; they are now NOPs. bug 614138 introduces a C++ JS::Anchor<> template class to help tie lexical scope to the conservative GC for cases where the compiler might optimize away important stack/register roots (such as when we access the jschars in a JSString). A C analogue, JS_Anc...
SpiderMonkey 1.8.7
Stub, and user-defined functions of type JSPropertyOp (e.g. getters and setters) changed from passing jsvals to passing jsid as part of bug 549143. This bug introduced "fat" (64-bit) unboxed valued into the engine. Garbage collection JS_MarkGCThing was changed in bug 549143 to mark jsvals rather than void pointers (GC root addresses), improving the typed rooting API which was introduced in bug 565
157. A conservative stack-scanning collector was also added for SpiderMonkey 1.8.5, making the *LocalRootScope APIs obsolete; they are now NOPs. Bug 614138 introduces a C++ JS::Anchor<> template class to help tie lexical scope to the conservative GC for cases where the compiler might optimize away important stack/register roots (such as when we access the jschars in a JSString). A C analogue, JS_A...
SpiderMonkey 1.8
SpiderMonkey 1.8 is the JavaScript engine that shipped in Firefox 3.0. It is much faster than SpiderMonkey 1.7 and contains a few new language features and API features, described in detail below. Please let us know about your experiences with this release by posting in the mozilla.dev.tech.js-engine newsgroup. ...
Shell global objects
If obj is given, schedule a GC of obj's zone. Returns the number of allocations before the next trigger. selectforgc(obj1, obj2, ...) Schedule the given objects to be marked in t...
TPS Tests
ress (Strictly speaking, restmail isn't required, but it will allow TPS to automatically do account confirmation steps for you. Even if you opt not to use restmail, do not use your personal firefox account, as TPS will delete and replace the data in it many times, not to mention the first run is very likely to fail, since it expects a clean start). Note: Be prepared not to use your computer for
15 or so minutes after starting a full run of TPS, as it will open and close a fairly large number of Firefox windows. Steps Get the source code Clone mozilla-central (choose your flavor): hg clone hg.mozilla.org/mozilla-central or git clone github.com/mozilla/gecko-dev cd into the tps folder cd testing/tps Create the environment I suggest ...
A Web PKI x509 certificate primer
your CA Root Update *.example.com and *.example.net below to match your domains. Assumptions: You are the domain owner of *.example.com and *.example.net. Your computer is not connected to the internet. Steps to generate your CA root certificate: Generate key "openssl genpkey -algorithm RSA -out rootkey.pem -pkeyopt rsa_keygen_bits:4096" 4096 is considered secure for the next
15 years. Generate csr "openssl req -new -key rootkey.pem -days 5480 -extensions v3_ca -batch -out root.csr -utf8 -subj '/C=US/O=Orgname/OU=SomeInternalName' Make a new Certificate Signing Request (CSR) that will be valid for
15 years. Write extensions File (openssl.root.cnf) basicConstraints = critical, CA:TRUE keyUsage = keyCertSign, cRLSign subjectKeyIdentifier = ...
Animated PNG graphics
It is intended to be a replacement for simple animated images that have traditionally used the GIF format, while adding support for 24-bit images and 8-bit transparency. APNG is a simpler alternative to MNG, providing a spec suitable for the most common usage of animated images on the Internet. ...
Querying Places
SCENDING = 8 const unsigned short SORT_BY_KEYWORD_ASCENDING = 9 const unsigned short SORT_BY_KEYWORD_DESCENDING = 10 const unsigned short SORT_BY_DATEADDED_ASCENDING = 11 const unsigned short SORT_BY_DATEADDED_DESCENDING = 12 const unsigned short SORT_BY_LASTMODIFIED_ASCENDING = 13 const unsigned short SORT_BY_LASTMODIFIED_DESCENDING = 14 const unsigned short SORT_BY_ANNOTATION_ASCENDING =
15 const unsigned short SORT_BY_ANNOTATION_DESCENDING = 16 const unsigned short RESULTS_AS_URI = 0 const unsigned short RESULTS_AS_VISIT = 1 const unsigned short RESULTS_AS_FULL_VISIT = 2 (Not yet implemented -- see bug 320831) attribute unsigned short sortingMode attribute AUTF8String sortingAnnotation attribute unsigned short resultType attribute boolean excludeItems attribute boolean exc...
Using the Places livemark service
ng its feed URI (since the contents are likely to be different given a different feed). livemarkService.setFeedURI(newLvmkId, uri("http://foo.example.com/rss.xml")); //newLvmkId = see "Create a new livemark" for more detail. Update behavior Five seconds after the browser starts up, the livemark service's update timer is started. The update timer fires immediately, and then every
15 minutes thereafter. When the update timer fires, it iterates over the list of livemarks, and will refresh a livemark *only* if it's expired. The expiration time for a livemark is determined by using information provided by the server when the feed was requested, specifically nsICacheEntryInfo.expirationTime. If no information was provided by the server, the default expiration time is 1 hour. User...
Generic factory
t res = repository->CreateInstance(kGenericFactoryCID, NULL, nsIGenericFactory::IID(), &factory); if (res == NS_OK) { factory->SetConstructor(&MyComponent::Create); } return factory; } This example assumes that the XPCOM repository is available as an interface (which it soon will be). Background (This is based on my original news posting <beard-2402991733140001@h-198-93-95-
151.mcom.com>.) We seem to be creating a huge number of different factory implementations. It seems to me that we can cut down on code size (all those QueryInterface, AddRef, Release implementations) if we just use the following class for all of the simple factories: // Idea: Why not create a generic factory facility so we can avoid // duplication of so much nsIFactory code? All we need is an al...
An Overview of XPCOM
8-bit number that uniquely identifies a class or component in much the same way that an IID uniquely identifies an interface. The CID for nsISupports looks like this: 00000000-0000-0000-c000-000000000046 The length of a CID can make it cumbersome to deal with in the code, so very often you see #defines for CIDs and other identifiers being used, as in this example: #define SAMPLE_CID \ { 0x777f7
150, 0x4a2b, 0x4301, \ { 0xad, 0x10, 0x5e, 0xab, 0x25, 0xb3, 0x22, 0xaa}} You also see NS_DEFINE_CID used a lot. This simple macro declares a constant with the value of the CID: static NS_DEFINE_CID(kWebShellCID, NS_WEB_SHELL_CID); A CID is sometimes also referred to as a class identifier. If the class to which a CID refers implements more than one interface, that CID guarantees that the class ...
Starting WebLock
PR_TRUE); // persist A complete code listing for registering WebLock as a startup observer follows: #define MOZILLA_STRICT_API #include "nsIGenericFactory.h" #include "nsCOMPtr.h" #include "nsXPCOM.h" #include "nsIServiceManager.h" #include "nsICategoryManager.h" #include "nsMemory.h" #include "nsIObserver.h" #include "nsEmbedString.h" #define WebLock_CID \ { 0x777f7
150, 0x4a2b, 0x4301, \ { 0xad, 0x10, 0x5e, 0xab, 0x25, 0xb3, 0x22, 0xaa}} #define WebLock_ContractID "@dougt/weblock" class WebLock: public nsIObserver { public: WebLock(); virtual ~WebLock(); NS_DECL_ISUPPORTS NS_DECL_NSIOBSERVER }; WebLock::WebLock() { NS_INIT_ISUPPORTS(); } WebLock::~WebLock() { } NS_IMPL_ISUPPORTS1(WebLock, nsIObserver); NS_IMETHODIMP WebLock::Observe(...
Using XPCOM Utilities to Make Things Easier
er 40. Clearly from a code maintenance point of view, this kind of reduction is outstanding. The entire source file with these macros included appears in weblock2.cpp. ...
nsIRegistry
sIEnumerator that can report the subtrees. try { st.first(); do { var data = st.currentItem(); if( data instanceof Ci.nsIRegistryNode ) print("nsIRegistryNode: " + data.nameUTF8 + " (" + data.key + ")"); st.next(); } while( Components.lastResult == 0 ); } catch(e) {} Now, the output is something like: Profiles (344) Profiles/default (530) Profiles/foo (1046) Profiles/bar (
1518) The number inside the parenthesis is the "key." You can use this key with the rest of the nsIRegistry API (see MXR). Now, I know from visual inspection that there's a key called "directory" for each profile. I don't know how to get the other keys' names automatically, but I do know how to look up the directory for a particular profile. js> rs.getStringUTF8(530, "directory") // 530: key corre...
nsDirectoryService
<< XPCOM API Reference Summary The XPCOM Directory Service. This service returns the locations of "well known" directories in an OS-independent manner. For instance, it can give you the path of the system's temporary directory, desktop directory, current working directory, and so on. Class ID f00
152d0-b40b-11d3-8c9c-000064657374 ContractID @mozilla.org/file/directory_service;1 Supported Interfaces nsIProperties nsIDirectoryService Remarks This component is a singleton and should therefore be accessed via the XPCOM Service Manager. Example Code #include "nsXPCOM.h" #include "nsCOMPtr.h" #include "nsDirectoryServiceDefs.h" #include "nsIServiceManager.h" #include "nsIProperties.h" /** * Get the location of the system's "temp" directory. */ nsresult GetTempD...
nsACString (External)
Class Declaration <map id="classes" name="classes"><area alt="" coords="1005,6,1096,54" href="http://developer.mozilla.org/en/nsACString_(External)" shape="rect" title="nsACString_(External)"> <area alt="" coords="980,102,1121,
150" href="http://developer.mozilla.org/en/nsCStringContainer_(External)" shape="rect" title="nsCStringContainer_(External)"> <area alt="" coords="571,198,707,246" href="http://developer.mozilla.org/en/nsCString_external" shape="rect" title="nsCString_external"> <area alt="" coords="731,198,955,246" href="http://developer.mozilla.org/en/nsDependentCSubstring_external" shape="rect" title="nsDependentCSubstring_external"> <area alt="" coords="979,198,1123,246" href="http://developer.mozilla.org/en/PromiseFlatCString_(External)" shape="rect" title="PromiseFlatCStr...
nsAString (External)
Class Declaration This header provides wrapper classes around the frozen string API which are roughly equivalent to the internal string classes. ...
mozIStorageFunction
in mozIStorageValueArray aFunctionArguments ); Parameters aFunctionArguments A mozIStorageValueArray holding the arguments passed in to the function. Return value An nsIVariant this is the return value of the function. Sample Code Both of the following code samples assume that the variable dbConn is an opened mozIStorageConnection. JavaScript Starting in Gecko 1.9.1.4 (Firefox 3.0.
15), you can directly pass your function into the mozIStorageConnection method mozIStorageConnection, like this: dbConn.createFunction("square", 1, function(aArguments) { let value = aArguments.getInt32(0); return value * value; }); // Run some query that uses the function. let stmt = dbConn.createStatement("SELECT square(value) FROM some_table"); try { while (stmt.executeStep()) { /...
nsIClassInfo
included. If this method is not supported by an implementation, then it should return 0 for count and null for array. void getInterfaces( out PRUint32 count, [array, size_is(count), retval] out nsIIDPtr array ); Parameters count The length of the resulting array. array The resulting array of nsIIDPtr values. Remarks This interface was finalized (frozen) for Gecko 0.9.6. See bug 99
158 for details. From Gecko 2.0 interfaces are no longer frozen. See also Using nsIClassInfo ...
nsIComponentRegistrar
ing unregistered. unregisterFactoryLocation() Unregisters the factory associated with a given ClassID and component file location. void unregisterFactoryLocation( in nsCIDRef aClass, in nsIFile aFile ); Parameters aClass The ClassID that was previously registered. aFile The component file that was previously registered. Remarks This interface was finalized (frozen) for Gecko 1.0. See bug 1
15853 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsIDOMEvent
aMsg aIter Return value Native code only!duplicatePrivateData void duplicatePrivateData(); Parameters None. Violates the XPCOM interface guidelines GetInternalNSEvent() nsEventPtr GetInternalNSEvent(); Parameters None. Return value getPreventDefault() Note: Use the defaultPrevented attribute instead. This method will be removed in future releases, see bug 691
151. boolean getPreventDefault(); Parameters None. Return value initEvent() This method is used to initialize the value of an Event created through the DocumentEvent interface. This method may only be called before the Event has been dispatched via the dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times the final invocation t...
nsIDOMMozNetworkStatsData
dom/network/interfaces/nsIDOMNetworkStats.idlScriptable Represents a single record in the network statistics database, as reported using the nsIDOMMozNetworkStatsManager interface. 1.0 66 Introduced Gecko 18.0 Inherits from: nsISupports Last changed in Gecko 18.0 (Firefox 18.0 / Thunderbird 18.0 / SeaMonkey 2.
15) Attributes Attribute Type Description rxBytes unsigned long The number of bytes received on the connection. Read only. txBytes unsigned long The number of bytes transmitted on the connection. Read only. date Date The date of the sample. Read only. ...
nsIDOMMozNetworkStatsManager
NOTE: Gecko is a fast evolving project. Please check dom/network/interfaces/nsIDOMNetworkStatsManager.idl to make sure this data is accurate. dom/network/interfaces/nsIDOMNetworkStatsManager.idlScriptable Interface that provides access to network usage statistics. Inherits from: nsISupports Last changed in Gecko 18.0 (Firefox 18.0 / Thunderbird 18.0 / SeaMonkey 2.
15) Implemented by: @mozilla.org/networkStatsManager;1. To create an instance, use: var networkStatsManager = Components.classes["@mozilla.org/networkStatsManager;1"] .createInstance(Components.interfaces.nsIDOMNetworkStatsManager); Furthermore, the NetworkStatsManager is published through a mozNetworkStats child object within the navigator object. If the object exists, you can use the N...
nsIDocShell
The character set was determined from a byte order mark in the content. kCharsetFromChannel 12 The nsIChannel specified the character set. kCharsetFromOtherComponent 13 kCharsetFromParentForced 14 The parent's character set was forced onto this content; all descendents will have this character set forced onto it. kCharsetFromUserForced
15 The user specified a character set to force onto this content; all descendents will have this character set forced onto it. kCharsetFromPreviousLoading Methods addSessionStorage() Add a WebApps session storage object to the docshell. void addSessionStorage( in nsIPrincipal principal, in nsIDOMStorage storage ); Parameters principal The principal to use fo...
nsIEditor
<< XPCOM API Reference editor/nsIEditor.idlScriptable Provides methods and attributes used when editing page content. ...
nsIGlobalHistory
void addPage( in string aURL ); Parameters aURL The url to the page. ...
nsIIOService
is ignored. Return value An nsIURI object corresponding to aSpec and aBaseURI. Exceptions thrown NS_ERROR_MALFORMED_URI If URI does not begin with a valid scheme (as defined by RFC 3986) followed by a colon. Remarks Note: The proper way to create a new nsIURI is with newURI() method defined above. Do NOT create a new nsIURI with createInstance(). This was a frozen interface see bug
157131 for details. From Gecko 2.0 interfaces are no longer frozen. See also RFC 3986 ...
nsIMacDockSupport
currently active. About dockMenu By default Firefox adds two menu items to the dock menu. The menu items are "New Window" and "New Private Window". If permanent private browsing mode is enabled then the "New Private Window" menu item is hidden. This is created by using the dockMenu attribute of nsIMacDockSupport here: http://mxr.mozilla.org/mozilla-release/source/browser/base/content/browser.js#
1562 This is seen here: If you were to copy and follow that example you would replace the default native menu. This can be done like this: var dockSupport = Cc['@mozilla.org/widget/macdocksupport;1'].getService(Ci.nsIMacDockSupport); console.log('dockSupport:', dockSupport); var win = Services.wm.getMostRecentWindow('navigator:browser'); var macMenu = win.document.createElementNS('http://www.mozi...
nsIMemory
en an out-of-memory condition occurs. When a nsIMemory instance notifies memory pressure observers, it passes itself as the aSubject parameter in the call to nsIObserverService.notifyObservers(). This allows nsIObserver implementations to observe multiple nsIMemory instances and determine the source of memory pressure notifications. Remarks This interface was frozen for Gecko 0.9.6. See bug 99
151 for details. From Gecko 2.0 interfaces are no longer frozen. See also NS_GetMemoryManager nsIObserverService.notifyObservers() nsIObserver nsIObserverService ...
nsIModule
called so that any unregistration can be preformed. void unregisterSelf( in nsIComponentManager aCompMgr, in nsIFile aLocation, in string aLoaderStr ); Parameters aCompMgr The global component manager. aLocation The location of the nsIModule on disk. aLoaderStr Opaque loader specific string. Remarks This interface was finalized (frozen) for Gecko 0.9.9. See bug 99
154 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsIRequest
e nsIRequest argument to the nsIStreamListener on each onStartRequest, onDataAvaliable, and onStopRequest invocation. Method overview void cancel(in nsresult aStatus); boolean isPending(); void resume(); void suspend(); Attributes Attribute Type Description loadFlags nsLoadFlags The load flags of this request. Bits 0-
15 are reserved. When added to a load group, this request's load flags are merged with the load flags of the load group. loadGroup nsILoadGroup The load group of this request. While pending, the request is a member of the load group. It is the responsibility of the request to implement this policy. name AUTF8String The name of the request. Often this is the URI of t...
nsISimpleEnumerator
not to initiate or continue iteration over the enumerator, though it can be called without subsequent getNext() calls. Does not affect internal state of enumerator. boolean hasMoreElements(); Parameters None. Return value PR_TRUE if there are remaining elements in the enumerator. PR_FALSE if there are no more elements in the enumerator. Remarks This interface was frozen for Gecko 0.9.6. See bug
154047 for details. From Gecko 2.0 interfaces are no longer frozen. See also Code example of nsISimpleEnumerator ...
nsISmsService
dom/sms/interfaces/nsISmsService.idlScriptable Used to send SMS text messages for the WebSMS API 1.0 66 Introduced Gecko 13.0 Inherits from: nsISupports Last changed in Gecko
15.0 (Firefox
15.0 / Thunderbird
15.0 / SeaMonkey 2.12) Implemented by: @mozilla.org/sms/smsservice;1. To create an instance, use: var smsService = Components.classes["@mozilla.org/sms/smsservice;1"] .createInstance(Components.interfaces.nsISmsService); Method overview [implicit_jscontext] nsIDOMMozSmsMessage createSmsMessage(in long id, in DOMString delivery, in DOMString sender, in DOMString receiver, in DOMString body, in jsval timestamp, in bool read ); unsigned short getNumberOfMessagesForText(in DOMString text); boolean hasSup...
nsISpeculativeConnect
netwerk/base/public/nsISpeculativeConnect.idlScriptable Lets non-networking code provide hints to the networking layer that an HTTP connection attempt to a particular site is likely to happen soon; this lets the networking layer begin setting up TCP and, if appropriate, SSL handshakes to save time when the connection is actually opened later. 1.0 66 Introduced Gecko
15.0 Inherits from: nsISupports Last changed in Gecko
15.0 (Firefox
15.0 / Thunderbird
15.0 / SeaMonkey 2.12) To use this service, simply call nsISupports.QueryInterface() on the nsIIOService you plan to use for the connection, to get access to the I/O service's implementation of nsISpeculativeConnect. Then call speculativeConnect() to let the networking layer know what you might be doing in the ...
nsISupportsPrimitive
rtsPRUint32. TYPE_PRUINT64 8 Corresponding to nsISupportsPRUint64. TYPE_PRTIME 9 Corresponding to nsISupportsPRTime. TYPE_CHAR 10 Corresponding to nsISupportsChar. TYPE_PRINT16 11 Corresponding to nsISupportsPRInt16. TYPE_PRINT32 12 Corresponding to nsISupportsPRInt32. TYPE_PRINT64 13 Corresponding to nsISupportsPRInt64. TYPE_FLOAT 14 Corresponding to nsISupportsFloat. TYPE_DOUBLE
15 Corresponding to nsISupportsDouble. TYPE_VOID 16 Corresponding to nsISupportsVoid. TYPE_INTERFACE_POINTER 17 Corresponding to nsISupportsInterfacePointer. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. See also nsISupportsCString nsISupportsChar nsISupportsDouble nsISupportsFloat nsISupportsID nsISupportsInterfa...
nsIToolkitProfileService
refox up to 4.0 and Thunderbird up to 3.3 you can launch with the -profilemanager command line flag. Future versions will require the separate Profile Manager application. Warning: This service is synchronous so it is recommended that you use OS.File to find the profile directory via OS.Constants.Path.profileDir. OS.File is available from Gecko 18 (Firefox 18.0 / Thunderbird 18.0 / SeaMonkey 2.
15). Method overview nsIToolkitProfile createProfile(in nsILocalFile aRootDir, in AUTF8String aName); void flush(); nsIToolkitProfile getProfileByName(in AUTF8String aName); nsIProfileLock lockProfilePath(in nsILocalFile aDirectory, in nsILocalFile aTempDirectory); Attributes Attribute Type Description profileCount unsigned lo...
nsIWebNavigationInfo
one on the return value if isTypeSupported to detect whether a type is supported at all. IMAGE 1 Returned by isTypeSupported() to indicate that a type is supported as an image. PLUGIN 2 Returned by isTypeSupported() to indicate that a type is supported via an NPAPI ("Netscape 4 API") plug-in. This is not the value returned for "XPCOM plug-ins". OTHER 1 <<
15 Note: Other return types may be added here in the future as they become relevant. Returned by isTypeSupported() to indicate that a type is supported via some other means. Methods isTypeSupported() Determines whether or not the specified MIME type is supported by the given nsIWebNavigation object. This lets you determine whether a MIME type can be displayed as-is inside a browser...
nsIWebProgressListener
uriloader/base/nsIWebProgressListener.idlScriptable This interface is implemented by clients wishing to listen in on the progress associated with the loading of asynchronous requests in the context of a nsIWebProgress instance as well as any child nsIWebProgress instances. Inherits from: nsISupports Last changed in Gecko
15 (Firefox
15 / Thunderbird
15 / SeaMonkey 2.12) nsIWebProgress describes the parent-child relationship of nsIWebProgress instances. Method overview void onLocationChange(in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI aLocation, [optional] in unsigned long aFlags); void onProgressChange(in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aCurSelfProgress, in long aMaxSelfProgress, in long aCurTotalProgress, in ...
nsIXPCScriptable
ANT_SETPROPERTY 1 << 6 WANT_ENUMERATE 1 << 7 WANT_NEWENUMERATE 1 << 8 Indicates that the object wants to have its newEnumerate method called. WANT_NEWRESOLVE 1 << 9 Indicates that the object wants to have its newResolve method called. ...
nsMsgRuleActionType
ty=2; const long Delete=3; const long MarkRead=4; const long KillThread=5; const long WatchThread=6; const long MarkFlagged=7; const long Label=8; const long Reply=9; const long Forward=10; const long StopExecution=11; const long DeleteFromPop3Server=12; const long LeaveOnPop3Server=13; const long JunkScore=14; const long FetchBodyFromPop3Server=
15; const long CopyToFolder=16; const long AddTag=17; const long KillSubthread=18; const long MarkUnread=19; }; ...
nsMsgSearchAttrib
const nsMsgSearchAttribValue Name = 17; const nsMsgSearchAttribValue DisplayName = 18; const nsMsgSearchAttribValue Nickname = 19; const nsMsgSearchAttribValue ScreenName = 20; const nsMsgSearchAttribValue Email = 21; const nsMsgSearchAttribValue AdditionalEmail =...
nsMsgSearchOp
nsMsgSearchOpValue BeginsWith = 9; const nsMsgSearchOpValue EndsWith = 10; const nsMsgSearchOpValue SoundsLike = 11; /* for LDAP phoenetic matching */ const nsMsgSearchOpValue LdapDwim = 12; /* Do What I Mean for simple search */ const nsMsgSearchOpValue IsGreaterThan = 13; const nsMsgSearchOpValue IsLessThan = 14; const nsMsgSearchOpValue NameCompletion =
15; /* Name Completion operator...as the name implies =) */ const nsMsgSearchOpValue IsInAB = 16; const nsMsgSearchOpValue IsntInAB = 17; const nsMsgSearchOpValue IsntEmpty = 18; /* primarily for tags */ const nsMsgSearchOpValue Matches = 19; /* generic term for use by custom terms */ const nsMsgSearchOpValue DoesntMatch = 20; /* generic term for use by custom terms */ ...
nsMsgSearchScope
archableGroups = 9; const nsMsgSearchScopeValue newsFilter = 10; const nsMsgSearchScopeValue LocalABAnd = 11; const nsMsgSearchScopeValue LDAPAnd = 12; // IMAP and NEWS, searched using local headers const nsMsgSearchScopeValue onlineManual = 13; /// local news + junk const nsMsgSearchScopeValue localNewsJunk = 14; /// local news + body const nsMsgSearchScopeValue localNewsBody =
15; /// local news + junk + body const nsMsgSearchScopeValue localNewsJunkBody = 16; }; ...
nsMsgNavigationType
he view. nextUnreadMessage 7 Go to the next unread message in the view. Will wrap around if the wrap flag is set to true. previousUnreadMessage 8 Go to the previous unread message in the view. Will wrap around if the wrap flag is set to true. ...
nsMsgViewCommandType
. markAllRead 10 Mark all messages currently shown as read expandAll 11 Expand all threads. collapseAll 12 Collapse all threads. copyMessages 13 Copy the selected messages. Use with nsIMsgDBView.doCommandWithFolder() to select the destination folder. moveMessages 14 Move the selected messages. Use with nsIMsgDBView.doCommandWithFolder() to select the destination folder. selectAll
15 Select all messages. downloadSelectedForOffline 16 Download the selected messages for offline. downloadFlaggedForOffline 17 Download all flagged messages for offline. selectThread 18 Select the entire thread. selectFlagged 19 Select all flagged messages. cmdRequiringMsgBody 20 Used with nsIMsgDBView.getCommandStatus() to determine if commands requiring the message body (i.e. reloa...
nsMsgViewSortType
only used to store constants. For example to sort by date you would pass a function the value: Components.interfaces.nsMsgViewSortType.byDate mailnews/base/public/nsIMsgDBView.idlScriptable Please add a summary to this article. ...
Autoconfiguration in Thunderbird
ation folder. ISPDB Database URL is <https://autoconfig.thunderbird.net/v1.1/>, append domain name, e.g. <https://autoconfig.thunderbird.net/v1.1/freenet.de>. Current process: File a bug in Bugzilla, Product "Webtools", Component "ISPDB Database Entries", with a configuration file that matches the requirements described below. The component is actively watched for new bugs (as of November 20
15) so there is no need to request review on the file. Configuration server at ISP Given the email address "fred@example.com", Thunderbird checks <https://autoconfig.example.com/mail/config-v1.1.xml?emailaddress=fred@example.com> (preferred) and <https://example.com/.well-known/autoconfig/mail/config-v1.1.xml> and the same URLs with http (see section SSL below). The results are used in this order ...
Using JS in Mozilla code
JS language features that are implemented in the Mozilla JS engine are ordinarily safe to use in Mozilla code. However, there are a few exceptions, listed here. JS Language features Proper tail calls are not implemented. JS standard library features Feature Standard Can be used in code new Proxy(target, handler) ES20
15 Yes, but getPrototypeOf and setPrototypeOf handlers are not yet implemented. ArrayBuffer.transfer() proposed for ES2016 No, Nightly-only for now SharedArrayBuffer, SharedInt8Array..., Atomics proposed for ES2016 No, Nightly-only for now TypedObject proposed for ES2016 No, Nightly-only for now SIMD proposed for ES2016 No, Nightly-only for now ...
Using the Mozilla source server
Mozilla source server is now even more feature-packed. The nightly debug builds are now also Source Indexed so that by following a couple of simple steps you can also have the source code served to you for debugging without a local build What you'll need WinDbg or Visual Studio (Note: express editions will not work, but WinDbg is a free download) A nightly build that was created after April
15, 2008; go to the /pub/firefox/nightly/latest-mozilla-central/ folder and grab the installer For builds predating the switch to Mercurial, you'll need cvs.exe, added to your PATH (the cvs.exe from MozillaBuild has problems, use this one instead) Note: Do not use the CVS from MozillaBuild, it will not work! Set up symbols Follow the instructions for Using the Mozilla symbol server. Once the sy...
Using the Mozilla symbol server
l continue. Symbol indices are named like so: symbols.mozilla.org/{lowercased:Name}/{lowercased:Name}-{Version}-{Platform}-{BuildID}-symbols.txt. The Platform is either 'Darwin' (for Mac) or 'Linux'. The rest of values are based on the contents of the application.ini file under the [App] heading: For example, the Thunderbird 3.1b2 release with Name=Thunderbird, Version=3.1b2, BuildID=201004301254
15 would have a filename of "thunderbird-3.1b2-Linux-201004301254
15-symbols.txt" under the thunderbird directory at symbols.mozilla.org. Its contents are a list of paths to files, all relative to the directory the BLAH-symbols.txt file is found in. The source server In addition to symbols, Mozilla also has a source server, letting you do source-level debugging and inspection on demand. Troublesh...
Using COM from js-ctypes
ted': ctypes.voidptr_t }, { 'DisplayUI': ctypes.voidptr_t } // end ISpVoice ]); // FUNCTIONS // http://msdn.microsoft.com/en-us/library/windows/desktop/ms695279%28v=vs.85%29.aspx let CoInitializeEx = lib.declare('CoInitializeEx', WINABI, HRESULT, // result LPVOID, // pvReserved DWORD // dwCoInit ); // http://msdn.microsoft.com/en-us/library/windows/desktop/ms6887
15%28v=vs.85%29.aspx let CoUninitialize = lib.declare('CoUninitialize', WINABI, VOID // return ); // http://msdn.microsoft.com/en-us/library/windows/desktop/ms6866
15%28v=vs.85%29.aspx let CoCreateInstance = lib.declare('CoCreateInstance', WINABI, HRESULT, // return REFCLSID, // rclsid LPUNKNOWN, // pUnkOuter DWORD, // dwClsContext REFIID, ...
Debugging Tips
let { ctypes } = Components.utils.import("resource://gre/modules/ctypes.jsm", {}); let i = ctypes.int32_t(10); console.log(i.constructor.toSource()); let Point = ctypes.StructType("Point", [{ x: ctypes.int32_t }, { y: ctypes.int32_t }]) let p = Point(10, 20); console.log(p.construc...
Declaring types
ther types see here: Predefined Types - Primitive Types. You can then declare and use a function that uses this structure, like this: // Declare the libc asctime() function, which returns a char * and accepts a pointer to a tm structure. const asctime = lib.declare("asctime", ctypes.default_abi, ctypes.char.ptr, struct_tm.ptr); var theTime = new struct_tm; theTime.tm_hour = 3; theTime.tm_min =
15; ... var timeStr = asctime(theTime.address()); // Pass a pointer to the tm struct var jsString = timeStr.readString(); // Convert the C string to JavaScript The last line converts the C string returned by the libc asctime() function into a JavaScript string by calling the CData readString() method. For another example see here: GetCursorPos Opaque structures An opaque structure ...
Using js-ctypes
_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. Line
15 calls the msgBox() routine, which displays the alert. The last thing we do is call lib.close() to close the library when we're done using it. Instead of defining the whole path, you may also just give the file name. ABOUT DECLARING THE FUNCTION How we knew how to declare the function was by going to MSDN site and looking at the MessageBox (MessageBoxW is just a unicode version of same functio...
Mozilla
de, including in the JavaScript engine. Mozilla MathML Project The Mozilla MathML project is Mozilla's project to build and enhance MathML support within Firefox and other Mozilla-based applications. For a quick overview, see the slides for the innovation fairs at Mozilla Summit 2013. Mozilla Port Blocking On 08/
15/2001, Cert issued a Vulnerability Note VU#476267 for a "Cross-Protocol" scripting attack, known as the HTML Form Protocol Attack which allowed sending arbitrary data to most TCP ports. A simple exploit of this hole allows an attacker to send forged unsigned mail through a mail server behind your firewall: A really nasty hole. Mozilla Projects ...
Constants - Plugins
NPVERS_WIN16_HAS_LIVECONNECT 9 LiveConnect (Win16). NPVERS_68K_HAS_LIVECONNECT 11 LiveConnect (68K). NPVERS_HAS_WINDOWLESS 11 Windowless plug-in. NPVERS_HAS_XPCONNECT_SCRIPTING 13 Plug-in is scriptable using XPConnect. NPVERS_HAS_NPRUNTIME_SCRIPTING 14 Plug-in is scriptable using NPRuntime. NPVERS_HAS_FORM_VALUES
15 NPPVformValue NPPVariables are supported. NPVERS_HAS_POPUPS_ENABLED_STATE 16 The NPN_PushPopupsEnabledState() and NPN_PopPopupsEnabledState() functions are supported. NPVERS_HAS_RESPONSE_HEADERS 17 NPStreams have response headers for HTTP streams. NPVERS_HAS_NPOBJECT_ENUM 18 The NPClass in question has an enumerate field, which lets you enumerate th...
Aggregate view - Firefox Developer Tools
category that are currently allocated. The "Total Bytes" column shows you the number of bytes occupied by objects in each category, and that number as a percentage of the whole heap size for that tab. The screenshots in this section are taken from a snapshot of the monster example page. For example, in the screenshot above, you can see that: there are four Array objects that account for
15% of the total heap. Next to the type's name, there's an icon that contains three stars arranged in a triangle: Click this to see every instance of that type. For example, the entry for Array tells us that there are four Array objects in the snapshot. If we click the star-triangle, we'll see all four Array instances: For each instance, you can see the retained size and shallow size of that...
Migrating from Firebug - Firefox Developer Tools
Firebug. Beyond that it allows to edit the tag names inline. You can also edit the HTML directly. In Firebug you do this by right-clicking a node and clicking Edit HTML... in the context menu. In the DevTools this option is also available via the context menu. There the option is called Edit As HTML. Only the live preview of changes is currently missing, which is tracked in bug 1067318 and bug 8
15464. Copy HTML and related information Firebug's HTML panel allows to copy the inner and outer HTML of an element as well as the CSS and XPath to it via the context menu of an element. The Page Inspector provides the same functionality except copying XPaths. This is covered by bug 987877. Edit CSS Both tools allow to view and edit the CSS rules related to the element selected within the node v...
Network request list - Firefox Developer Tools
status-code Shows resources that have the specific HTTP status code. status-code:304 method Shows resources that have were requested via the specific HTTP request method. method:post domain Shows resources coming from a specifc domain. domain:mozilla.org remote-ip Shows resources coming from a server with the specified IP. remote-ip:63.245.2
15.53 remote-ip:[2400:cb00:2048:1::6810:2802] cause Shows resources matching a specific cause type. The types can be found in the description of the cause column. cause:js cause:stylesheet cause:img transferred Shows resources having a specific transferred size or a transferred size close to the one specified. k can be used as suffix for kilobytes and m for me...
Animation inspector example: CSS transitions - Firefox Developer Tools
} .channel > * { vertical-align: middle; line-height: normal; } .icon { width: 50px; height: 50px; filter: grayscale(100%); transition: transform 750ms ease-in, filter 750ms ease-in-out; } .note { margin-left: 1em; font: 1.5em "Open Sans",Arial,sans-serif; overflow: hidden; white-space: nowrap; display: inline-block; opacity: 0; width: 0; transition: opacity 500ms
150ms, width 500ms
150ms; } .icon#selected { filter: grayscale(0%); transform: scale(1.5); } .icon#selected+span { opacity: 1; width: 300px; } JavaScript Content function toggleSelection(e) { if (e.button != 0) { return; } if (e.target.classList.contains("icon")) { var wasSelected = (e.target.getAttribute("id") == "selected"); clearSelection(); if (!wasSelected) { ...
Animation inspector example: Web Animations API - Firefox Developer Tools
, { transform: 'scale(1.5)', offset: 0.666 }, { transform: 'scale(1.5)', filter: 'grayscale(0%)'} ]; var noteKeyframeSet = [ { opacity: '0', width: '0'}, { opacity: '1', width: '300px'} ]; var iconKeyframeOptions = { duration: 750, fill: 'forwards', easing: 'ease-in', endDelay: 100 } var noteKeyframeOptions = { duration: 500, fill: 'forwards', easing: 'ease-out', delay:
150 } var icon = document.getElementById("icon"); var note = document.getElementById("note"); var iconAnimation = icon.animate(iconKeyframeSet, iconKeyframeOptions); var noteAnimation = note.animate(noteKeyframeSet, noteKeyframeOptions); iconAnimation.pause(); noteAnimation.pause(); var firstTime = true; function animateChannel(e) { if (e.button != 0) { return; } if (e.target.id != "i...
Work with animations - Firefox Developer Tools
nimated the filter and transform properties, to scale the icon and color it lasted 750ms, had an endDelay of 100ms used the compositor thread was given an easing value of ease-in: you can see this by the concave shape of the green bar. The span#note animation: animated the width and opacity properties, to make the name gradually appear lasted 500ms, and had a delay of
150ms was given an easing value of ease-out: you can see this by the convex shape of the green bar. Animation playback At the top of the animation inspector: there are buttons to play/pause and restart the animation there's a dropdown to change the animation playback rate the current time in the animation is displayed. Finally, if you click inside the bar at the top of the timeline...
AnalyserNode.fftSize - Web APIs
hen performing a Fast Fourier Transform (FFT) to get frequency domain data. Syntax var curValue = analyserNode.fftSize; analyserNode.fftSize = newValue; Value An unsigned integer, representing the window size of the FFT, given in number of samples. A higher value will result in more details in the frequency domain but fewer details in the time domain. Must be a power of 2 between 252^5 and 2
152^
15, so one of: 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, and 32768. Defaults to 2048. Note: If its value is not a power of 2, or it is outside the specified range, a DOMException with the name IndexSizeError is thrown. Example The following example shows basic usage of an AudioContext to create an AnalyserNode, then requestAnimationFrame and <canvas> to collect time domain data re...
AnalyserNode - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioNode" target="_top"><rect x="
151" y="1" width="90" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="196" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioNode</text></a><polyline points="241,25 251,20 251,30 241,25"...
Attr - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
AudioBufferSourceNode - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioNode" target="_top"><rect x="
151" y="1" width="90" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="196" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioNode</text></a><polyline points="241,25 251,20 251,30 241,25"...
AudioContext.baseLatency - Web APIs
er may ignore the option. Syntax var baseLatency = audioCtx.baseLatency; Value A double representing the base latency in seconds. Example // default latency ("interactive") const audioCtx1 = new AudioContext(); console.log(audioCtx1.baseLatency); // 0.00 // higher latency ("playback") const audioCtx2 = new AudioContext({ latencyHint: 'playback' }); console.log(audioCtx2.baseLatency); // 0.
15 Specifications Specification Status Comment Web Audio APIThe definition of 'baseLatency' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pu...
AudioContext - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioContext" target="_top"><rect x="
151" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioContext</text></a></svg></div> a:hover text { fill: #...
AudioListener.dopplerFactor - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.forwardX - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.forwardY - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.forwardZ - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.positionX - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.positionY - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.positionZ - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.setOrientation() - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.setPosition() - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.speedOfSound - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.upX - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.upY - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener.upZ - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioListener - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
AudioNode - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioNode" target="_top"><rect x="
151" y="1" width="90" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="196" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioNode</text></a></svg></div> a:hover text { fill: #0095DD;...
BaseAudioContext.createPanner() - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
BaseAudioContext - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/BaseAudioContext" target="_top"><rect x="
151" y="1" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="231" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">BaseAudioContext</text></a></svg></div> a:hover text {...
BatteryManager.chargingTime - Web APIs
Syntax var time = battery.chargingTime On return, time is the remaining time in seconds until the battery, which is a BatteryManager object, is fully charged, or 0 if the battery is already fully charged. If the battery is currently discharging, this value is Infinity. ...
BatteryManager.dischargingTime - Web APIs
Syntax var time = battery.dischargingTime On return, time is the remaining time in seconds until the battery, which is a BatteryManager object, is fully discharged and the system will suspend. ...
BluetoothDevice - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/BluetoothDevice" target="_top"><rect x="
151" y="1" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="226" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">BluetoothDevice</text></a></svg></div> a:hover text { f...
BroadcastChannel - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/BroadcastChannel" target="_top"><rect x="
151" y="1" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="231" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">BroadcastChannel</text></a></svg></div> a:hover text {...
CDATASection - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
CSSStyleDeclaration.setProperty() - Web APIs
: 1000px; margin: 0 auto; } .controls { display: flex; justify-content: space-around; align-items: center; } div button { flex: 1; margin: 20px; height: 30px; line-height: 30px; } .box { display: flex; justify-content: center; align-items: center; height: calc(100% - 70px); } .box p { width: 50%; text-align: center; font-weight: bold; font-size: 40px; height:
150px; line-height:
150px; background: red; border: 5px solid purple; color: white; transition: all 1s; } JavaScript const borderBtn = document.querySelector('.border'); const bgColorBtn = document.querySelector('.bgcolor'); const colorBtn = document.querySelector('.color'); const box = document.querySelector('.box'); function random(min,max) { const num = Math.floor(Math.random()*(ma...
CanvasRenderingContext2D.arc() - Web APIs
e a full circle, the arc begins at an angle of 0 radians (0?), and ends at an angle of 2? radians (360?). const canvas = document.querySelector('canvas'); const ctx = canvas.getContext('2d'); ctx.beginPath(); ctx.arc(100, 75, 50, 0, 2 * Math.PI); ctx.stroke(); Result Different shapes demonstrated This example draws various shapes to show what is possible with arc(). ...
CanvasRenderingContext2D.direction - Web APIs
The default value is "inherit". Examples Changing text direction This example draws two pieces of text. The first one is left-to-right, and the second is right-to-left. Note that "Hi!" in ltr becomes "!Hi" in rtl. HTML <canvas id="canvas"></canvas> JavaScript var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); ctx.font = '48px serif'; ctx.fillText('Hi!',
150, 50); ctx.direction = 'rtl'; ctx.fillText('Hi!',
150, 130); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.direction' in that specification. Living Standard ...
CanvasRenderingContext2D.ellipse() - Web APIs
arious elliptical arcs This example creates three elliptical paths with varying properties. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.fillStyle = 'red'; ctx.beginPath(); ctx.ellipse(60, 75, 50, 30, Math.PI * .25, 0, Math.PI * 1.5); ctx.fill(); ctx.fillStyle = 'blue'; ctx.beginPath(); ctx.ellipse(
150, 75, 50, 30, Math.PI * .25, 0, Math.PI); ctx.fill(); ctx.fillStyle = 'green'; ctx.beginPath(); ctx.ellipse(240, 75, 50, 30, Math.PI * .25, 0, Math.PI, true); ctx.fill(); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.ellipse' in that specification. Living Standard ...
CanvasRenderingContext2D.fill() - Web APIs
region. Possible values: "nonzero": The non-zero winding rule. Default rule. "evenodd": The even-odd winding rule. path A Path2D path to fill. Examples Filling a rectangle This example fills a rectangle with the fill() method. 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. The fill() method is then used to render the object to the canvas. A hole is left unfilled in the object's center by using the "evenodd" rule; by default (with the "nonzero" rule), the hole would also be filled. HTML <canvas id="canvas"></canvas> JavaScript const c...
CanvasRenderingContext2D.fillRect() - Web APIs
width The rectangle's width. Positive values are to the right, and negative to the left. height The rectangle's height. Positive values are down, and negative are up. Examples A simple filled rectangle This example draws a filled green rectangle using the fillRect() method. HTML <canvas id="canvas"></canvas> JavaScript The rectangle's top-left corner is at (20, 10). It has a width of
150 and a height of 100. const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.fillStyle = 'green'; ctx.fillRect(20, 10,
150, 100); Result Filling the whole canvas This code snippet fills the entire canvas with a rectangle. This is often useful for creating a background, on top of which other things may then be drawn. To achieve this, the dimensions of the...
CanvasRenderingContext2D.getImageData() - Web APIs
eight of 100, for a total of 20,000 pixels. Of those pixels, most are either transparent or taken from off the canvas; only 5,000 of them are opaque black (the color of the drawn rectangle). const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.rect(10, 10, 100, 100); ctx.fill(); let imageData = ctx.getImageData(60, 60, 200, 100); ctx.putImageData(imageData,
150, 10); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.getImageData' in that specification. Living Standard ...
CanvasRenderingContext2D.getLineDash() - Web APIs
method of the Canvas 2D API's CanvasRenderingContext2D interface gets the current line dash pattern. Syntax ctx.getLineDash(); Return value An Array of numbers that specify distances to alternately draw a line and a gap (in coordinate space units). If the number, when setting the elements, is odd, the elements of the array get copied and concatenated. For example, setting the line dash to [5,
15, 25] will result in getting back [5,
15, 25, 5,
15, 25]. Examples Getting the current line dash setting This example demonstrates the getLineDash() method. HTML <canvas id="canvas"></canvas> JavaScript As set by setLineDash(), strokes consist of lines that are 10 units wide, with spaces of 20 units in between each line. const canvas = document.getElementById('canvas'); const ctx = canvas...
CanvasRenderingContext2D.imageSmoothingQuality - Web APIs
mple uses the imageSmoothingQuality property with a scaled image. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); let img = new Image(); img.src = 'https://mdn.mozillademos.org/files/222/Canvas_createpattern.png'; img.onload = function() { ctx.imageSmoothingQuality = 'low'; ctx.drawImage(img, 0, 0, 300,
150); }; Result Specifications Specification Status Comment HTML Living StandardThe definition of 'imageSmoothingQuality' in that specification. Living Standard Initial definition. ...
CanvasRenderingContext2D.rect() - Web APIs
ive values are to the right, and negative to the left. height The rectangle's height. Positive values are down, and negative are up. Examples Drawing a rectangle This example creates a rectangular path using the rect() method. The path is then rendered using the fill() method. HTML <canvas id="canvas"></canvas> JavaScript The rectangle's corner is located at (10, 20). It has a width of
150 and a height of 100. const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.rect(10, 20,
150, 100); ctx.fill(); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.rect' in that specification. Living Standard ...
CanvasRenderingContext2D.restore() - Web APIs
tate and restore() to restore it later, so that you are able to draw a rect with the default state later. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); // Save the default state ctx.save(); ctx.fillStyle = 'green'; ctx.fillRect(10, 10, 100, 100); // Restore the default state ctx.restore(); ctx.fillRect(
150, 40, 100, 100); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.restore' in that specification. Living Standard ...
CanvasRenderingContext2D.save() - Web APIs
tate and restore() to restore it later, so that you are able to draw a rect with the default state later. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); // Save the default state ctx.save(); ctx.fillStyle = 'green'; ctx.fillRect(10, 10, 100, 100); // Restore the default state ctx.restore(); ctx.fillRect(
150, 40, 100, 100); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.save' in that specification. Living Standard ...
CanvasRenderingContext2D.shadowBlur - Web APIs
ity, and NaN values are ignored. Examples Adding a shadow to a shape This example adds a blurred shadow to a rectangle. The shadowColor property sets its color, and shadowBlur sets its level of bluriness. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); // Shadow ctx.shadowColor = 'red'; ctx.shadowBlur =
15; // Rectangle ctx.fillStyle = 'blue'; ctx.fillRect(20, 20,
150, 100); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.shadowBlur' in that specification. Living Standard ...
CanvasRenderingContext2D.shadowColor - Web APIs
esulting alpha value of the fill shadow is .8 * .2, or .16. The alpha of the stroke shadow is .8 * .6, or .48. 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. Living Standard ...
CanvasRenderingContext2D.shadowOffsetX - Web APIs
property sets its color, shadowOffsetX sets its offset 25 units to the right, and shadowBlur gives it a blur level of 10. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); // Shadow ctx.shadowColor = 'red'; ctx.shadowOffsetX = 25; ctx.shadowBlur = 10; // Rectangle ctx.fillStyle = 'blue'; ctx.fillRect(20, 20,
150, 100); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.shadowOffsetX' in that specification. Living Standard ...
CanvasRenderingContext2D.shadowOffsetY - Web APIs
ty sets its color, shadowOffsetY sets its offset 25 units towards the bottom, and shadowBlur gives it a blur level of 10. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); // Shadow ctx.shadowColor = 'red'; ctx.shadowOffsetY = 25; ctx.shadowBlur = 10; // Rectangle ctx.fillStyle = 'blue'; ctx.fillRect(20, 20,
150, 80); Result Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.shadowOffsetY' in that specification. Living Standard ...
CanvasRenderingContext2D.stroke() - Web APIs
Syntax void ctx.stroke(); void ctx.stroke(path); Parameters path A Path2D path to stroke. Examples A simple stroked rectangle This example creates a rectangle using the rect() method, and then draws it to the canvas using stroke(). HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.rect(10, 10,
150, 100); ctx.stroke(); Result Re-stroking paths Typically, you'll want to call beginPath() for each new thing you want to stroke. If you don't, the previous sub-paths will remain part of the current path, and get stroked every time you call the stroke() method. In some cases, however, this may be the desired effect. HTML <canvas id="canvas"></canvas> JavaScript This code strokes the firs...
CanvasRenderingContext2D.strokeRect() - Web APIs
yle = 'green'; ctx.strokeRect(20, 10, 160, 100); Result Applying various context settings This example draws a rectangle with a drop shadow and thick, beveled outlines. 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. Living Standard ...
CanvasRenderingContext2D - Web APIs
width="300" height="300"></canvas> To get the canvas' 2D rendering context, call getContext() on the <canvas> element, supplying '2d' as the argument: const canvas = document.getElementById('my-house'); const ctx = canvas.getContext('2d'); With the context in hand, you can draw anything you like. 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. CanvasRenderingContext2D.clearRect() Sets all pixels in the rectangle defined ...
Compositing example - Web APIs
Width, 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...
Pixel manipulation with canvas - Web APIs
orIndices = getColorIndicesForCoord(xCoord, yCoord, canvasWidth); var redIndex = colorIndices[0]; var greenIndex = colorIndices[1]; var blueIndex = colorIndices[2]; var alphaIndex = colorIndices[3]; var redForCoord = imageData.data[redIndex]; var greenForCoord = imageData.data[greenIndex]; var blueForCoord = imageData.data[blueIndex]; var alphaForCoord = imageData.data[alphaIndex]; Or, if ES20
15 is appropriate: const xCoord = 50; const yCoord = 100; const canvasWidth = 1024; const getColorIndicesForCoord = (x, y, width) => { const red = y * (width * 4) + x * 4; return [red, red + 1, red + 2, red + 3]; }; const colorIndices = getColorIndicesForCoord(xCoord, yCoord, canvasWidth); const [redIndex, greenIndex, blueIndex, alphaIndex] = colorIndices; You may also access the size of t...
Canvas tutorial - Web APIs
X Dashboard, <canvas> has since been implemented in browsers. Today, all major browsers support it. Before you start Using the <canvas> element is not very difficult, but you do need a basic understanding of HTML and JavaScript. The <canvas> element is not supported in some older browsers, but is supported in recent versions of all major browsers. The default size of the canvas is 300 pixels x
150 pixels (width x height). But custom sizes can be defined using the HTML height and width property. In order to draw graphics on the canvas we use a JavaScript context object, which creates graphics on the fly. In this tutorial Basic usage Drawing shapes Applying styles and colors Drawing text Using images Transformations Compositing and clipping Basic animations Advanced animations ...
CharacterData - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
CloseEvent - Web APIs
it is restarting. [Ref] 1013 Try Again Later The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients. [Ref] 1014 Bad Gateway The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code. 10
15 TLS Handshake Reserved. Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified). 1016-1999 Reserved for future use by the WebSocket standard. 2000-2999 Reserved for use by WebSocket extensions. 3000-3999 Available for use by libraries and frameworks.
Comment - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
CompositionEvent - Web APIs
s,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="
153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="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...
Constraint validation API - Web APIs
time the input event is raised. If you don't do this, and a custom validity was previously set, the input will register as invalid, even if it current contains a valid value on submission. Note: Firefox supported a proprietary error attribute -- x-moz-errormessage -- for many versions, which allowed you set custom error messages in a similar way. This has been removed as of version 66 (see bug
1513890). Specifications Specification Status Comment HTML Living StandardThe definition of 'constraint validation API' in that specification. Living Standard HTML 5.1The definition of 'constraint validation API' in that specification. Recommendation No change from the previous snapshot HTML5. HTML5The definition of 'constraint validation API...
DOMException - Web APIs
constant name: SYNTAX_ERR) InvalidModificationError The object cannot be modified in this way. (Legacy code value: 13 and legacy constant name: INVALID_MODIFICATION_ERR) NamespaceError The operation is not allowed by Namespaces in XML. (Legacy code value: 14 and legacy constant name: NAMESPACE_ERR) InvalidAccessError The object does not support the operation or argument. (Legacy code value:
15 and legacy constant name: INVALID_ACCESS_ERR) TypeMismatchError The type of the object does not match the expected type. (Legacy code value: 17 and legacy constant name: TYPE_MISMATCH_ERR) This value is deprecated; the JavaScript TypeError exception is now raised instead of a DOMException with this value. SecurityError The operation is insecure. (Legacy code value: 18 and legacy constant na...
Document.applets - Web APIs
Since then, calling document.applets in those browsers always returns an empty HTMLCollection. Removal is being considered in WebKit and Edge. Syntax var nodeList = document.applets; Value An HTMLCollection. ...
Document.cookie - Web APIs
location. Contrary to earlier specifications, leading dots in domain names are ignored, but browsers may decline to set the cookie containing such dots. If a domain is specified, subdomains are always included. Note: The domain must match the domain of the JavaScript origin. Setting cookies to foreign domains will be silently ignored. ;max-age=max-age-in-seconds (e.g., 60*60*24*365 or 3
1536000 for a year) ;expires=date-in-GMTString-format If neither expires nor max-age specified it will expire at the end of session. When user privacy is a concern, it's important that any web app implementation invalidate cookie data after a certain timeout instead of relying on the browser to do it. Many browsers let users specify that cookies should never expire, which is not necessar...
Document.createTouch() - Web APIs
e value for Touch.force. Return value touch A Touch object configured as described by the input parameters. Example This example illustrates using the Document.createTouch() method to create Touch objects. In following code snippet, two Touch objects are created for the target element. var target = document.getElementById("target"); var touch1 = Document.createTouch(window, target, 1,
15, 20, 35, 40); var touch2 = Document.createTouch(window, target, 2, 25, 30, 45, 50); Specifications Specification Status Comment Touch EventsThe definition of 'Document.createTouch()' in that specification. Recommendation Initial definition. ...
Document.createTouchList() - Web APIs
meter. Example This example illustrates using the Document.createTouchList() method to create TouchList objects. In following code snippet, some Touch objects are created for the target element and those touch points are then used to create some TouchList objects. ...
Document - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
DocumentFragment - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
DocumentType - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
d = "rgb(255,0,0)"; } else { mycurrent_cell.style.display = "none"; } } mytablebody.appendChild(mycurrent_row); } mytable.appendChild(mytablebody); mybody.appendChild(mytable); } </script> </html> Original Document Information Author(s) Marcio Galli Migrated from http://web.archive.org/web/200008
15054125/http://mozilla.org/docs/dom/technote/tn-dom-table/ ...
Element.getBoundingClientRect() - Web APIs
rties to their returned ClientRect, object prevents backfilling x and y. Due to compatibility problems (see below), it is safest to rely on only properties left, top, right, and bottom. Properties in the returned DOMRect object are not own properties. While the in operator and for...in will find returned properties, other APIs such as Object.keys() will fail. Moreover, and unexpectedly, the ES20
15 and newer features such as Object.assign() and object rest/spread will fail to copy returned properties. rect = elt.getBoundingClientRect() // The result in emptyObj is {} emptyObj = Object.assign({}, rect) emptyObj = { ...rect } {width, ...emptyObj} = rect DOMRect properties top, left, right, and bottom are computed using the values of the object's other properties. ...
Element.getClientRects() - Web APIs
ad</th></tr> </thead> <tbody> <tr><td>tbody</td></tr> </tbody> </table> </div> CSS The CSS draws borders around the paragraph and the <span> inside each <div> block for the first example, around the <ol> and <li> for the second example, and around <table>, <th>, and <td> elements for the third example. strong { text-align: center; } div { display: inline-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. function addClientRectsOverlay(elt) { /* Absolutely position a div over each client rect so that its border width is the same as the rectangle's width. No...
Element: mouseenter event - Web APIs
rivial example uses the mouseenter event to change the border on the div when the mouse enters the space alloted to it. It then adds an item to the list with the number of the mouseenter or mouseleave event. HTML <div id='mouseTarget'> <ul id="unorderedList"> <li>No events yet!</li> </ul> </div> CSS Styling the div to make it more visible. ...
Element: mouseleave event - Web APIs
al example uses the mouseenter event to change the border on the <div> when the mouse enters the space alloted to it. It then adds an item to the list with the number of the mouseenter or mouseleave event. HTML <div id='mouseTarget'> <ul id="unorderedList"> <li>No events yet!</li> </ul> </div> CSS Styling the <div> to make it more visible. ...
Element - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
Event.defaultPrevented - Web APIs
Syntax var defaultWasPrevented = event.defaultPrevented; Value A Boolean, where true indicates that the default user agent action was prevented, and false indicates that it was not. ...
Event.timeStamp - Web APIs
ess", getTime); Result Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of Event.timeStamp might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 20us in Firefox 59; in 60 it will be 2ms. // reduced time precision (2ms) in Firefox 60 event.timeStamp; //
1519211809934 //
1519211810362 //
1519211811670 // ... // reduced time precision with `privacy.resistFingerprinting` enabled event.timeStamp; //
1519129853500 //
1519129858900 //
1519129864400 // ... In Firefox, if you also enable privacy.resistFingerprinting, the precision will be 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger. Specifi...
EventTarget.addEventListener() - Web APIs
ture <a class="inner1" href="https://www.mozilla.org" target="_blank"> inner1, passive & preventDefault(which is not allowed) </a> <a class="inner2" href="https://developer.mozilla.org/" target="_blank"> inner2, none-passive & preventDefault(not open new page) </a> </div> </div> CSS .outer, .middle, .inner1, .inner2 { display: block; width: 520px; padding:
15px; margin:
15px; text-decoration: none; } .outer { border: 1px solid red; color: red; } .middle { border: 1px solid green; color: green; width: 460px; } .inner1, .inner2 { border: 1px solid purple; color: purple; width: 400px; } JavaScript const outer = document.querySelector('.outer'); const middle = document.querySelector('.middle'); const inner1 = document.querySe...
ExtendableEvent - Web APIs
"2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/ExtendableEvent" target="_top"><rect x="116" y="1" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ExtendableEvent</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Note: This interface is only available when the global scope is a ServiceWo...
File.lastModified - Web APIs
urrent time Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of someFile.lastModified might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 20us in Firefox 59; in 60 it will be 2ms. // reduced time precision (2ms) in Firefox 60 someFile.lastModified; //
1519211809934 //
1519211810362 //
1519211811670 // ... // reduced time precision with `privacy.resistFingerprinting` enabled someFile.lastModified; //
1519129853500 //
1519129858900 //
1519129864400 // ... In Firefox, you can also enabled privacy.resistFingerprinting, the precision will be 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger. ...
File.lastModifiedDate - Web APIs
recision To offer protection against timing attacks and fingerprinting, the precision of someFile.lastModifiedDate.getTime() might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 20us in Firefox 59; in 60 it will be 2ms. // reduced time precision (2ms) in Firefox 60 someFile.lastModifiedDate.getTime(); //
1519211809934 //
1519211810362 //
1519211811670 // ... // reduced time precision with `privacy.resistFingerprinting` enabled someFile.lastModifiedDate.getTime(); //
1519129853500 //
1519129858900 //
1519129864400 // ... In Firefox, you can also enable privacy.resistFingerprinting, the precision will be 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whicheve...
File - Web APIs
Instance properties File.prototype.lastModified Read only Returns the last modified time of the file,...
FileSystem.name - Web APIs
droidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetnameChrome Full support 7Edge Full support <=18Firefox Full support 50IE No support NoOpera Full support
15Safari Full support 11.1WebView Android Full support <=37Chrome Android Full support 18Firefox Android Full support 50Opera Android Full support 14Safari iOS F...
FileSystem.root - Web APIs
droidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetrootChrome Full support 7Edge Full support <=18Firefox Full support 50IE No support NoOpera Full support
15Safari Full support 11.1WebView Android Full support <=37Chrome Android Full support 18Firefox Android Full support 50Opera Android Full support 14Safari iOS F...
FocusEvent - Web APIs
s,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="
153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="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" ...
Using the Frame Timing API - Web APIs
bserver.observe(). PerformanceObserverEntryList.getEntriesByType() Returns a list of explicitly observed PerformanceEntry objects of the given entry type. PerformanceObserverEntryList.getEntriesByName() Returns a list of explicitly observed PerformanceEntry objects based on the given name and entry type. In the following example, the observer only processes "frame" entries. ...
GlobalEventHandlers.onload - Web APIs
functionRef; Value functionRef is the handler function to be called when the window's load event fires. Examples window.onload = function() { init(); doSomethingElse(); }; <!doctype html> <html> <head> <title>onload test</title> // ES5 <script> function load() { console.log("load event detected!"); } window.onload = load; </script> // ES20
15 <script> const load = () => { console.log("load event detected!"); } window.onload = load; </script> </head> <body> <p>The load event fires when the document has finished loading!</p> </body> </html> Notes The load event fires at the end of the document loading process. At this point, all of the objects in the document are in the DOM, and all the ima...
HTMLAnchorElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLAudioElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLBRElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLButtonElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLDListElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLDataListElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLDivElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLDocument - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLEmbedElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLFieldSetElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLFormControlsCollection - Web APIs
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-baseline="middle">HTMLCollection</text></a><polyline points="141,25
151,20
151,30 141,25" stroke="#D4DDE4" fill="none"/><line x1="
151" y1="25" x2="181" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLFormControlsCollection" target="_top"><rect x="181" y="1" width="260" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="311" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="mid...
HTMLHRElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLHeadingElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLIFrameElement.allowPaymentRequest - Web APIs
owPaymentRequest ExperimentalChrome Full support 60Disabled Full support 60Disabled Disabled From version 60: this feature is behind the #web-payments preference (needs to be set to Enabled). ...
HTMLIFrameElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLImageElement.lowSrc - Web APIs
ement.lowSrc; Value A DOMString specifying the URL of a version of the image specified by src which has been modified in some fashion so that it loads significantly more quickly than the primary image. There are a number of ways to achieve this; primary among them: Higher compression levels (for example, a primary image saved as a JPEG using 85% quality might have a lowSrc version saved at
15%. Reduced color depth; a primary image in 32-bit color might have an alternate image in 8-bit color. Important: The lowSrc property is obsolete and should not be used. Instead, you should use an image format which loads progressively (such as progressive JPEG). Or simply make sure your images are all well-optimized and balanced for appearance versus size. Usage notes lowSrc is a strange ca...
HTMLImageElement.srcset - Web APIs
px.png 2x"> </div> CSS The CSS simply specifies that the image and its surrounding box should be 200 pixels square and should have a simple border around it. Also provided is the word-break attribute, using the break-all value to tell the browser to wrap the string within the width available regardless of where in the string the wrap must occur. .box { width: 200px; border: 2px solid rgba(
150,
150,
150, 255); padding: 0.5em; word-break: break-all; } .box img { width: 200px; } JavaScript The following code is run within a handler for the window's load event. It uses the image's currentSrc property to fetch and display the URL selected by the browser from the srcset. let box = document.querySelector(".box"); let image = box.querySelector("img"); let newElem = document.crea...
HTMLImageElement.useMap - Web APIs
ng value of useMap must be a valid anchor for a <map> element. In other words, this string should be the value of the appropriate <map>'s name attribute with a pound or hash symbol prepended to it. Consider a <map> that looks like this: <map name="mainmenu-map"> <area shape="circle" coords="25, 25, 75, 75" href="/index.html" alt="Return to home page"> <area shape="rect" coords="25, 25, 100,
150" href="/index.html" alt="Shop"> </map> Given the image map named mainmenu-map, the image which uses it should look something like the following: <img src="menubox.png" usemap="#mainmenu-map"> For additional examples (including interactive ones), see the articles about the <map> and <area> elements, as well as the guide to using image maps. Example The source for this interactive example ...
HTMLImageElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLInputElement.stepUp() - Web APIs
tep value Example step declaration date 1 (day) 7 day (one week) increments: <input type="date" min="2019-12-25" step="7"> month 1 (month) 12 month (one year) increments: <input type="month" min="2019-12" step="12"> week 1 (week) Two week increments: <input type="week" min="2019-W23" step="2"> time 60 (seconds) 900 second (
15 minute) increments: <input type="time" min="09:00" step="900"> datetime-local 1 (day) Same day of the week: <input type="datetime-local" min="019-12-25T19:30" step="7"> number 1 0.1 increments <input type="number" min="0" step="0.1" max="10"> range 1 Increments by 2: <input type="range" min="0" step="2" max="10"> The method, when...
HTMLInputElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLLIElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLLabelElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLLegendElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLMapElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLMediaElement.onencrypted - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLMediaElement.onwaitingforkey - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLMediaElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLMenuItemElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLMeterElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLModElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLOListElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLObjectElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLOptGroupElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLOptionElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLOptionsCollection - Web APIs
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-baseline="middle">HTMLCollection</text></a><polyline points="141,25
151,20
151,30 141,25" stroke="#D4DDE4" fill="none"/><line x1="
151" y1="25" x2="181" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLOptionsCollection" target="_top"><rect x="181" y="1" width="210" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="286" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" ...
HTMLOutputElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLParagraphElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLParamElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLPictureElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLPreElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLProgressElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLQuoteElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLSelectElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLShadowElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLSourceElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLStyleElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLTableCaptionElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLTableCellElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLTableColElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLTableElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLTableRowElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLTableSectionElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLTemplateElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLTextAreaElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLTitleElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLTrackElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLUListElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLUnknownElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HTMLVideoElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
HashChangeEvent - Web APIs
"2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HashChangeEvent" target="_top"><rect x="116" y="1" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HashChangeEvent</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties This interface also inherits the properties of its parent, Event...
IDBTransaction.onerror - Web APIs
Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support
15Safari Full support 7WebView Android Full support YesChrome Android Full support YesFirefox Android Full support 22Opera Android Full support 14Safari iOS Full...
InputEvent - Web APIs
s,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="
153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="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" ...
KeyboardEvent - Web APIs
s,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="
153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="191,25 201,20 201,30 191,25" stroke="#D4DDE4" fill="none"/><line x1="201" y1="25" x2="231" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/KeyboardEvent" target="_top"><rect x="231" y="1" width="130" height="5...
MediaDevices.getSupportedConstraints() - Web APIs
listing the constraints supported by the user agent. Because only constraints supported by the user agent are included in the list, each of these Boolean properties has the value true. Example This example outputs a list of the constraints supported by your browser. ...
MediaDevices.getUserMedia() - Web APIs
ers, as it is going away. video.src = window.URL.createObjectURL(stream); } video.onloadedmetadata = function(e) { video.play(); }; }) .catch(function(err) { console.log(err.name + ": " + err.message); }); Frame rate Lower frame-rates may be desirable in some cases, like WebRTC transmissions with bandwidth restrictions. var constraints = { video: { frameRate: { ideal: 10, max:
15 } } }; Front and back camera On mobile phones. var front = false; document.getElementById('flip-button').onclick = function() { front = !front; }; var constraints = { video: { facingMode: (front? "user" : "environment") } }; Specifications Specification Status Comment Media Capture and StreamsThe definition of 'MediaDevices.getUserMedia()' in that specification...
MediaKeySession.onkeystatuseschange - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MediaKeySession" target="_top"><rect x="
151" y="1" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="226" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MediaKeySession</text></a></svg></div> a:hover text { f...
MediaKeySession.onmessage - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MediaKeySession" target="_top"><rect x="
151" y="1" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="226" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MediaKeySession</text></a></svg></div> a:hover text { f...
MediaSource - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/MediaSource" target="_top"><rect x="
151" y="1" width="110" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="206" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">MediaSource</text></a></svg></div> a:hover text { fill: #00...
MediaStreamConstraints.video - Web APIs
olor: darkgreen; } JavaScript content let videoElement = document.getElementById("video"); let logElement = document.getElementById("log"); function log(msg) { logElement.innerHTML += msg + "<br>"; } document.getElementById("startButton").addEventListener("click", function() { navigator.mediaDevices.getUserMedia({ video: { width: 160, height: 120, frameRate:
15 } }).then(stream => videoElement.srcObject = stream) .catch(err => log(err.name + ": " + err.message)); }, false); Here we see an event handler for a click event which calls getUserMedia(), specifying a set of video constraints that indicate a preference for a video track whose dimensions are as close as possible to 160x120 pixels, and whose frame rate is as close to
15 frames per se...
Recording a media element - Web APIs
ing() function we created earlier, passing in the preview video stream (as the source media to be recorded) and recordingTimeMS as the number of milliseconds of media to record. As mentioned before, startRecording() returns a Promise whose resolution handler is called (receiving as input an array of Blob objects containing the chunks of recorded media data) once recording has completed. Lines 11-
15 The recording process's resolution handler receives as input an array of media data Blobs locally known as recordedChunks. The first thing we do is merge the chunks into a single Blob whose MIME type is "video/webm" by taking advantage of the fact that the Blob() constructor concatenates arrays of objects into one object. Then URL.createObjectURL() is used to create an URL that references the bl...
Capabilities, constraints, and settings - Web APIs
bled></textarea> </div> </div> <div class="button" id="applyButton"> Apply Constraints </div> </div> <video id="video" autoplay></video> <div class="button" id="stopButton"> Stop Video </div> <div id="log"> </div> CSS content body { font: 14px "Open Sans", "Arial", sans-serif; } video { margin-top: 20px; border: 1px solid black; } .button { cursor: pointer; width:
150px; border: 1px solid black; font-size: 16px; text-align: center; padding-top: 2px; padding-bottom: 4px; color: white; background-color: darkgreen; } .wrapper { margin-bottom: 10px; width: 600px; } .trackrow { height: 200px; } .leftside { float: left; width: calc(calc(100%/2) - 10px); } .rightside { float: right; width: calc(calc(100%/2) - 10px); } textarea { pa...
MouseEvent - Web APIs
s,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="
153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="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" ...
Node.getUserData() - Web APIs
UserData and Node.getUserData methods are no longer available from Web content. Element.dataset or WeakMap can be used instead. Syntax userData = someNode.getUserData(userKey); Parameters userKey is the key to choose the specific data sought for the given node. More than one key may have been assigned on a given node, containing its own value. Example var d = document.setUserData('key',
15, null); console.log(document.getUserData('key')); //
15 Specifications Specification Status Comment Document Object Model (DOM) Level 3 Core SpecificationThe definition of 'Node.getUserData()' in that specification. Obsolete Initial definition. ...
Node - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a></svg></div> a:hover text { fill: #0095DD; pointer...
OfflineAudioCompletionEvent.renderedBuffer - Web APIs
fox for AndroidOpera for AndroidSafari on iOSSamsung InternetrenderedBufferChrome Full support 14Edge Full support 12Firefox Full support 25IE No support NoOpera Full support
15Safari Full support 6WebView Android Full support YesChrome Android Full support 18Firefox Android Full support 26Opera Android Full support 14Safari iOS Full ...
OfflineAudioContext - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/AudioContext" target="_top"><rect x="
151" y="1" width="120" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">AudioContext</text></a><polyline points="271,25 281,20 281,30 ...
Page Visibility API - Web APIs
e details. Budget-based background timeout throttling is now available in modern browsers (Firefox 58+, Chrome 57+), placing an additional limit on background timer CPU usage. This operates in a similar way across modern browsers, with the details being as follows: In Firefox, windows in background tabs each have their own time budget in milliseconds -- a max and a min value of +50 ms and -
150 ms, respectively. Chrome is very similar except that the budget is specified in seconds. Windows are subjected to throttling after 30 seconds, with the same throttling delay rules as specified for window timers (again, see Reasons for delays longer than specified). In Chrome, this value is 10 seconds. Timer tasks are only permitted when the budget is non-negative. Once a timer's code ha...
PannerNode.coneInnerAngle - Web APIs
onst osc = new OscillatorNode(context); osc.type = 'sawtooth'; const panner = new PannerNode(context); panner.panningModel = 'HRTF'; Next, we set up the cone of our spatialised sound, determining the area in which it can be heard: // this value determines the size of the area in which the sound volume is constant // if coneInnerAngle == 30, it means that when the sound is rotated // by at most
15 (30/2) degrees either direction, the volume won't change panner.coneInnerAngle = 30; // this value determines the size of the area in which the sound volume decreases gradually // if coneOuterAngle == 45 and coneInnerAngle == 30, it means that when the sound is rotated // by between
15 (30/2) and 22.5 (45/2) degrees either direction, // the volume will decrease gradually panner.coneOuterAngle = 4...
PannerNode.coneOuterAngle - Web APIs
onst osc = new OscillatorNode(context); osc.type = 'sawtooth'; const panner = new PannerNode(context); panner.panningModel = 'HRTF'; Next, we set up the cone of our spatialised sound, determining the area in which it can be heard: // this value determines the size of the area in which the sound volume is constant // if coneInnerAngle == 30, it means that when the sound is rotated // by at most
15 (30/2) degrees either direction, the volume won't change panner.coneInnerAngle = 30; // this value determines the size of the area in which the sound volume decreases gradually // if coneOuterAngle == 45 and coneInnerAngle == 30, it means that when the sound is rotated // by between
15 (30/2) and 22.5 (45/2) degrees either direction, // the volume will decrease gradually panner.coneOuterAngle = 4...
PannerNode.coneOuterGain - Web APIs
onst osc = new OscillatorNode(context); osc.type = 'sawtooth'; const panner = new PannerNode(context); panner.panningModel = 'HRTF'; Next, we set up the cone of our spatialised sound, determining the area in which it can be heard: // this value determines the size of the area in which the sound volume is constant // if coneInnerAngle == 30, it means that when the sound is rotated // by at most
15 (30/2) degrees either direction, the volume won't change panner.coneInnerAngle = 30; // this value determines the size of the area in which the sound volume decreases gradually // if coneOuterAngle == 45 and coneInnerAngle == 30, it means that when the sound is rotated // by between
15 (30/2) and 22.5 (45/2) degrees either direction, // the volume will decrease gradually panner.coneOuterAngle = 4...
PannerNode.distanceModel - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
PannerNode.maxDistance - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
PannerNode.orientationX - Web APIs
onst osc = new OscillatorNode(context); osc.type = 'sawtooth'; const panner = new PannerNode(context); panner.panningModel = 'HRTF'; Next, we set up the cone of our spatialised sound, determining the area in which it can be heard: // this value determines the size of the area in which the sound volume is constant // if coneInnerAngle == 30, it means that when the sound is rotated // by at most
15 (30/2) degrees either direction, the volume won't change panner.coneInnerAngle = 30; // this value determines the size of the area in which the sound volume decreases gradually // if coneOuterAngle == 45 and coneInnerAngle == 30, it means that when the sound is rotated // by between
15 (30/2) and 22.5 (45/2) degrees either direction, // the volume will decrease gradually panner.coneOuterAngle = 4...
PannerNode.orientationY - Web APIs
onst osc = new OscillatorNode(context); osc.type = 'sawtooth'; const panner = new PannerNode(context); panner.panningModel = 'HRTF'; Next, we set up the cone of our spatialised sound, determining the area in which it can be heard: // this value determines the size of the area in which the sound volume is constant // if coneInnerAngle == 30, it means that when the sound is rotated // by at most
15 (30/2) degrees either direction, the volume won't change panner.coneInnerAngle = 30; // this value determines the size of the area in which the sound volume decreases gradually // if coneOuterAngle == 45 and coneInnerAngle == 30, it means that when the sound is rotated // by between
15 (30/2) and 22.5 (45/2) degrees either direction, // the volume will decrease gradually panner.coneOuterAngle = 4...
PannerNode.orientationZ - Web APIs
onst osc = new OscillatorNode(context); osc.type = 'sawtooth'; const panner = new PannerNode(context); panner.panningModel = 'HRTF'; Next, we set up the cone of our spatialised sound, determining the area in which it can be heard: // this value determines the size of the area in which the sound volume is constant // if coneInnerAngle == 30, it means that when the sound is rotated // by at most
15 (30/2) degrees either direction, the volume won't change panner.coneInnerAngle = 30; // this value determines the size of the area in which the sound volume decreases gradually // if coneOuterAngle == 45 and coneInnerAngle == 30, it means that when the sound is rotated // by between
15 (30/2) and 22.5 (45/2) degrees either direction, // the volume will decrease gradually panner.coneOuterAngle = 4...
PannerNode.panningModel - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
PannerNode.setOrientation() - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
PannerNode.setPosition() - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
PannerNode.setVelocity() - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
PannerNode - Web APIs
me); } else { listener.setOrientation(0,0,-1,0,1,0); } var source; var play = document.querySelector('.play'); var stop = document.querySelector('.stop'); var boomBox = document.querySelector('.boom-box'); var listenerData = document.querySelector('.listener-data'); var pannerData = document.querySelector('.panner-data'); leftBound = (-xPos) + 50; rightBound = xPos - 50; xIterator = WIDTH/
150; // listener will always be in the same place for this demo if(listener.positionX) { listener.positionX.setValueAtTime(xPos, audioCtx.currentTime); listener.positionY.setValueAtTime(yPos, audioCtx.currentTime); listener.positionZ.setValueAtTime(300, audioCtx.currentTime); } else { listener.setPosition(xPos,yPos,300); } listenerData.innerHTML = 'Listener data: X ' + xPos + ' Y ' + yPos...
Path2D.addPath() - Web APIs
and createSVGMatrix(). We then add the second path to the first using addPath(), also applying the matrix to move the second path to the right. Finally, we draw the first path (which now contains both rectangles) using fill(). ...
PaymentAddress.toJSON() - Web APIs
n iOSSamsung InternettoJSON()Chrome Full support 61Disabled Full support 61Disabled Disabled From version 61: this feature is behind the #web-payments preference (needs to be set to Enabled). To change preferences in Chrome, visit chrome://flags.Edge Full support
15Firefox Full support 62Notes Disabled Full support 62Notes Disabled Notes Available only in nightly builds. Requires the comma-delineated list in dom.payments.request.supportedRegions to contain one or more of the supported 2-character ISO locales, currently US and CA.Disabled From version 62: this feature i...
PaymentRequest.abort() - Web APIs
bute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internetabort()Chrome Full support 61Edge Full support
15Firefox Full support 55Notes Disabled Full support 55Notes Disabled Notes Available only in nightly builds.Disabled From version 55: this feature is behind the dom.payments.request.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.IE No support...
PaymentRequest.onshippingaddresschange - Web APIs
, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetonshippingaddresschangeChrome Full support 61Edge Full support
15Firefox Full support 55Notes Disabled Full support 55Notes Disabled Notes Available only in nightly builds.Disabled From version 55: this feature is behind the dom.payments.request.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.IE No support...
PaymentRequest.onshippingoptionchange - Web APIs
a, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetonshippingoptionchangeChrome Full support 61Edge Full support
15Firefox Full support 55Notes Disabled Full support 55Notes Disabled Notes Available only in nightly builds.Disabled From version 55: this feature is behind the dom.payments.request.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.IE No support...
PaymentRequest.shippingOption - Web APIs
the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetshippingOptionChrome Full support 61Edge Full support
15Firefox Full support 55Notes Disabled Full support 55Notes Disabled Notes Available only in nightly builds.Disabled From version 55: this feature is behind the dom.payments.request.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.IE No support...
PaymentRequest.shippingType - Web APIs
to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetshippingTypeChrome Full support 61Edge Full support
15Firefox Full support 55Notes Disabled Full support 55Notes Disabled Notes Available only in nightly builds.Disabled From version 55: this feature is behind the dom.payments.request.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.IE No support...
PaymentResponse.complete() - Web APIs
e to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internetcomplete()Chrome Full support 61Edge Full support
15Firefox 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). To change preferences in Firefox, visit about:config.IE No support...
PaymentResponse.details - Web APIs
bute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetdetailsChrome Full support 61Edge Full support
15Firefox 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). To change preferences in Firefox, visit about:config.IE No support...
PaymentResponse.payerEmail - Web APIs
e to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetpayerEmailChrome Full support 61Edge Full support
15Firefox 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). To change preferences in Firefox, visit about:config.IE No support...
PaymentRequest.payerName - Web APIs
te to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetpayerNameChrome Full support 61Edge Full support
15Firefox 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). To change preferences in Firefox, visit about:config.IE No support...
PaymentResponse.shippingAddress - Web APIs
the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetshippingAddressChrome Full support 61Edge Full support
15Firefox 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). To change preferences in Firefox, visit about:config.IE No support...
PaymentResponse.shippingOption - Web APIs
the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetshippingOptionChrome Full support 61Edge Full support
15Firefox 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). To change preferences in Firefox, visit about:config.IE No support...
performance.now() - Web APIs
will be approximately equal to Date.now(). Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of performance.now() might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 1ms. // reduced time precision (1ms) in Firefox 60 performance.now(); // 8781416 // 87818
15 // 8782206 // ... // reduced time precision with `privacy.resistFingerprinting` enabled performance.now(); // 8865400 // 8866200 // 8866700 // ... In Firefox, you can also enable privacy.resistFingerprinting -- this changes the precision to 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger. Starting with Firefox 79, high resolution time...
performance.setResourceTimingBufferSize() - Web APIs
Note: This feature is available in Web Workers. Syntax performance.setResourceTimingBufferSize(maxSize); Arguments maxSize A number representing the maximum number of performance entry objects the browser should hold in its performance entry buffer. Return value none This method has no return value. ...
PerformanceMark - Web APIs
x="81" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceEntry</text></a><polyline points="161,25 171,20 171,30 161,25" stroke="#D4DDE4" fill="none"/><line x1="171" y1="25" x2="201" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/PerformanceMark" target="_top"><rect x="201" y="1" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="276" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">PerformanceMark</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties This interface has no properties but it extends the following Pe...
PerformancePaintTiming - Web APIs
The time to first-contentful-paint was 2787.460 milliseconds. Specifications Specification Status Comment Paint TimingThe definition of 'PerformancePaintTiming' in that specification. Working Draft Initial definition. ...
ProcessingInstruction - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
PushEvent.data - Web APIs
Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/brow...
PushEvent - Web APIs
Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn...
RTCDTMFSender - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/RTCDTMFSender" target="_top"><rect x="
151" y="1" width="130" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="216" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">RTCDTMFSender</text></a></svg></div> a:hover text { fill:...
RTCIceCandidate.candidate - Web APIs
escribing the properties of the candidate, taken directly from the SDP attribute "candidate". The candidate string specifies the network connectivity information for the candidate. If the candidate is an empty string (""), the end of the candidate list has been reached; this candidate is known as the "end-of-candidates" marker. The syntax of the candidate string is described in RFC 5245, section
15.1. For an a-line (attribute line) that looks like this: a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host the corresponding candidate string's value will be "candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host". The user agent always prefers candidates with the highest priority, all else being equal. In the example above, the priority is 2043278322. The attribut...
RTCIceCandidateInit.candidate - Web APIs
escribing the properties of the candidate, taken directly from the SDP attribute "candidate". The candidate string specifies the network connectivity information for the candidate. If the candidate is an empty string (""), the end of the candidate list has been reached; this candidate is known as the "end-of-candidates" marker. The syntax of the candidate string is described in RFC 5245, section
15.1. For an a-line (attribute line) that looks like this: a=candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host the corresponding candidate string's value will be "candidate:4234997325 1 udp 2043278322 192.168.0.56 44323 typ host". The user agent always prefers candidates with the highest priority, all else being equal. In the example above, the priority is 2043278322. The attribut...
RTCPeerConnection.addIceCandidate() - Web APIs
e) { // signalingChannel.send(JSON.stringify({ice: event.candidate})); // "ice" is arbitrary // } else { // // All ICE candidates have been sent // } // } signalingChannel.onmessage = receivedString => { const message = JSON.parse(receivedString); if (message.ice) { // A typical value of ice here might look something like this: // // {candidate: "candidate:0 1 UDP 2122
154243 192.168.1.9 53421 typ host", sdpMid: "0", ...} // // Pass the whole thing to addIceCandidate: pc.addIceCandidate(message.ice).catch(e => { console.log("Failure during addIceCandidate(): " + e.name); }); } else { // handle other things you might be signaling, like sdp } } The last candidate to be signaled this way by the remote peer will be a special candidate ...
RTCPeerConnection.onicecandidateerror - Web APIs
nction you provide which is passed a single parameter: an RTCPeerConnectionIceErrorEvent object describing the icecandidateerror event. The event offers properties describing the error to help you handle it appropriately. Example pc.onicecandidateerror = function(event) { if (event.errorCode >= 300 && event.errorCode <= 699) { // STUN errors are in the range 300-699. See RFC 5389, section
15.6 // for a list of codes. TURN adds a few more error codes; see // RFC 5766, section
15 for details. } else if (event.errorCode >= 700 && event.errorCode <= 799) { // Server could not be reached; a specific error number is // provided but these are not yet specified. } } Specifications Specification Status Comment WebRTC 1.0: Real-time Communicati...
RTCPeerConnection - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/RTCPeerConnection" target="_top"><rect x="
151" y="1" width="170" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="236" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">RTCPeerConnection</text></a></svg></div> a:hover text...
Using the Resource Timing API - Web APIs
[" + i + "] = " + list[i].encodedBodySize); else console.log("... encodedBodySize[" + i + "] = NOT supported"); if ("transferSize" in list[i]) console.log("... transferSize[" + i + "] = " + list[i].transferSize); else console.log("... transferSize[" + i + "] = NOT supported"); } } Managing the resource buffer Although the browser is required to support at least
150 resource timing performance entries in its resource timing buffer, some applications may use more resources than that limit. To help the developer manage the buffer size, Resource Timing defines two methods that extend the Performance interface. The clearResourceTimings() method removes all "resource" type performance entries from the browser's resource performance entry buffer. The setResourceT...
format - Web APIs
The SVGAltGlyphElement.format property is a DOMString that defines the format of the given font. It has the same meaning as the 'format' property of SVGGlyphRefElement property. If the font is in one of the formats listed in CSS2([CSS2], section
15.3.5), then its value is the corresponding <string> parameter of the font. Syntax string = myGlyph.format; myGlyph.format = string; Value The format values listed below are taken from CSS2([CSS2], section
15.3.5). String Font Format Examples of common extensions truedoc-pfr TrueDoc(TM) Portable Font Resource .pfr embedded-opentype Embedded OpenType .eot type-1 PostScript(TM) Type 1 .pfb, .pfa truetype TrueType .ttf opentype OpenType, including TrueTyp...
SVGAnimateElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGAnimateMotionElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGAnimateTransformElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGAnimationElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGCircleElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGClipPathElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGComponentTransferFunctionElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGCursorElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGDefsElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGDescElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGEllipseElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEBlendElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEColorMatrixElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEComponentTransferElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFECompositeElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEConvolveMatrixElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEDiffuseLightingElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEDisplacementMapElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEDistantLightElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEDropShadowElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEFloodElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEFuncAElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEFuncBElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEFuncGElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEFuncRElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEGaussianBlurElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEImageElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEMergeElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEMergeNodeElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEMorphologyElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEOffsetElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFEPointLightElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFESpecularLightingElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFESpotLightElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFETileElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFETurbulenceElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGFilterElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGForeignObjectElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGGeometryElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGGlyphElement - Web APIs
ssible. <div id="interfaceDiagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveAspectRatio="xMinYMin meet"><a xlink:href="/docs/Web/API/SVGGlyphElement" target="_top"><rect x="1" y="1" width="
150" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="76" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGGlyphElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Warning: This interface was removed in the SVG 2 specification. Properties...
SVGGradientElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGGraphicsElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGLineElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGLinearGradientElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGMaskElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGMetadataElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGPathElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGPatternElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGPolygonElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGPolylineElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGRadialGradientElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGRectElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGSVGElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGScriptElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGSetElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGStopElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGSwitchElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGSymbolElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
SVGTransformList - Web APIs
groot.createSVGTransform(); scale.setScale(0.8,0.8); // apply the transformations by appending the SVGTranform objects to the SVGTransformList associated with the element tfmList.appendItem(translate); tfmList.appendItem(rotate); tfmList.appendItem(scale); } ]]> </script> <polygon fill="orange" stroke="black" stroke-width="5" points="100,225 100,1
15 130,1
15 70,
15 70,
15 10,1
15 40,1
15 40,225" onclick="transformMe(evt)"/> <rect x="200" y="100" width="100" height="100" fill="yellow" stroke="black" stroke-width="5" onclick="transformMe(evt)"/> <text x="40" y="250" font-family="Verdana" font-size="16" fill="green" > Click on a shape to transform it </text> </svg> Live preview: Specifications ...
SVGUseElement - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
ServiceWorkerGlobalScope - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/WorkerGlobalScope" target="_top"><rect x="
151" y="1" width="170" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="236" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">WorkerGlobalScope</text></a><polyline points="321,25 331,20...
SharedWorkerGlobalScope.onconnect - Web APIs
port.onmessage = function(e) { var workerResult = 'Result: ' + (e.data[0] * e.data[1]); port.postMessage(workerResult); } port.start(); } For a complete running example, see our Basic shared worker example (run shared worker.) Note: The data property of the event object used to be null in Firefox. As of version 65 it is now initialized to an empty string, as per spec (bug
1508824). Specifications Specification Status Comment HTML Living StandardThe definition of 'onconnect' in that specification. Living Standard Browser compatibility The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull re...
SourceBuffer - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SourceBuffer" target="_top"><rect x="
151" y="1" width="120" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SourceBuffer</text></a></svg></div> a:hover text { fill: #...
SourceBufferList - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SourceBufferList" target="_top"><rect x="
151" y="1" width="160" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="231" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SourceBufferList</text></a></svg></div> a:hover text {...
SyncEvent - Web APIs
"2px" /><text x="38.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/ExtendableEvent" target="_top"><rect x="116" y="1" width="
150" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">ExtendableEvent</text></a><polyline points="266,25 276,20 276,30 266,25" stroke="#D4DDE4" fill="none"/><line x1="276" y1="25" x2="306" y2="25" stroke="#D4DDE4"/><a xlink:href="/...
Text - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
TextDecoder() - Web APIs
6", "iso8859-7", "iso88597", "iso_8859-7", "iso_8859-7:1987", "sun_eu_greek" 'iso-8859-7' "csiso88598e", "csisolatinhebrew", "hebrew", "iso-8859-8", "iso-8859-8-e", "iso-ir-138", "iso8859-8", "iso88598", "iso_8859-8", "iso_8859-8:1988", "visual" 'iso-8859-8' "csiso88598i", "iso-8859-8-i", "logical" 'iso-8859-8i' "csisolatin6", "iso-8859-10", "iso-ir-
157", "iso8859-10", "iso885910", "l6", "latin6" 'iso-8859-10' "iso-8859-13", "iso8859-13", "iso885913" 'iso-8859-13' "iso-8859-14", "iso8859-14", "iso885914" 'iso-8859-14' "csisolatin9", "iso-8859-
15", "iso8859-
15", "iso8859
15", "l9", "latin9" 'iso-8859-
15' "iso-8859-16" 'iso-8859-16' "cskoi8r", "koi", "koi8", "koi8-r", ...
TextDecoder.prototype.encoding - Web APIs
returns a DOMString containing the name of the decoding algorithm used by the specific decoder. It can be one of the following values: The recommended encoding for the Web: 'utf-8'. The legacy single-byte encodings: 'ibm866', 'iso-8859-2', 'iso-8859-3', 'iso-8859-4', 'iso-8859-5', 'iso-8859-6', 'iso-8859-7', 'iso-8859-8'', 'iso-8859-8i', 'iso-8859-10', 'iso-8859-13', 'iso-8859-14', 'iso-8859-
15', 'iso-8859-16', 'koi8-r', 'koi8-u', 'macintosh', 'windows-874', 'windows-1250', 'windows-1251', 'windows-1252', 'windows-1253', 'windows-1254', 'windows-1255', 'windows-1256', 'windows-1257', 'windows-1258', or 'x-mac-cyrillic'. The legacy multi-byte Chinese (simplified) encodings: 'gbk', 'gb18030', and 'hz-gb-2312'. The legacy multi-byte Chinese (traditional) encoding: 'big5'. The legacy mul...
A simple RTCDataChannel sample - Web APIs
messagebox" id="receivebox"> <p>Messages received:</p> </div> The JavaScript code While you can just look at the code itself on GitHub, below we'll review the parts of the code that do the heavy lifting. The WebRTC API makes heavy use of Promises. They make it very easy to chain the steps of the connection process together; if you haven't already read up on this functionality of ECMAScript 20
15, you should read up on them. Similarly, this example uses arrow functions to simplify syntax. Starting up When the script is run, we set up an load event listener, so that once the page is fully loaded, our startup() function is called. function startup() { connectButton = document.getElementById('connectButton'); disconnectButton = document.getElementById('disconnectButton'); sendButton...
Writing WebSocket servers - Web APIs
in a series. If it's 0, then the server keeps listening for more parts of the message; otherwise, the server should consider the message delivered. More on this later. Decoding Payload Length To read the payload data, you must know when to stop reading. That's why the payload length is important to know. Unfortunately, this is somewhat complicated. To read it, follow these steps: Read bits 9-
15 (inclusive) and interpret that as an unsigned integer. If it's 125 or less, then that's the length; you're done. If it's 126, go to step 2. If it's 127, go to step 3. Read the next 16 bits and interpret those as an unsigned integer. You're done. Read the next 64 bits and interpret those as an unsigned integer. (The most significant bit must be 0.) You're done. Reading and Unmasking the Data ...
Advanced techniques: Creating and sequencing audio - Web APIs
lications is getting the sounds to play in time so that the beat remains consistent, and things do not slip out of time. AudioContext object instances have a currentTime property, which allows us to retrieve the number of seconds after we first created the context. This is what we shall use for timing within our step sequencer -- It's extremely accurate, returning a float value accurate to about
15 decimal places. We could schedule our voices to play within a for loop, however the biggest problem with this is updating whilst it is playing, and we've already implemented UI controls to do so. Also, it would be really nice to consider an instrument-wide BPM control. The best way to get our voices to play on the beat is to create a scheduling system, whereby we look ahead at when the notes are...
WheelEvent - Web APIs
s,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Event</text></a><polyline points="76,25 86,20 86,30 76,25" stroke="#D4DDE4" fill="none"/><line x1="86" y1="25" x2="116" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/UIEvent" target="_top"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="
153.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">UIEvent</text></a><polyline points="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" ...
Window.find() - Web APIs
aWholeWord, aSearchInFrames, aShowDialog); aString The text string for which to search. aCaseSensitive Boolean. If true, specifies a case-sensitive search. aBackwards Boolean. If true, specifies a backward search. aWrapAround Boolean. If true, specifies a wrap around search. aWholeWord Unimplemented Boolean. If true, specifies a whole word search. This is not implemented; see bug 48
1513. aSearchInFrames Boolean. If true, specifies a search in frames. Returns true if the string is found; otherwise, false. Example JavaScript findString = function findText(text) { alert("String \x22" + text + "\x22 found? " + window.find(text)); } HTML <p>Apples, Bananas, and Oranges.</p> <button type="button" onClick='findString("Apples")'>Search for Apples</button> <button type="but...
Privileged features - Web APIs
wered window can not be on top of the parent but the parent window can be minimized. In NS 6.x, the alwaysLowered window has no minimize system command icon and no restore/maximize system command. alwaysOnTop If on, the new window will always be displayed on top of all other windows (browser windows and otherwise), regardless of whether it is active or not. This was added in Firefox 66 (see bug
1519893). z-lock Same as alwaysLowered. close When set to no or 0, this feature removes the system close command icon and system close menu item. It will only work for dialog windows (dialog feature set). close=no will override minimizable=yes. Mozilla and Firefox users can force new windows to always have a close button by setting dom.disable_window_open_feature.close to true in about:config...
Window.personalbar - Web APIs
ozilla.org/show_bug.cgi?id=790023 The following complete HTML example shows the way that the visible property of the various "bar" objects is used, and also the change to the privileges necessary to write to the visible property of any of the bars on an existing window. Due to deprecation of enablePrivilege this functionality can not be used in web pages. EnablePrivilege is disabled in Firefox
15 and will be removed in Firefox 17. <!DOCTYPE html> <html> <head> <title>Various DOM Tests</title> <script> // changing bar states on the existing window netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); window.personalbar.visible = !window.personalbar.visible; </script> </head> <body> <p>Various DOM Tests</p> </body> </html> Notes When you load the example page ...
Window.showModalDialog() - Web APIs
No support NoFirefox No support 3 -- 56IE Full support 4Opera No support NoSafari Full support 5.1Notes Full support 5.1Notes Notes See WebKit bug
151885 for possible future removal from Safari.WebView Android No support NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support ...
Window.toolbar - Web APIs
tax objRef = window.toolbar Example The following complete HTML example shows way that the visible property of the various "bar" objects is used, and also the change to the privileges necessary to write to the visible property of any of the bars on an existing window. Due to deprecation of enablePrivilege this functionality can not be used in web pages. EnablePrivilege is disabled in Firefox
15 and will be removed in Firefox 17. <!DOCTYPE html> <html> <head> <title>Various DOM Tests</title> <script> // changing bar states on the existing window netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); window.toolbar.visible=!window.toolbar.visible; </script> </head> <body> <p>Various DOM Tests</p> </body> </html> Notes When you load the example page above, the...
WindowOrWorkerGlobalScope.fetch() - Web APIs
fetch. Some browsers accept the blob: and data: schemes. A Request object. init Optional An object containing any custom settings that you want to apply to the request. The possible options are: method The request method, e.g., GET, POST. Note that the Origin header is not set on Fetch requests with a method of HEAD or GET. (This behavior was corrected in Firefox 65 -- see bug
1508661). headers Any headers you want to add to your request, contained within a Headers object or an object literal with ByteString values. Note that some names are forbidden. body Any body that you want to add to your request: this can be a Blob, BufferSource, FormData, URLSearchParams, USVString, or ReadableStream object. Note that a request using the GET or HEAD method cannot have a bod...
XMLDocument - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/Node" target="_top"><rect x="
151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke=...
XMLHttpRequestEventTarget - Web APIs
entTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="
151" y2="25" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/XMLHttpRequestEventTarget" target="_top"><rect x="
151" y="1" width="250" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="276" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">XMLHttpRequestEventTarget</text></a></svg></div> ...
XRBoundedReferenceSpace.boundsGeometry - Web APIs
boundsGeometry array may be rounded or adjusted by some amount. The specification recommends that browsers shift the points to the nearest 5 centimeters (while avoiding going outside the physical limitations of the hardware). Boundary size XRBoundedReferenceSpace is not intended to be used for very large bounded areas. Instead, it's meant to be used for one-room spaces with no more than around
15 meters of available movement space in any direction from the native origin. That said, the bounds extend upward indefinitely, since the bounds are defined in only two dimensions. If you need to create a multi-room space, or a space which is very large or needs to have varying floor levels, you should instead use an unbounded XRReferenceSpace and enforce the bounds on your own, as appropriate. B...
ARIA live regions - Accessibility
rt of the individual attributes with combinations of OS/Browser/AT). General support for Live Regions was added to JAWS on version 10.0. In Windows Eyes supports Live Regions since version 8.0 "for use outside of Browse Mode for Microsoft Internet Explorer and Mozilla Firefox". NVDA added some basic support for Live Regions for Mozilla Firefox back in 2008 and was improved in 2010 and 2014. In 20
15, basic support was also added for Internet Explorer (MSHTML). The Paciello Group has some information about the state of the support of Live Regions (2014). Paul J. Adam has researched the support of Aria-Atomic and Aria-Relevant in particular. aria-atomic: The aria-atomic=BOOLEAN is used to set whether or not the screen reader should always present the live region as a whole, even if only p...
ARIA annotations - Accessibility
Chris said</h3> <p class="comment-text">I really think this moment could use more cowbell.</p> <p><time datetime="2019-03-30T19:29">March 30 2019, 19:29</time></p> </div> <div role="comment" id="thread-2" data-author="chris"> <h3>Marcus said</h3> <p class="comment-text">The guitar solo could do with a touch more chorus, and a slightly lower volume.</p> <p><time datetime="2019-03-29T
15:35">March 29 2019,
15:35</time></p> </div> Nested comments are also possible with ARIA annotations -- simply nest the comments inside one another, like so: <div role="comment" id="thread-1" data-author="chris"> <h3>Chris said</h3> <p class="comment-text">I really think this moment could use more cowbell.</p> <p><time datetime="2019-03-30T19:29">March 30 2019, 19:29</time></p> <div role...
ARIA: Comment role - Accessibility
Chris said</h3> <p class="comment-text">I really think this moment could use more cowbell.</p> <p><time datetime="2019-03-30T19:29">March 30 2019, 19:29</time></p> </div> <div role="comment" id="thread-2" data-author="chris"> <h3>Marcus said</h3> <p class="comment-text">The guitar solo could do with a touch more chorus, and a slightly lower volume.</p> <p><time datetime="2019-03-29T
15:35">March 29 2019,
15:35</time></p> </div> Nested comments Nested comments are also possible with ARIA annotations -- simply nest the comments inside one another, like so: <div role="comment" id="thread-1" data-author="chris"> <h3>Chris said</h3> <p class="comment-text">I really think this moment could use more cowbell.</p> <p><time datetime="2019-03-30T19:29">March 30 2019, 19:29</time>...
ARIA: grid role - Accessibility
ex="-1"> 9 </td> <td role="gridcell" tabindex="-1"> 10 </td> <td role="gridcell" tabindex="-1"> 11 </td> <td role="gridcell" tabindex="-1"> 12 </td> <td role="gridcell" tabindex="-1"> 13 </td> <td role="gridcell" tabindex="-1"> 14 </td> <td role="gridcell" tabindex="-1">
15 </td> </tr> <tr role="row"> <th scope="row" role="rowheader">Week 38</th> <td role="gridcell" tabindex="-1"> 16 </td> <td role="gridcell" tabindex="-1"> 17 </td> <td role="gridcell" tabindex="-1"> 18 </td> <td role="gridcell" tabindex="-1"> 19 </td> <td role="gridcell" tabindex="-1"> ...
ARIA: row role - Accessibility
han on the row itself. If the columns displayed are contiguous, then it can be placed on the row. The attribute takes as its value an integer between 1 and the total number of columns within the table, grid or treegrid. When placed on the row, the aria-colindex defines an element's column index or position with respect to the total number of columns within a row. For example, in a table with
15 columns, and columns 4, 5, and 6 are in the DOM, aria-colindex="4" could be set on every row. If the set of columns which is present in the DOM is not contiguous, or if there are cells spanning more than one row or column, put the aria-colindex on all of the children of each row instead of on the row itself. If all the columns are in the DOM, this attribute is not necessary. aria-rowind...
Web applications and ARIA FAQ - Accessibility
ues--such as adding ARIA using JavaScript, not directly to your markup--in order to more gracefully support older browsers and assistive technologies. Browsers ARIA is supported in the following browsers: Browser Minimum Version Notes Firefox 3.0+ Works with NVDA, JAWS 10+, and Orca Chrome Latest Screen reader support still experimental as of Chrome
15 Safari 4+ Safari 5 support is much improved. Live region support requires Safari 5 with VoiceOver on iOS5 or OS X Lion Opera 9.5+ Requires VoiceOver on OS X. TBD: how well does this currently work? Internet Explorer 8+ Works with JAWS 10+ and NVDA. No live region support in NVDA. IE9 support is much improved. In some cases, earlier versi...
Cognitive accessibility - Accessibility
software is a good way to help ensure it can be used by alternate presentational modes. Time It is important to allow users the time they require to complete tasks. Guideline 2.2 states "provide users enough time to read and use content." A time limit is any process that happens without user initiation after a set time or on a periodic basis, such as being logged out after 30 minutes or having
15 minutes to make a purchase. People with cognitive disabilities may require more time to read content, or to perform functions such as filling out forms. Solutions include providing users enough additional time to complete tasks or eliminate time constraints altogether. Timers Options for adjusting time requirements include: Allowing the user to turn off or adjust the time to at least ...
Accessibility documentation index - Accessibility
an ARIA role and the appropriate states and properties to an element during its life-cycle, unless the element already has appropriate ARIA semantics (via use of an appropriate HTML element). Addition of ARIA semantics only exposes extra information to a browser's accessibility API, and does not affect a page's DOM. 14 ARIA Technique Template Accessibility No summary!
15 Using the alert role ARIA, Accessibility, Advanced, CSS, Example, HTML, NeedsContent, alert, alert role, alertrole, alerts, assitive technology, role configuration, wcag1.2.1, wcag3.3.1 The alert role is used to communicate an important and usually time-sensitive message to the user. When this role is added to an element, the browser will send out an accessible alert event to assist...
Web accessibility for seizures and physical reactions - Accessibility
often the screen is refreshed, the more stable it appears to the human eye, and the less it "flickers". The vast majority of modern technology refreshes at a rate that does not cause problems with photosensitivity. However, not everybody is wealthy enough to be able to afford the most recent technology: older or underpowered computers can have low refresh rates. AbilityNet's Factsheet (November 20
15) Computers and Epilepsy (pdf) describes more of the details on refresh rates. A very old article, Tech Republic's Epilepsy and CRT/LCD screen flicker, had an interesting response concerning the refresh rates in Hz. "This effect is noticable, and documented, up to 70 Hz." "These studies would seem to indicate that you should stay away from refresh rates under 70 Hz, and use a rate not divisib...
Color contrast - Accessibility
ween background and foreground content (that is, usually text) should be great enough to ensure legibility. When designing readable interfaces for different vision capabilities, the WCAG guidelines recommend the following contrast ratios: Type of content Minimum ratio (AA rating) Enhanced ratio (AAA rating) Body text 4.5 : 1 7 : 1 Large-scale text (120-
150% larger than body text) 3 : 1 4.5 : 1 Active user interface components and graphical objects such as icons and graphs 3 : 1 Not defined These ratios do not apply to "incidental" text, such as inactive controls, logotypes, or purely decorative text. See the Solution section below for further information. Having good color contrast on your site benefits all your users...
-moz-orient - CSS: Cascading Style Sheets
Though submitted to the W3C, with positive initial feedback, this property is not yet part of any specification; currently, this is a Mozilla-specific extension (that is, -moz-orient). ...
:nth-last-child() - CSS: Cascading Style Sheets
electors tr:nth-last-child(odd) or tr:nth-last-child(2n+1) Represents the odd rows of an HTML table: 1, 3, 5, etc., counting from the end. tr:nth-last-child(even) or tr:nth-last-child(2n) Represents the even rows of an HTML table: 2, 4, 6, etc., counting from the end. :nth-last-child(7) Represents the seventh element, counting from the end. :nth-last-child(5n) Represents elements 5, 10,
15, etc., counting from the end. :nth-last-child(3n+4) Represents elements 4, 7, 10, 13, etc., counting from the end. :nth-last-child(-n+3) Represents the last three elements among a group of siblings. p:nth-last-child(n) or p:nth-last-child(n+1) Represents every <p> element among a group of siblings. This is the same as a simple p selector. (Since n starts at zero, while the last element begi...
:read-only - CSS: Cascading Style Sheets
You can find the full source code at readonly-confirmation.html; this renders like so: Styling read-only non-form controls This selector doesn't just select <input>/<textarea> elements -- it will select any element that cannot be edited by the user. <p contenteditable>This paragraph is editable; it is read-write.</p> <p>This paragraph is not editable; it is read-only.</p> p { font-size:
150%; padding: 5px; border-radius: 5px; } p:read-only { background-color: red; color: white; } p:read-write { background-color: lime; } Specifications Specification Status Comment HTML Living StandardThe definition of ':read-only' in that specification. Living Standard No change. HTML5The definition of ':read-only' in that specification. ...
:read-write - CSS: Cascading Style Sheets
rmation.html; this renders like so: Styling read-write non-form controls This selector doesn't just select <input>/<textarea> elements -- it will select any element that can be edited by the user, such as a <p> element with contenteditable set on it. <p contenteditable>This paragraph is editable; it is read-write.</p> <p>This paragraph is not editable; it is read-only.</p> p { font-size:
150%; padding: 5px; border-radius: 5px; } p:read-only { background-color: red; color: white; } p:read-write { background-color: lime; } Specifications Specification Status Comment HTML Living StandardThe definition of ':read-write' in that specification. Living Standard No change. HTML5The definition of ':read-write' in that specification. ...
:where() - CSS: Cascading Style Sheets
://github.com/mdn">a link</a>. </footer> </article> In this somewhat-contrived example, we have two articles that each contain a section, an aside, and a footer. They differ by the classes used to mark the child elements. ...
font-stretch - CSS: Cascading Style Sheets
to a wider face. Keyword to numeric mapping The table below shows the mapping between keyword values and numeric percentages: Keyword Percentage ultra-condensed 50% extra-condensed 62.5% condensed 75% semi-condensed 87.5% normal 100% semi-expanded 112.5% expanded 125% extra-expanded
150% ultra-expanded 200% Variable fonts Most fonts have a particular width which corresponds to one of the keyterm values. However some fonts, called variable fonts, can support a range of stretching with more or less fine granularity, and this can give the designer a much closer degree of control over the chosen weight. For this, percentage ranges are useful. For TrueType or Op...
color-index - CSS: Cascading Style Sheets
lookup table. (This value is zero if the device does not use such a table.) It is a range feature, meaning that you can also use the prefixed min-color-index and max-color-index variants to query minimum and maximum values, respectively. Examples Basic example HTML <p>This is a test.</p> CSS p { color: black; } @media (color-index) { p { color: red; } } @media (min-color-index:
15000) { p { color: #1475ef; } } Result Custom stylesheet This HTML will apply a special stylesheet for devices that have at least 256 colors. <link rel="stylesheet" href="http://foo.bar.com/base.css" /> <link rel="stylesheet" media="all and (min-color-index: 256)" href="http://foo.bar.com/color-stylesheet.css" /> Specifications Specification Status Comment ...
pointer - CSS: Cascading Style Sheets
s and a large checkbox for users with coarse primary pointers. HTML <input id="test" type="checkbox" /> <label for="test">Look at me!</label> CSS input[type="checkbox"] { -moz-appearance: none; -webkit-appearance: none; appearance: none; border: solid; margin: 0; } input[type="checkbox"]:checked { background: gray; } @media (pointer: fine) { input[type="checkbox"] { width:
15px; height:
15px; border-width: 1px; border-color: blue; } } @media (pointer: coarse) { input[type="checkbox"] { width: 30px; height: 30px; border-width: 2px; border-color: red; } } Result Specifications Specification Status Comment Media Queries Level 4The definition of 'pointer' in that specification. Candidate Recommendation...
prefers-reduced-data - CSS: Cascading Style Sheets
"style.css"> </head> CSS @media (prefers-reduced-data: no-preference) { @font-face { font-family: Montserrat; font-style: normal; font-weight: 400; font-display: swap; /* latin */ src: local('Montserrat Regular'), local('Montserrat-Regular'), url('fonts/montserrat-regular.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0
152-0
153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+22
15, U+FEFF, U+FFFD; } } body { font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Microsoft YaHei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } Result Specifications Specification Status ...
resolution - CSS: Cascading Style Sheets
ntax The resolution feature is specified as a <resolution> value representing the pixel density of the output device. It is a range feature, meaning that you can also use the prefixed min-resolution and max-resolution variants to query minimum and maximum values, respectively. Examples HTML <p>This is a test of your device's pixel density.</p> CSS /* Exact resolution */ @media (resolution:
150dpi) { p { color: red; } } /* Minimum resolution */ @media (min-resolution: 72dpi) { p { text-decoration: underline; } } /* Maximum resolution */ @media (max-resolution: 300dpi) { p { background: yellow; } } Result Specifications Specification Status Comment Media QueriesThe definition of 'resolution' in that specification. Recommendat...
size - CSS: Cascading Style Sheets
.e. 11in x 17in. Formal definition Related at-rule@pageInitial valueautoComputed valueas specified, but with relative lengths converted into absolute lengths Formal syntax <length>{1,2} | auto | [ <page-size> | [ portrait | landscape ] ] Examples Specifying size and orientation @page { size: 4in 6in landscape; } Nesting inside a @media rule @media print { @page { size: 50mm
150mm; } } Specifications Specification Status Comment CSS Paged Media Module Level 3The definition of 'size' in that specification. Working Draft Initial definition ...
height - CSS: Cascading Style Sheets
is a shorthand descriptor for setting both min-height and max-height of the viewport. By providing one viewport length value will set both, the minimum height and the maximum height, to the value provided. If two viewport values are provided, the first value will set the minimum height and the second value will set the maximum height. Syntax /* One value */ height: auto; height: 320px; height:
15em; /* Two values */ height: 320px 200px; Values auto The used value is calculated from the other CSS descriptors' values. <length> A non-negative absolute or relative length. <percentage> A percentage value relative to the width or height of the initial viewport at zoom factor 1.0, for horizontal and vertical lengths respectively. Must be non-negative. Formal definition Related at-r...
max-width - CSS: Cascading Style Sheets
The max-width CSS descriptor specifies the maximum width of the viewport of a document defined via the @viewport at-rule. By default, the width is set as close as possible to the initial viewport considering the maximum width constraint. Syntax /* Keyword value */ max-width: auto; /* <length> values */ max-width: 600px; max-width: 80em; max-width:
15cm; /* <percentage> value */ max-width: 75%; Values auto The used value is calculated from the other CSS descriptors' values. <length> A non-negative absolute or relative length. <percentage> A percentage value relative to the width of the initial viewport at zoom factor 1.0 for horizontal lengths. Must be non-negative. Formal definition Related at-rule@viewportInitial valueautoPercentagesrefer to the width of the initial viewp...
max-zoom - CSS: Cascading Style Sheets
of a document defined by the @viewport at-rule. The browser will not zoom in any further than this, whether automatically or at the user's request. A zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out. Syntax /* Keyword value */ max-zoom: auto; /* <number> values */ max-zoom: 0.8; max-zoom: 2.0; /* <percentage> value */ max-zoom:
150%; Values auto The user agent will set the document's upper zoom factor limit. <number> A non-negative number limiting the maximum value of the zoom factor. <percentage> A non-negative percentage limiting the maximum value of the zoom factor. Formal definition Related at-rule@viewportInitial valueautoPercentagesthe zoom factor itselfComputed valueauto, or a non-negative number or per...
min-zoom - CSS: Cascading Style Sheets
of a document defined by the @viewport at-rule. The browser will not zoom out any further than this, whether automatically or at the user's request. A zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out. Syntax /* Keyword value */ min-zoom: auto; /* <number> values */ min-zoom: 0.8; min-zoom: 2.0; /* <percentage> value */ min-zoom:
150%; Values auto The user agent will set the document's lower zoom factor limit. <number> A non-negative number limiting the minimum value of the zoom factor. <percentage> A non-negative percentage limiting the minimum value of the zoom factor. Formal definition Related at-rule@viewportInitial valueautoPercentagesthe zoom factor itselfComputed valueauto, or a non-negative number or per...
zoom - CSS: Cascading Style Sheets
The zoom CSS descriptor sets the initial zoom factor of a document defined by the @viewport at-rule. A zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out. Syntax /* Keyword value */ zoom: auto; /* <number> values */ zoom: 0.8; zoom: 2.0; /* <percentage> values */ zoom:
150%; Values auto The user agent will set the document's initial zoom factor. The user agent may use the size of canvas area on which the document is rendered to determine that factor. <number> A non-negative number used as the zoom factor. <percentage> A non-negative percentage value used as the zoom factor. Formal definition Related at-rule@viewportInitial valueautoPercentagesthe zoom factor itselfComputed valueauto, or a non-negative number or ...
Coordinate systems - CSS: Cascading Style Sheets
just for appearances here. The class "outer" is used for the containing box, which is intentionally too wide to show in the MDN window, to allow you to scroll it horizontally. The "inner" box is the one that we track events in and in which we show the mouse coordinates. .outer { width: 1000px; height: 200px; background-color: red; } .inner { position: relative; width: 500px; height:
150px; top: 25px; left: 100px; background-color: blue; color: white; cursor: crosshair; user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-user-select: none; } .log { position: relative; width: 100%; text-align: center; } Result Here you can see the results in action. As you mouse in and around the blue box, watch the values of the mouse's X and Y c...
Detecting CSS animation support - CSS: Cascading Style Sheets
ribute as it's constructed. This variable, once constructed, contains the complete description of all the keyframes needed by our animation sequence. The next task is to actually add the keyframes to the page's CSS. The first thing to do is look to see if there's already a style sheet on the document; if so, we simply insert the keyframe description into that stylesheet; this is done in lines 13-
15. If there isn't already a style sheet, a new <style> element is created, and its content is set to the value of keyframes. Then the new <style> element is inserted into the document's <head>, thereby adding the new style sheet to the document. View on JSFiddle ...
Using multiple backgrounds - CSS: Cascading Style Sheets
this example, three backgrounds are stacked: the Firefox logo, an image of bubbles, and a linear gradient: HTML <div class="multi-bg-example"></div> CSS .multi-bg-example { width: 100%; height: 400px; background-image: url(https://mdn.mozillademos.org/files/11305/firefox.png), url(https://mdn.mozillademos.org/files/11307/bubbles.png), linear-gradient(to right, rgba(30, 75, 1
15, 1), rgba(255, 255, 255, 0)); background-repeat: no-repeat, no-repeat, no-repeat; background-position: bottom right, left, right; } Result (If image does not appear in CodePen, click the 'Tidy' button in the CSS section) As you can see here, the Firefox logo (listed first within background-image) is on top, directly above the bubbles graphic, followed by the gradi...
Backwards Compatibility of Flexbox - CSS: Cascading Style Sheets
sy to identify due to the change in the way that a flex container is created. If you find something referring to display: box or display: flexbox this is outdated information. Status in browsers Browser support for flexbox is excellent, and the majority of browsers do not need a prefix at this point. Safari was the last of the major browsers to remove prefixes, with the release of Safari 9 in 20
15. The two browsers you should still keep in mind for cross-browser compatibility are: Internet Explorer 10, which implemented the display: flexbox version of the specification with the -ms- prefix. UC Browser, which still supports the 2009 display: box version only with the -webkit- prefix. Note also that Internet Explorer 11 supports the modern display: flex specification however it has a n...
Controlling Ratios of Flex Items Along the Main Axis - CSS: Cascading Style Sheets
of its content. At this point your knowledge of min- and max-content sizing becomes useful, as flexbox will take the max-content size of the item as the flex-basis. The following live example can help to demonstrate this. In this example I have created a series of inflexible boxes, with both flex-grow and flex-shrink set to 0. Here we can see how the first item -- which has an explicit width of
150 pixels set as the main size -- takes a flex-basis of
150px, whereas the other two items have no width and so are sized according to their content width. In addition to the auto keyword, you can use the content keyword as the flex-basis. This will result in the flex-basis being taken from the content size even if there is a width set on the item. This is a newer keyword and has less browser su...
Layout using named grid lines - CSS: Cascading Style Sheets
main" "ft ft ft ft ft ft ft ft ft"; } .header { grid-area: hd; } .footer { grid-area: ft; } .content { grid-area: main; } .sidebar { grid-area: sd; } .wrapper > div.overlay { z-index: 10; grid-column: main-start / main-end; grid-row: hd-start / ft-end; border: 4px solid rgb(92,148,13); background-color: rgba(92,148,13,.4); color: rgb(92,148,13); font-size:
150%; } <div class="wrapper"> <div class="header">Header</div> <div class="sidebar">Sidebar</div> <div class="content">Content</div> <div class="footer">Footer</div> <div class="overlay">Overlay</div> </div> Given that we have this ability to position create lines from named areas and areas from named lines it is worth taking a little bit of time to plan your naming strategy when st...
Stacking context example 1 - CSS: Cascading Style Sheets
<span class="bold">DIV #4</span> <br />position: absolute; <br />z-index: 2; </div> </div> </body></html> CSS .bold { font-weight: bold; font: 12px Arial; } #div1, #div3 { height: 80px; position: relative; border: 1px dashed #669966; background-color: #ccffcc; padding-left: 5px; } #div2 { opacity: 0.8; z-index: 1; position: absolute; width:
150px; height: 200px; top: 20px; left: 170px; border: 1px dashed #990000; background-color: #ffdddd; text-align: center; } #div4 { opacity: 0.8; z-index: 2; position: absolute; width: 200px; height: 70px; top: 65px; left: 50px; border: 1px dashed #000099; background-color: #ddddff; text-align: left; padding-left: 10px; } Result ...
Stacking context example 2 - CSS: Cascading Style Sheets
tml1/DTD/xhtml1-transitional.dtd"> <html> <head><style type="text/css"> div { font: 12px Arial; } span.bold { font-weight: bold; } #div2 { z-index: 2; } #div3 { z-index: 1; } #div4 { z-index: 10; } #div1,#div3 { height: 80px; position: relative; border: 1px dashed #669966; background-color: #ccffcc; padding-left: 5px; } #div2 { opacity: 0.8; position: absolute; width:
150px; height: 200px; top: 20px; left: 170px; border: 1px dashed #990000; background-color: #ffdddd; text-align: center; } #div4 { opacity: 0.8; position: absolute; width: 200px; height: 70px; top: 65px; left: 50px; border: 1px dashed #000099; background-color: #ddddff; text-align: left; padding-left: 10px; } </style></head> <body> <br /> ...
Stacking without the z-index property - CSS: Cascading Style Sheets
="abs2" class="absolute"> <b>DIV #4</b><br />position: absolute;</div> <div id="sta1" class="static"> <b>DIV #5</b><br />position: static;</div> CSS b { font-family: sans-serif; } div { padding: 10px; border: 1px dashed; text-align: center; } .static { position: static; height: 80px; background-color: #ffc; border-color: #996; } .absolute { position: absolute; width:
150px; height: 350px; background-color: #fdd; border-color: #900; opacity: 0.7; } .relative { position: relative; height: 80px; background-color: #cfc; border-color: #696; opacity: 0.7; } #abs1 { top: 10px; left: 10px; } #rel1 { top: 30px; margin: 0px 50px 0px 50px; } #rel2 { top:
15px; left: 20px; margin: 0px 50px 0px 50px; } #abs2 { top: 10px; right: 10px; ...
The stacking context - CSS: Cascading Style Sheets
10px; background-color: #cfc; } #div1 { z-index: 5; margin-bottom: 190px; } #div2 { z-index: 2; } #div3 { z-index: 4; opacity: 1; position: absolute; top: 40px; left: 180px; width: 330px; border: 1px dashed #900; background-color: #fdd; padding: 40px 20px 20px; } #div4, #div5 { border: 1px dashed #996; background-color: #ffc; } #div4 { z-index: 6; margin-bottom:
15px; padding: 25px 10px 5px; } #div5 { z-index: 1; margin-top:
15px; padding: 5px 10px; } #div6 { z-index: 3; position: absolute; top: 20px; left: 180px; width:
150px; height: 125px; border: 1px dashed #009; padding-top: 125px; background-color: #ddf; text-align: center; } Result ...
Overview of CSS Shapes - CSS: Cascading Style Sheets
o this with Shapes, however you will still need a floated item, which you can then make invisible. That could be a redundant element inserted into the document, an empty <div> or <span> perhaps, but our preference is to use generated content. This means we can keep things used for styling inside the CSS. In this next example, we use generated content to insert an element with height and width of
150px. We can then use Basic Shapes, Box Values or even the Alpha Channel of an image to create a shape for the text to wrap around. Relationship to clip-path The Basic Shapes and Box values used to create Shapes are the same as those used as values for clip-path. Therefore if you want to create a shape using an image, and also clip away part of that image, you can use the same values. The imag...
animation-duration - CSS: Cascading Style Sheets
sitory. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. It is often convenient to use the shorthand property animation to set all animation properties at once. Syntax /* Single animation */ animation-duration: 6s; animation-duration: 120ms; /* Multiple animations */ animation-duration: 1.64s,
15.22s; animation-duration: 10s, 35s, 230ms; Values <time> The time that an animation takes to complete one cycle. This may be specified in either seconds (s) or milliseconds (ms). The value must be positive or zero and the unit is required. A value of 0s, which is the default value, indicates that no animation should occur. Note: Negative values are invalid, causing the declaration to be i...
backdrop-filter - CSS: Cascading Style Sheets
<filter-function-list> A space-separated list of <filter-function>s or an SVG filter that will be applied to the backdrop. Formal definition Initial valuenoneApplies toall elements; In SVG, it applies to container elements exclud...
background-position-x - CSS: Cascading Style Sheets
AndroidOpera for AndroidSafari on iOSSamsung Internetbackground-position-xChrome Full support 1Edge Full support 12Firefox Full support 49IE Full support 6Opera Full support
15Safari Full support 1WebView Android Full support <=37Chrome Android Full support 18Firefox Android Full support 49Opera Android Full support 18Safari iOS Full...
background-position-y - CSS: Cascading Style Sheets
AndroidOpera for AndroidSafari on iOSSamsung Internetbackground-position-yChrome Full support 1Edge Full support 12Firefox Full support 49IE Full support 6Opera Full support
15Safari Full support 1WebView Android Full support <=37Chrome Android Full support 18Firefox Android Full support 49Opera Android Full support 14Safari iOS Full...
background-size - CSS: Cascading Style Sheets
ed Implemented with the vendor prefix: -webkit- No support 3.6 -- 4Prefixed Prefixed Implemented with the vendor prefix: -moz-IE Full support 9Opera Full support 10 Full support 10 Full support
15Prefixed Notes Prefixed Implemented with the vendor prefix: -webkit-Notes WebKit-based browsers originally implemented an older draft of CSS3 background-size in which an omitted second value is treated as duplicating the first value; this draft does not include the contain or cover keywords. No support 9.5 --
15Prefixed Notes Prefixed Implemented with the vendor prefix: -...
border-color - CSS: Cascading Style Sheets
order-inline-end-color. You can find more information about border colors in Borders in Applying color to HTML elements using CSS. Constituent properties This property is a shorthand for the following CSS properties: border-bottom-color border-left-color border-right-color border-top-color Syntax /* <color> values */ border-color: red; /* horizontal | vertical */ border-color: red #f0
15ca; /* top | vertical | bottom */ border-color: red rgb(240,30,50,.7) green; /* top | right | bottom | left */ border-color: red yellow green blue; /* Global values */ border-color: inherit; border-color: initial; border-color: unset; The border-color property may be specified using one, two, three, or four values. When one value is specified, it applies the same color to all four sides. ...
border-image-width - CSS: Cascading Style Sheets
s border-width, the border image will extend beyond the padding (and/or content) edge. Syntax /* Keyword value */ border-image-width: auto; /* <length> value */ border-image-width: 1rem; /* <percentage> value */ border-image-width: 25%; /* <number> value */ border-image-width: 3; /* vertical | horizontal */ border-image-width: 2em 3em; /* top | horizontal | bottom */ border-image-width: 5%
15% 10%; /* top | right | bottom | left */ border-image-width: 5% 2em 10% auto; /* Global values */ border-image-width: inherit; border-image-width: initial; border-image-width: unset; The border-image-width property may be specified using one, two, three, or four values chosen from the list of values below. When one value is specified, it applies the same width to all four sides. When two v...
box-align - CSS: Cascading Style Sheets
1Prefixed Full support 1Prefixed Prefixed Implemented with the vendor prefix: -moz- Full support 49Prefixed Prefixed Implemented with the vendor prefix: -webkit-IE No support NoOpera Full support
15Prefixed Full support
15Prefixed Prefixed Implemented with the vendor prefix: -webkit-Safari Full support 3Prefixed Full support 3Prefixed Prefixed Implemented with the vendor prefix: -webkit- No support 1.1 -- 3Prefixed Prefixed Impleme...
box-decoration-break - CSS: Cascading Style Sheets
<span class="example">The<br>quick<br>orange fox</span> ... results in: Adding box-decoration-break: clone to the above styles: -webkit-box-decoration-break: clone; box-decoration-break: clone; ... results in: You can try the two inline e...
break-after - CSS: Cascading Style Sheets
amsung Internet Android No support NocolumnChrome Full support 50Edge Full support 12Firefox No support NoIE Full support 10Opera No support 11.1 --
15 No support 11.1 --
15 Full support 37Safari No support NoWebView Android Full support 50Chrome Android Full support 50Firefox Android No support NoO...
clip - CSS: Cascading Style Sheets
ative; width: 536px; height: 350px; } #top-left, #middle, #bottom-right { position: absolute; top: 0; } #top-left { left: 360px; clip: rect(0 175px 113px 0); } #middle { left: 280px; clip: rect(119px 255px 229px 80px); } #bottom-right { left: 200px; clip: rect(235px 335px 345px 160px); } HTML <p class="dotted-border"> <img src="https://udn.realityripple.com/samples/8f/
15174f3500.jpg" title="Original graphic"> <img id="top-left" src="https://udn.realityripple.com/samples/8f/
15174f3500.jpg" title="Graphic clipped to upper left"> <img id="middle" src="https://udn.realityripple.com/samples/8f/
15174f3500.jpg" title="Graphic clipped towards middle"> <img id="bottom-right" src="https://udn.realityripple.com/samples/8f/
15174f3500.jpg" title="Graphic clipped to bott...
color-adjust - CSS: Cascading Style Sheets
ehind medium red text. For whatever reason, this is the desired appearance in any rendering environment, including on paper, so we also use color-adjust: exact to tell the browser not to make color or style adjustments to the box when rendering it. ...
column-count - CSS: Cascading Style Sheets
tes Prefixed Implemented with the vendor prefix: -moz-Notes Prior to version 37, multiple columns didn't work with display: table-caption elements.IE Full support 10Opera Full support 11.1 Full support 11.1 Full support
15Prefixed Prefixed Implemented with the vendor prefix: -webkit-Safari Full support 9 Full support 9 Full support 3Prefixed Prefixed Implemented with the vendor prefix: -webkit-WebView Android Full support 50 ...
column-width - CSS: Cascading Style Sheets
responsive designs that fit different screen sizes. Especially in the presence of the column-count property (which has precedence), you must specify all related length values to achieve an exact column width. In horizontal text these are width, column-width, column-gap, and column-rule-width. Syntax /* Keyword value */ column-width: auto; /* <length> values */ column-width: 60px; column-width:
15.5em; column-width: 3.3vw; /* Global values */ column-width: inherit; column-width: initial; column-width: unset; The column-width property is specified as one of the values listed below. Values <length> Indicates the optimal column width. The actual column width may differ from the specified value: it may be wider when necessary to fill available space, and narrower when the available spa...
cross-fade() - CSS: Cascading Style Sheets
In the implemented syntax, the two comma-separated images are declared first, followed by a comma and required percent value. Omitting the comma or percent invalidates the value. The percent is the opacity of the first declared image. The included percentage is subtracted from 100%, with the difference being the opacity of the second image. The green/red example (with the percentages totalling
150%) and the yellow/red/blue example (with three images) from the specification syntax section, are not possible in this implementation. Accessibility concerns Browsers do not provide any special information on background images to assistive technology. This is important primarily for screen readers, as a screen reader will not announce its presence and therefore convey nothing to its users. If t...
<display-inside> - CSS: Cascading Style Sheets
nt box has been given display: flow-root and so establishes a new BFC and contains the floated item. HTML <div class="box"> <div class="float">I am a floated box!</div> <p>I am content inside the container.</p> </div> CSS .box { background-color: rgb(224, 206, 247); border: 5px solid rebeccapurple; display: flow-root; } .float { float: left; width: 200px; height:
150px; background-color: white; border:1px solid black; padding: 10px; } Result Specifications Specification Status CSS Display Module Level 3The definition of 'display-inside' in that specification. Candidate Recommendation ...
flex-wrap - CSS: Cascading Style Sheets
="content1"> <div class="red">1</div> <div class="green">2</div> <div class="blue">3</div> </div> <h4>This is an example for flex-wrap:wrap-reverse </h4> <div class="content2"> <div class="red">1</div> <div class="green">2</div> <div class="blue">3</div> </div> CSS /* Common Styles */ .content, .content1, .content2 { color: #fff; font: 100 24px/100px sans-serif; height:
150px; text-align: center; } .content div, .content1 div, .content2 div { height: 50%; width: 300px; } .red { background: orangered; } .green { background: yellowgreen; } .blue { background: steelblue; } /* Flexbox Styles */ .content { display: flex; flex-wrap: wrap; } .content1 { display: flex; flex-wrap: nowrap; } .content2 { display: flex; flex-wr...
float - CSS: Cascading Style Sheets
elit. Morbi tristique sapien ac erat tincidunt, sit amet dignissim lectus vulputate. Donec id iaculis velit. Aliquam vel malesuada erat. Praesent non magna ac massa aliquet tincidunt vel in massa. Phasellus feugiat est vel leo finibus congue.</p> </section> CSS section { border: 1px solid blue; width: 100%; float: left; } div { margin: 5px; width: 50px; height:
150px; } .left { float: left; background: pink; } .right { float: right; background: cyan; } Result Clearing floats Sometimes you may want to force an item to move below any floated elements. For instance, you may want paragraphs to remain adjacent to floats, but force headings to be on their own line. See clear for examples. Specifications Specification Status Commen...
font-style - CSS: Cascading Style Sheets
ha-VF is created by David Berlow (https://github.com/TypeNetwork/Amstelvar) and is used here under the terms of its license: https://github.com/TypeNetwork/Amstelvar/blob/master/OFL.txt */ @font-face { src: url('https://mdn.mozillademos.org/files/16044/AmstelvarAlpha-VF.ttf'); font-family:'AmstelvarAlpha'; font-style: normal; } label { font: 1rem monospace; } .container { max-height:
150px; overflow: scroll; } .sample { font: 2rem 'AmstelvarAlpha', sans-serif; } html, body { max-height: 100vh; max-width: 100vw; overflow: hidden; } body { display: flex; flex-direction: column; } header { margin-bottom: 1.5rem; } .container { flex-grow: 1; } .container > p { margin-top: 0; margin-bottom: 0; } JavaScript let slantLabel = document.querySelector('la...
font-weight - CSS: Cascading Style Sheets
eated by LettError (https://github.com/LettError/mutatorSans) and is used here under the terms of its license: https://github.com/LettError/mutatorSans/blob/master/LICENSE */ @font-face { src: url('https://mdn.mozillademos.org/files/16011/MutatorSans.ttf'); font-family:'MutatorSans'; font-style: normal; } label { font: 1rem monospace; white-space: nowrap; } .container { max-height:
150px; overflow-y: auto; } .sample { text-transform: uppercase; font: 1.5rem 'MutatorSans', sans-serif; } html, body { max-height: 100vh; max-width: 100vw; overflow: hidden; } body { display: flex; flex-direction: column; } header { margin-bottom: 1.5rem; } .container { flex-grow: 1; } .container > p { margin-top: 0; margin-bottom: 0; } JavaScript let weightLabel ...
<frequency> - CSS: Cascading Style Sheets
he <frequency> CSS data type represents a frequency dimension, such as the pitch of a speaking voice. It is not currently used in any CSS properties. Syntax The <frequency> data type consists of a <number> followed by one of the units listed below. As with all CSS dimensions, there is no space between the unit literal and the number. Units Hz Represents a frequency in hertz. Examples: 0Hz,
1500Hz, 10000Hz. kHz Represents a frequency in kilohertz. Examples: 0kHz, 1.5kHz, 10kHz. Note: Although the number 0 is always the same regardless of unit, the unit may not be omitted. In other words, 0 is invalid and does not represent 0Hz or 0kHz. Though the units are case-insensitive, it is good practice to use a capital "H" for Hz and kHz, as specified in the SI. Examples Valid frequency...
grid-template-areas - CSS: Cascading Style Sheets
Specifying named grid areas HTML <section id="page"> <header>Header</header> <nav>Navigation</nav> <main>Main area</main> <footer>Footer</footer> </section> CSS #page { display: grid; width: 100%; height: 250px; grid-template-areas: "head head" "nav main" "nav foot"; grid-template-rows: 50px 1fr 30px; grid-template-columns:
150px 1fr; } #page > header { grid-area: head; background-color: #8ca0ff; } #page > nav { grid-area: nav; background-color: #ffa08c; } #page > main { grid-area: main; background-color: #ffff64; } #page > footer { grid-area: foot; background-color: #8cffa0; } Result Specifications Specification Status Comment CSS Grid LayoutThe definition of 'grid...
<image> - CSS: Cascading Style Sheets
cursor The browser-defined size matching the usual cursor size on the client's system mask-image ? shape-outside ? mask-border-source ? symbols for @counter-style At risk feature. If supported, the browser-defined size matching the usual cursor size on the client's system content for a pseudo-element (::after/::before) A 300px x
150px rectangle The concrete object size is calculated using the following algorithm: If the specified size defines both the width and the height, these values are used as the concrete object size. If the specified size defines only the width or only the height, the missing value is determined using the intrinsic ratio, if there is any, the intrinsic dimensions if the specified value matc...
initial - CSS: Cascading Style Sheets
ll support 13Firefox Full support 19 Full support 19 No support 1 -- 24Prefixed Prefixed Implemented with the vendor prefix: -moz-IE No support NoOpera Full support
15Safari Full support 1.2WebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 19 Full support 19 No support 4 -- 24...
<integer> - CSS: Cascading Style Sheets
can be used in numerous CSS properties, such as column-count, counter-increment, grid-column, grid-row, and z-index. Syntax The <integer> data type consists of one or several decimal digits, 0 through 9 inclusive, optionally preceded by a single + or - sign. There is no unit associated with integers. Note: There is no official range of valid <integer> values. Opera 12.1 supports values up to 2
15-1, IE up to 220-1, and other browsers even higher. During the CSS3 Values cycle there was a lot of discussion about setting a minimum range to support: the latest decision, in April 2012 during the LC phase, was [-227-1; 227-1], but other values like 224-1 and 230-1 were also proposed. However, the latest spec doesn't specify a range anymore. Interpolation When animated, values of the <integer>...
mask-border-width - CSS: Cascading Style Sheets
The mask-border-width CSS property sets the width of an element's mask border. Syntax /* Keyword value */ mask-border-width: auto; /* <length> value */ mask-border-width: 1rem; /* <percentage> value */ mask-border-width: 25%; /* <number> value */ mask-border-width: 3; /* vertical | horizontal */ mask-border-width: 2em 3em; /* top | horizontal | bottom */ mask-border-width: 5%
15% 10%; /* top | right | bottom | left */ mask-border-width: 5% 2em 10% auto; /* Global values */ mask-border-width: inherit; mask-border-width: initial; mask-border-width: unset; The mask-border-width property may be specified using one, two, three, or four values chosen from the list of values below. When one value is specified, it applies the same width to all four sides. When two values are specifie...
object-fit - CSS: Cascading Style Sheets
ipple.com/samples/ae/248a9938d9.png" alt="MDN Logo"> <img class="scale-down narrow" src="https://udn.realityripple.com/samples/ae/248a9938d9.png" alt="MDN Logo"> </section> CSS h2 { font-family: Courier New, monospace; font-size: 1em; margin: 1em 0 0.3em; } div { display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-start; height: 940px; } img { width:
150px; height: 100px; border: 1px solid #000; } .narrow { width: 100px; height:
150px; margin-top: 10px; } .fill { object-fit: fill; } .contain { object-fit: contain; } .cover { object-fit: cover; } .none { object-fit: none; } .scale-down { object-fit: scale-down; } Result Specifications Specification Status Comment CSS Images Module Level ...
orphans - CSS: Cascading Style Sheets
amples 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. It is used to demonstrate how orphans work.</p> <p>This is the third paragraph. It has a little bit more text than the first one.</p> </div> CSS div { background-color: #8cffa0; height:
150px; columns: 3; orphans: 3; } p { background-color: #8ca0ff; } p:first-child { margin-top: 0; } Result Specifications Specification Status Comment CSS Fragmentation Module Level 3The definition of 'orphans' in that specification. Candidate Recommendation Extends orphans to apply to any type of fragment, including pages, regions, or columns. ...
outline-color - CSS: Cascading Style Sheets
t 1Samsung Internet Android Full support 1.0invertChrome No support NoEdge No support 12 -- 79Firefox No support 1 -- 3IE Full support 8Opera No support 7 --
15Safari No support NoWebView Android No support NoChrome Android No support NoFirefox Android No support NoOpera Android No support NoSafari iOS No support ...
overscroll-behavior-block - CSS: Cascading Style Sheets
</div> </div> </main> CSS main { height: 3000px; width: 500px; background-color: white; background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 19px, rgba(0,0,0,0.5) 20px); } main > div { height: 300px; width: 400px; overflow: auto; position: relative; top: 50px; left: 50px; overscroll-behavior-block: contain; } div > div { height:
1500px; width: 100%; background-color: yellow; background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 19px, rgba(0,0,0,0.5) 20px); } p { padding: 10px; background-color: rgba(255,0,0,0.5); margin: 0; width: 340px; position: relative; top: 10px; left: 10px; } Result Specifications Specification Status Comment CSS O...
overscroll-behavior-inline - CSS: Cascading Style Sheets
div> </main> CSS main { height: 400px; width: 3000px; background-color: white; background-image: repeating-linear-gradient(to right, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 19px, rgba(0,0,0,0.5) 20px); } main > div { height: 300px; width: 400px; overflow: auto; position: relative; top: 50px; left: 50px; overscroll-behavior-inline: contain; } div > div { height: 100%; width:
1500px; background-color: yellow; background-image: repeating-linear-gradient(to right, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 19px, rgba(0,0,0,0.5) 20px); } p { padding: 10px; background-color: rgba(255,0,0,0.5); margin: 0; width: 360px; position: relative; top: 10px; left: 10px; } Result Specifications Specification Status Comment CSS Overscroll Behavi...
paint() - CSS: Cascading Style Sheets
on a group of list items is filled or just has a stroke outline, and the width of that outline: <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>item 8</li> <li>item 9</li> <li>item 10</li> <li>item 11</li> <li>item 12</li> <li>item 13</li> <li>item 14</li> <li>item
15</li> <li>item 16</li> <li>item 17</li> <li>item 18</li> <li>item 19</li> <li>item 20</li> </ul> CSS.paintWorklet.addModule('https://mdn.github.io/houdini-examples/cssPaint/intro/worklets/hilite.js'); li { --boxColor: hsla(55, 90%, 60%, 1.0); background-image: paint(hollowHighlights, stroke, 2px); } li:nth-of-type(3n) { --boxColor: hsla(
155, 90%, 60%, 1.0); ba...
perspective - CSS: Cascading Style Sheets
lues */ .pers250 { perspective: 250px; } .pers350 { perspective: 350px; } .pers500 { perspective: 500px; } .pers650 { perspective: 650px; } /* Define the container div, the cube div, and a generic face */ .container { width: 200px; height: 200px; margin: 75px 0 0 75px; border: none; } .cube { width: 100%; height: 100%; backface-visibility: visible; perspective-origin:
150%
150%; transform-style: preserve-3d; } .face { display: block; position: absolute; width: 100px; height: 100px; border: none; line-height: 100px; font-family: sans-serif; font-size: 60px; color: white; text-align: center; } /* Define each face based on direction */ .front { background: rgba(0, 0, 0, 0.3); transform: translateZ(50px); } .back { background: rgba(0, 2...
pointer-events - CSS: Cascading Style Sheets
ort 1.0Applies to HTML elements ExperimentalChrome Full support 2Edge Full support 12Firefox Full support 3.6IE Full support 11Opera Full support
15Safari Full support 4WebView Android Full support 37Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 14Safari iOS Full su...
position - CSS: Cascading Style Sheets
finibus lectus nec ante congue rutrum. Curabitur quam quam, accumsan id ultrices ultrices, tempor et tellus. </p> <div class="box" id="one">One</div> </div> CSS .box { width: 100px; height: 100px; background: red; color: white; } #one { position: fixed; top: 80px; left: 10px; background: blue; } .outer { width: 500px; height: 300px; overflow: scroll; padding-left:
150px; } Result Sticky positioning Sticky positioning can be thought of as a hybrid of relative and fixed positioning. A stickily positioned element is treated as relatively positioned until it crosses a specified threshold, at which point it is treated as fixed until it reaches the boundary of its parent. For instance... #one { position: sticky; top: 10px; } ...would position the element wi...
<position> - CSS: Cascading Style Sheets
ation When animated, a point's abscissa and ordinate values are interpolated independently. However, because the speed of the interpolation is determined by a single timing function for both coordinates, the point will move in a straight line. Examples Valid positions center left center top right 8.5% bottom 12vmin right -6px 10% 20% 8rem 14px Invalid positions left right bottom top 10px
15px 20px
15px Specifications Specification Status Comment CSS Values and Units Module Level 3The definition of '<position>' in that specification. Candidate Recommendation Relists links to both definitions: if CSS Backgrounds and Borders Module Level 3 is supported, its definition of <position> must also be used. CSS Backgrounds and Borders Module Level...
rotate - CSS: Cascading Style Sheets
tion Initial valuenoneApplies totransformable elementsInheritednoComputed valueas specifiedAnimation typea transformCreates stacking contextyes Formal syntax none | <angle> | [ x | y | z | <number>{3} ] && <angle> Examples Rotate an element on hover HTML <div> <p class="rotate">Rotation</p> </div> CSS * { box-sizing: border-box; } html { font-family: sans-serif; } div { width:
150px; margin: 0 auto; } p { padding: 10px 5px; border: 3px solid black; border-radius: 20px; width:
150px; font-size: 1.2rem; text-align: center; } .rotate { transition: rotate 1s; } div:hover .rotate { rotate: 1 -0.5 1 180deg; } Result Specifications Specification Status Comment CSS Transforms Level 2The definition of 'individual transforms' ...
text-indent - CSS: Cascading Style Sheets
tive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Horizontal spacing is with respect to the left (or right, for right-to-left layout) edge of the containing block-level element's content box. Syntax /* <length> values */ text-indent: 3mm; text-indent: 40px; /* <percentage> value relative to the containing block width */ text-indent:
15%; /* Keyword values */ text-indent: 5em each-line; text-indent: 5em hanging; text-indent: 5em hanging each-line; /* Global values */ text-indent: inherit; text-indent: initial; text-indent: unset; Values <length> Indentation is specified as an absolute <length>. Negative values are allowed. See <length> values for possible units. <percentage> Indentation is a <percentage> of the contain...
<time> - CSS: Cascading Style Sheets
ceded by a single + or - sign. As with all dimensions, there is no space between the unit literal and the number. Note: Although the number 0 is always the same regardless of unit, the unit may not be omitted. In other words, 0 is invalid and does not represent 0s or 0ms. Units s Represents a time in seconds. Examples: 0s, 1.5s, -60s. ms Represents a time in milliseconds. Examples: 0ms,
150.25ms, -60000ms. Note: Conversion between s and ms follows the logical 1s = 1000ms. Examples Valid times 12s Positive integer -456ms Negative integer 4.3ms Non-integer 14mS The unit is case-insensitive, although capital letters are not recommended. +0s Zero with a leading + and a unit -0ms Zero with a leading - and a unit Invalid times 0 ...
perspective() - CSS: Cascading Style Sheets
-box-closer"> <div class="face front">A</div> <div class="face top">B</div> <div class="face left">C</div> </div> CSS .face { position: absolute; width: 100px; height: 100px; line-height: 100px; font-size: 100px; text-align: center; } p + div { width: 100px; height: 100px; transform-style: preserve-3d; margin-left: 100px; } .no-perspective-box { transform: rotateX(-
15deg) rotateY(30deg); } .perspective-box-far { transform: perspective(9cm) rotateX(-
15deg) rotateY(30deg); } .perspective-box-closer { transform: perspective(4cm) rotateX(-
15deg) rotateY(30deg); } .top { background-color: skyblue; transform: rotateX(90deg) translate3d(0, 0, 50px); } .left { background-color: pink; transform: rotateY(-90deg) translate3d(0, 0, 50px); } .front { bac...
word-spacing - CSS: Cascading Style Sheets
acing, as defined by the current font and/or the browser. <length> Specifies extra spacing in addition to the intrinsic inter-word spacing defined by the font. <percentage> Specifies extra spacing as a percentage of the affected character's advance width. Examples HTML <div id="mozdiv1">Here are many words...</div> <div id="mozdiv2">...and many more!</div> CSS #mozdiv1 { word-spacing:
15px; } #mozdiv2 { word-spacing: 5em; } Accessibility concerns A large positive or negative word-spacing value will make the sentences the styling is applied to unreadable. For text styled with a very large positive value, the words will be so far apart that it will no longer appear to be a sentence. For text styled with a large negative value, the words will overlap each other to the point ...
Getting Started - Developer guides
$array = ['userName' => $name, 'computedString' => $computedString]; echo json_encode($array); For more on DOM methods, be sure to check out Document Object Model (DOM). Simple timed XHR example Another simple example follows -- here we are loading a text file via XHR, the structure of which is assumed to be like this: TIME: 312.05 TIME: 312.07 TIME: 312.10 TIME: 312.12 TIME: 312.14 TIME: 312.
15 Once the text file is loaded, we split() the items into an array at each newline character (\n -- basically where each line break is in the text file), and then print the complete list of timestamps, and the last timestamp, onto the page. This is repeated every 5 seconds, using a setInterval() call. The idea would be that a server-side script of some kind would continually update the text file ...
Setting up adaptive streaming media sources - Developer guides
</SegmentList> </Representation> <Representation id="1" codecs="avc1" mimeType="video/mp4" width="320" height="240" startWithSAP="1" bandwidth="91932"> <SegmentBase> <Initialization sourceURL="main/news200/1.m4s" range="0-864"/> </SegmentBase> <SegmentList duration="1"> <SegmentURL media="main/news200/2.m4s" mediaRange="865-1
1523"/> <SegmentURL media="main/news200/3.m4s" mediaRange="1
1524-25621"/> <SegmentURL media="main/news200/4.m4s" mediaRange="25622-33693"/> </SegmentList> </Representation> <Representation id="1" codecs="avc1" mimeType="video/mp4" width="320" height="240" startWithSAP="1" bandwidth="270370"> <SegmentBase> <Initialization source...
Web Audio playbackRate explained - Developer guides
the video, or (in some browsers) when an ended event is generated. So defaultPlaybackRate allows us to set the playback rate before playing the media, while playbackRate allows us to change it during media playback. There is also an event available called ratechange, which fires every time the playbackRate changes. Browser support Chrome 20+ ? Firefox 20+ ? IE 9+ ? Safari 6+ ? Opera
15+ ? Mobile Chrome (Android) ? Mobile Firefox 24+ ? IE Mobile ? Mobile Safari 6+ (iOS) ? Opera Mobile ? Notes Most browsers stop playing audio outside playbackRate bounds of 0.5 and 4, leaving the video playing silently. For most applications, it's recommended that you limit the range to between 0.5 and 4. The pitch of the audio track does not change when playBackRate is altered. Nega...
Touch events (Mozilla experimental) - Developer guides
The experimental touch events API described on this page was available from Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) to Gecko/Firefox 17. You should instead use the standard touch events API, supported since Gecko/Firefox 6 with multi-touch support added in Gecko/Firefox 12. This API allowed you to track the movement of the user's finger on a touch screen, monitoring the raw touch events generated by the system. ...
Index - Developer guides
eo player using the Media and Fullscreen APIs. This follow-up article looks at how to style this custom player, including making it responsive. 14 Web Audio playbackRate explained Apps, Audio, Media, Video, playbackRate The playbackRate property of the <audio> and <video> elements allows us to change the speed, or rate, at which a piece of web audio or video is playing
15 Writing Web Audio API code that works in every browser API You probably have already read the announcement on the Web Audio API coming to Firefox, and are totally excited and ready to make your until-now-WebKit-only sites work with Firefox, which uses the unprefixed version of the spec. 16 Audio and video manipulation Audio, Canvas, Examples, Guide, HTML5, Media, Vide...
Printing - Developer guides
le, the printer-friendly version of a document) after the user prints its contents, you can use code like this: <!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>JavaScript Window Close Example </title> <script type="text/javascript"> function popuponclick() { my_window = window.open('', 'mywindow', 'status=1,width=350,height=
150'); my_window.document.write('<html><head><title>Print Me</title></head>'); my_window.document.write('<body onafterprint="self.close()">'); my_window.document.write('<p>When you print this window, it will close afterward.</p>'); my_window.document.write('</body></html>'); } </script> </head> <body> <p>To try out the <code>afterprint</code> event, click the link below...
HTML attribute: size - HTML: Hypertext Markup Language
targets the element with properties impacting the width, CSS takes precedence. The size attribute has no impact on constraint validation. Examples By adding size on some input types, the width of the input can be controlled. Adding size on a select changes the height, definining how many options are visible in the closed state. ...
HTML attribute: step - HTML: Hypertext Markup Language
lue can must be a positive number - integer or float -- or the special value any, which means no stepping is implied, and any value is allowed (barring other constraints, such as min and max). The default stepping value for number inputs is 1, allowing only integers to be entered, unless the stepping base is not an integer. The default stepping value for time is 1 second, with 900 being equal to
15 minutes. Default values for step Input type Value Example date 1 (day) <input type="date" min="2019-12-25" step="1"> month 1 (month) <input type="month" min="2019-12" step="12"> week 1 (week) <input type="week" min="2019-W23" step="2"> time 60 (seconds) <input type="time" min="09:00" step="900"> datetime-loc...
Allowing cross-origin use of images and canvas - HTML: Hypertext Markup Language
ImageElement into which the image will be loaded. This tells the browser to request cross-origin access when trying to download the image data. Starting the download The code that starts the download (say, when the user clicks a "Download" button), looks like this: function startDownload() { let imageURL = "https://cdn.glitch.com/4c9ebeb9-8b9a-4adc-ad0a-238d9ae00bb5%2Fmdn_logo-only_color.svg?
1535749917189"; downloadedImg = new Image; downloadedImg.crossOrigin = "Anonymous"; downloadedImg.addEventListener("load", imageReceived, false); downloadedImg.src = imageURL; } We're using a hard-coded URL here (imageURL), but that could easily come from anywhere. To begin downloading the image, we create a new HTMLImageElement object by using the Image() constructor. The image is then co...
<a>: The Anchor element - HTML: Hypertext Markup Language
ent page, as defined in the HTML specification. Linking to an email address To create links that open in the user's email program to let them send a new message, use the mailto: scheme: <a href="mailto:nowhere@mozilla.org">Send email to nowhere</a> For details about mailto: URLs, such as including a subject or body, see Email links or RFC 6068. Linking to telephone numbers <a href="tel:+49.
157.0
156">+49
157 0
156</a> <a href="tel:+1(555)5309">(555) 5309</a> tel: link behavior varies with device capabilities: Cellular devices autodial the number. Most operating systems have programs that can make calls, like Skype or FaceTime. Websites can make phone calls with registerProtocolHandler, such as web.skype.com. Other behaviors include saving the number to contacts, or sending the nu...
<area> - HTML: Hypertext Markup Language
Candidate Recommendation Added the referrerpolicy attribute. HTML Living StandardThe definition of '<area>' in that specification. Living Standard HTML5The definition of '<area>' in that specifi...
<canvas>: The Graphics Canvas element - HTML: Hypertext Markup Language
the starting and ending tag are mandatory. Permitted parents Any element that accepts phrasing content. Implicit ARIA role No corresponding role Permitted ARIA roles Any DOM interface HTMLCanvasElement Attributes This element's attributes include the global attributes. height The height of the coordinate space in CSS pixels. Defaults to
150. moz-opaque Lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. This is only supported by Mozilla-based browsers; use the standardized canvas.getContext('2d', { alpha: false }) instead. width The width of the coordinate space in CSS pixels. Defaults to 300. Usage notes Alternative conten...
<div>: The Content Division element - HTML: Hypertext Markup Language
ou name it!</p> </div> The result looks like this: A styled example This example creates a shadowed box by applying a style to the <div> using CSS. Note the use of the class attribute on the <div> to apply the style named "shadowbox" to the element. HTML <div class="shadowbox"> <p>Here's a very interesting note displayed in a lovely shadowed box.</p> </div> CSS .shadowbox { width:
15em; border: 1px solid #333; box-shadow: 8px 8px 5px #444; padding: 8px 12px; background-image: linear-gradient(180deg, #fff, #ddd 40%, #ccc); } Result Specifications Specification Status Comment HTML Living StandardThe definition of '<div>' in that specification. Living Standard No changes since the latest snapshot HTML5The definition of '<di...
<iframe>: The Inline Frame element - HTML: Hypertext Markup Language
fined as allow="fullscreen". allowpaymentrequest Set to true if a cross-origin <iframe> should be allowed to invoke the Payment Request API. This attribute is considered a legacy attribute and redefined as allow="payment". csp A Content Security Policy enforced for the embedded resource. See HTMLIFrameElement.csp for details. height The height of the frame in CSS pixels. Default is
150. importance The download priority of the resource in the <iframe>'s src attribute. Allowed values: auto (default) No preference. The browser uses its own heuristics to decide the priority of the resource. high The resource should be downloaded before other lower-priority page resources. low The resource should be downloaded after other higher-priority page resources. loadi...
<input type="button"> - HTML: Hypertext Markup Language
bar"> <input type="color" aria-label="select pen color"> <input type="range" min="2" max="50" value="30" aria-label="select pen size"><span class="output">30</span> <input type="button" value="Clear canvas"> </div> <canvas class="myCanvas"> <p>Add suitable fallback here.</p> </canvas> body { background: #ccc; margin: 0; overflow: hidden; } .toolbar { background: #ccc; width:
150px; height: 75px; padding: 5px; } input[type="color"], input[type="button"] { width: 90%; margin: 0 auto; display: block; } input[type="range"] { width: 70%; } span { position: relative; bottom: 5px; } var canvas = document.querySelector('.myCanvas'); var width = canvas.width = window.innerWidth; var height = canvas.height = window.innerHeight-85; var ctx = canvas.getContext(...
<input type="tel"> - HTML: Hypertext Markup Language
efox for Android WebKit iOS (Safari/Chrome/Firefox) A simple tel input In its most basic form, a tel input can be implemented like this: <label for="telNo">Phone number:</label> <input id="telNo" name="telNo" type="tel"> There is nothing magical going on here. When submitted to the server, the above input's data would be represented as, for example, telNo=+12125553
151. Placeholders Sometimes it's helpful to offer an in-context hint as to what form the input data should take. This can be especially important if the page design doesn't offer descriptive labels for each <input>. This is where placeholders come in. A placeholder is a value that demonstrates the form the value should take by presenting an example of a valid value, which is displayed inside the e...
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
ints both client side and server side. Constraint validation doesn't remove the need for validation on the server side. Invalid values can still be sent by older browsers or by bad actors. Note: Firefox supported a proprietary error attribute -- x-moz-errormessage -- for many versions, which allowed you set custom error messages in a similar way. This has been removed as of version 66 (see bug
1513890). Localization The allowed inputs for certain <input> types depend on the locale. In some locales, 1,000.00 is a valid number, while in other locales the valid way to enter this number is 1.000,00. Firefox uses the following heuristics to determine the locale to validate the user's input (at least for type="number"): Try the language specified by a lang/xml:lang attribute on the eleme...
<map> - HTML: Hypertext Markup Language
name attribute of another <map> element in the same document. If the id attribute is also specified, both attributes must have the same value. Examples <map name="primary"> <area shape="circle" coords="75,75,75" href="left.html"> <area shape="circle" coords="275,75,75" href="right.html"> </map> <img usemap="#primary" src="https://udn.realityripple.com/samples/6a/7e559101b3.png" alt="350 x
150 pic"> Result Expected live example output The live example above should appear similar to the following images (when using your keyboard tab key): For the left.html link: For the right.html link Specifications Specification Status Comment HTML Living StandardThe definition of '<map>' in that specification. Living Standard HTML5The definit...
<script>: The Script element - HTML: Hypertext Markup Language
evaluate scripts before continuing to parse. async has a similar effect in this case. integrity This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation. See Subresource Integrity. nomodule This Boolean attribute is set to indicate that the script should not be executed in browsers that support ES20
15 modules -- in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code. nonce A cryptographic nonce (number used once) to whitelist scripts in a script-src Content-Security-Policy. The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource'...
<tbody>: The Table Body element - HTML: Hypertext Markup Language
ow what we're building: HTML The revised HTML looks like this: <table> <thead> <tr> <th>Student ID</th> <th>Name</th> </tr> </thead> <tbody> <tr> <th colspan="2">Computer Science</th> </tr> <tr> <td>3741255</td> <td>Jones, Martha</td> </tr> <tr> <td>4077830</td> <td>Pierce, Benjamin</td> </tr> <tr> <td>5
151701</td> <td>Kirk, James</td> </tr> </tbody> <tbody> <tr> <th colspan="2">Russian Literature</th> </tr> <tr> <td>3971244</td> <td>Nim, Victor</td> </tr> </tbody> <tbody> <tr> <th colspan="2">Astrophysics</th> </tr> <tr> <td>4100332</td> <td>Petrov, Alexandra</td> </tr> <tr> <td>8892377</td> <td>T...
<textarea> - HTML: Hypertext Markup Language
NoNotes Notes See issue 758078.Firefox Full support 59IE No support NoOpera No support NoSafari Full support YesNotes Full support YesNotes Notes See bug
150731.WebView Android Full support 66Chrome Android Full support 66Firefox Android Full support 59Opera Android No support NoSafari iOS No support NoSamsung Internet Android ...
<video>: The Video Embed element - HTML: Hypertext Markup Language
play audio in a video element. If automatic captioning services are used, it is important to review the generated content to ensure it accurately represents the source video. In addition to spoken dialog, subtitles and transcripts should also identify music and sound effects that communicate important information. This includes emotion and tone: 14 00:03:14 --> 00:03:18 [Dramatic rock music]
15 00:03:19 --> 00:03:21 [whispering] What's that off in the distance? 16 00:03:22 --> 00:03:24 It's... it's a... 16 00:03:25 --> 00:03:32 [Loud thumping] [Dishes clattering] Captions should not obstruct the main subject of the video. They can be positioned using the align VTT cue setting. MDN Adding captions and subtitles to HTML5 video Web Video Text Tracks Format (WebVTT) WebAIM: Caption...
accesskey - HTML: Hypertext Markup Language
Firefox 57 or newer: Control + Option + key or Control + Alt + key On Firefox 14 or newer: Control + Alt + key On Firefox 13 or older: Control + key Internet Explorer Alt + key Alt + Shift + key N/A Edge N/A Control + Option + key Control + Option + Shift + key Google Chrome Alt + Shift + key Safari N/A Opera
15+ Alt + key Control + Alt + key Opera 12 Shift + Esc opens a contents list which are accessible by accesskey, then, can choose an item by pressing key Accessibility concerns In addition to poor browser support, there are numerous concerns with the accesskey attribute: An accesskey value can conflict with a system or browser keyboard shortcut, or assistive tech...
HTTP caching - HTTP
aximum amount of time a resource will be considered fresh. Contrary to Expires, this directive is relative to the time of the request. For the files in the application that will not change, you can usually add aggressive caching. This includes static files such as images, CSS files and JavaScript files, for example. For more details, see also the Freshness section below. Cache-Control: max-age=3
1536000 Validation When using the "must-revalidate" directive, the cache must verify the status of the stale resources before using it and expired ones should not be used. For more details, see the Validation section below. Cache-Control: must-revalidate The Pragma header Pragma is a HTTP/1.0 header, it is not specified for HTTP responses and is therefore not a reliable replacement for the gene...
Accept-Charset - HTTP
arset header: Internet Explorer 8+, Safari 5+, Opera 11+, Firefox 10+ and Chrome 27+ no longer send it. Header type Request header Forbidden header name yes Syntax Accept-Charset: <charset> // Multiple types, weighted with the quality value syntax: Accept-Charset: utf-8, iso-8859-1;q=0.5 Directives <charset> A character encoding name, like utf-8 or iso-8859-
15. * Any charset not mentioned elsewhere in the header; * is used as a wildcard. ;q=<weight> Any encoding is placed in an order of preference, expressed using a relative quality value called the weight. Examples Accept-Charset: iso-8859-1 Accept-Charset: utf-8, iso-8859-1;q=0.5 Accept-Charset: utf-8, iso-8859-1;q=0.5, *;q=0.1 Specifications Specification Title R...
Accept-Patch - HTTP
The Accept-Patch response HTTP header advertises which media-type the server is able to understand. Accept-Patch in response to any method means that PATCH is allowed on the resource identified by the Request-URI. Two common cases lead to this: A server receiving a PATCH request with an unsupported media type could reply with 4
15 Unsupported Media Type and an Accept-Patch header referencing one or more supported media types. Notes: An IANA registry maintains a complete list of official content encodings. Two others content encoding, bzip and bzip2, are sometimes used, though not standard. They implement the algorithm used by these two UNIX programs. Note that the first one was discontinued due to patent licensing problems. Header type Response header F...
CSP: style-src - HTTP
cks: Content-Security-Policy: style-src 'nonce-2726c7f26c' You will have to set the same nonce on the <style> element: <style nonce="2726c7f26c"> #inline-style { background: red; } </style> Alternatively, you can create hashes from your inline styles. CSP supports sha256, sha384 and sha512. Content-Security-Policy: style-src 'sha256-a330698cbe9dc4ef1fb12e2ee9fc06d5d14300262fa4dc5878103ab7347e
158f' When generating the hash, don't include the <style> tags and note that capitalization and whitespace matter, including leading or trailing whitespace. <style>#inline-style { background: red; }</style> Unsafe style expressions The 'unsafe-eval' source expression controls several style methods that create style declarations from strings. If 'unsafe-eval' isn't specified with the style-src di...
Date - HTTP
, "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" (case sensitive). <year> 4 digit year number, e.g. "1990" or "2016". <hour> 2 digit hour number, e.g. "09" or "23". <minute> 2 digit minute number, e.g. "04" or "59". ...
ETag - HTTP
a string of ASCII characters placed between double quotes, like "675af34563dc-tr34". The method by which ETag values are generated is not specified. Often, a hash of the content, a hash of the last modification timestamp, or just a revision number is used. For example, MDN uses a hexadecimal hash of the wiki article content. Examples ETag: "33a64df551425fcc55e4d42a148795d9f25f89d4" ETag: W/"08
15" Avoiding mid-air collisions With the help of the ETag and the If-Match headers, you can detect mid-air edit collisions. For example, when editing MDN, the current wiki content is hashed and put into an Etag in the response: ETag: "33a64df551425fcc55e4d42a148795d9f25f89d4" When saving changes to a wiki page (posting data), the POST request will contain the If-Match header containing the ETag...
Expires - HTTP
ce is already expired. If there is a Cache-Control header with the max-age or s-maxage directive in the response, the Expires header is ignored. ...
403 Forbidden - HTTP
nt error status response code indicates that the server understood the request but refuses to authorize it. ...
407 Proxy Authentication Required - HTTP
en applied because it lacks valid authentication credentials for a proxy server that is between the browser and the server that can access the requested resource. ...
412 Precondition Failed - HTTP
happens with conditional requests on methods other than GET or HEAD when the condition defined by the If-Unmodified-Since or If-None-Match headers is not fulfilled. In that case, the request, usually an upload or a modification of a resource, cannot be made and this error response is sent back. Status 412 Precondition Failed Examples ETag: "33a64df551425fcc55e4d42a148795d9f25f89d4" ETag: W/"08
15" Avoiding mid-air collisions With the help of the ETag and the If-Match headers, you can detect mid-air edit collisions. For example, when editing MDN, the current wiki content is hashed and put into an Etag in the response: ETag: "33a64df551425fcc55e4d42a148795d9f25f89d4" When saving changes to a wiki page (posting data), the POST request will contain the If-Match header containing the ETag...
HTTP response status codes - HTTP
nd the server requires it. 412 Precondition Failed The client has indicated preconditions in its headers which the server does not meet. 413 Payload Too Large Request entity is larger than limits defined by server; the server might close the connection or return an Retry-After header field. 414 URI Too Long The URI requested by the client is longer than the server is willing to interpret. 4
15 Unsupported Media Type The media format of the requested data is not supported by the server, so the server is rejecting the request. 416 Range Not Satisfiable The range specified by the Range header field in the request can't be fulfilled; it's possible that the range is outside the size of the target URI's data. 417 Expectation Failed This response code means the expectation indicated by t...
Enumerability and ownership of properties - JavaScript
otEnumerable); }, // Private static property checker callbacks _enumerable: function(obj, prop) { return obj.propertyIsEnumerable(prop); }, _notEnumerable: function(obj, prop) { return !obj.propertyIsEnumerable(prop); }, _enumerableAndNotEnumerable: function(obj, prop) { return true; }, // Inspired by http://stackoverflow.com/a/8024294/27
1577 _getPropertyNames: function getAllPropertyNames(obj, iterateSelfBool, iteratePrototypeBool, includePropCb) { var props = []; do { if (iterateSelfBool) { Object.getOwnPropertyNames(obj).forEach(function(prop) { if (props.indexOf(prop) === -1 && includePropCb(obj, prop)) { props.push(prop); ...
Keyed collections - JavaScript
A Map object is a simple key/value map and can iterate its elements in insertion order. The following code shows some basic operations with a Map. See also the Map reference page for more examples and the complete API. ...
Loops and iteration - JavaScript
e following example shows a while loop with a continue statement that executes when the value of i is 3. Thus, n takes on the values 1, 3, 7, and 12. let i = 0; let n = 0; while (i < 5) { i++; if (i === 3) { continue; } n += i; console.log(n); } //1,3,7,12 let i = 0; let n = 0; while (i < 5) { i++; if (i === 3) { // continue; } n += i; console.log(n); } // 1,3,6,10,
15 Example 2 A statement labeled checkiandj contains a statement labeled checkj. If continue is encountered, the program terminates the current iteration of checkj and begins the next iteration. Each time continue is encountered, checkj reiterates until its condition returns false. When false is returned, the remainder of the checkiandj statement is completed, and checkiandj reiterates until its ...
Meta programming - JavaScript
property lookup, assignment, enumeration, function invocation, etc). With the help of these two objects you are able to program at the meta level of JavaScript. Proxies Introduced in ECMAScript 6, Proxy objects allow you to intercept certain operations and to implement custom behaviors. ...
Character classes - JavaScript
that means 0 or more occurrences of the preceding character should be matched; for example, /a*/ means match 0 or more "a"s. To match * literally, precede it with a backslash; for example, /a\*/ matches "a*". To match this character literally, escape it with itself. In other words to search for \ use /\\/. Examples Looking for a series of digits var randomData = "0
15 354 8787 687351 3512 8735"; var regexpFourDigits = /\b\d{4}\b/g; // \b indicates a boundary (i.e. do not start matching in the middle of a word) // \d{4} indicates a digit, four times // \b indicates another boundary (i.e. do not end matching in the middle of a word) console.table(randomData.match(regexpFourDigits)); // ['8787', '3512', '8735'] Looking for a word (from the latin alphabet) sta...
JavaScript technologies overview - JavaScript
t ECMAScript only defines the APIs not specific to browsers, e.g. parseInt, parseFloat, decodeURI, encodeURI... A prototype-based inheritance mechanism Built-in objects and functions (JSON, Math, Array.prototype methods, Object introspection methods, etc.) Strict mode Browser support As of October 2016, the current versions of the major Web browsers implement ECMAScript 5.1 and ECMAScript 20
15, but older versions (still in use) implement ECMAScript 5 only. Future The major 6th Edition of ECMAScript was officially approved and published as a standard on June 17, 20
15 by the ECMA General Assembly. Since then ECMAScript Editions are published on a yearly basis. Internationalization API The ECMAScript Internationalization API Specification is an addition to the ECMAScript Language Spec...
About the JavaScript reference - JavaScript
may span multiple lines. Multiple statements may occur on a single line if each statement is separated by a semicolon. This isn't a keyword, but a group of keywords. Expressions and operators This chapter documents all the JavaScript language operators, expressions and keywords. Functions Chapter about JavaScript functions. Classes Chapter about JavaScript classes introduced in ECMAScript 20
15. Errors Chapter about specific errors, exceptions and warnings thrown by JavaScript. New in JavaScript Chapter about JavaScript version history. More reference pages Deprecated and obsolete features Lexical grammar Data types and data structures ...
TypeError: property "x" is non-configurable and can't be deleted - JavaScript
ether its attributes (other than writable) can be changed. This error happens only in strict mode code. In non-strict code, the operation returns false. Examples Attempting to delete non-configurable properties Non-configurable properties are not super common, but they can be created using Object.defineProperty() or Object.freeze(). 'use strict'; var obj = Object.freeze({name: 'Elsa', score:
157}); delete obj.score; // TypeError 'use strict'; var obj = {}; Object.defineProperty(obj, 'foo', {value: 2, configurable: false}); delete obj.foo; // TypeError 'use strict'; var frozenArray = Object.freeze([0, 1, 2]); frozenArray.pop(); // TypeError There are also a few non-configurable properties built into JavaScript. Maybe you tried to delete a mathematical constant. 'use strict'; dele...
SyntaxError: "0"-prefixed octal literals and octal escape seq. are deprecated - JavaScript
or: Octal numeric literals and escape characters not allowed in strict mode (Edge) SyntaxError: "0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead Error type SyntaxError in strict mode only. What went wrong? Octal literals and octal escape sequences are deprecated and will throw a SyntaxError in strict mode. With ECMAScript 20
15 and later, the standardized syntax uses a leading zero followed by a lowercase or uppercase Latin letter "O" (0o or 0O). Examples "0"-prefixed octal literals "use strict"; 03; // SyntaxError: "0"-prefixed octal literals and octal escape sequences // are deprecated Octal escape sequences "use strict"; "\251"; // SyntaxError: "0"-prefixed octal literals and octal escape sequences // are de...
SyntaxError: missing ) after argument list - JavaScript
for example. Examples Because there is no "+" operator to concatenate the string, JavaScript expects the argument for the log function to be just "PI: ". In that case, it should be terminated by a closing parenthesis. console.log('PI: ' Math.PI); // SyntaxError: missing ) after argument list You can correct the log call by adding the "+" operator: console.log('PI: ' + Math.PI); // "PI: 3.14
1592653589793" Unterminated strings console.log('"Java" + "Script" = \"' + 'Java' + 'Script\"); // SyntaxError: missing ) after argument list Here JavaScript thinks that you meant to have ); inside the string and ignores it, and it ends up not knowing that you meant the ); to end the function console.log. To fix this, we could put a' after the "Script" string: console.log('"Java" + "Script" = \...
Default parameters - JavaScript
rn NaN. function multiply(a, b) { return a * b } multiply(5, 2) // 10 multiply(5) // NaN ! To guard against this, something like the second line would be used, where b is set to 1 if multiply is called with only one argument: function multiply(a, b) { b = (typeof b !== 'undefined') ? b : 1 return a * b } multiply(5, 2) // 10 multiply(5) // 5 With default parameters in ES20
15, checks in the function body are no longer necessary. Now, you can assign 1 as the default value for b in the function head: function multiply(a, b = 1) { return a * b } multiply(5, 2) // 10 multiply(5) // 5 multiply(5, undefined) // 5 Examples Passing undefined vs. other falsy values In the second call in this example, even if the first argument is set explicitly to...
The arguments object - JavaScript
t is not an Array. It is similar, but lacks all Array properties except length. For example, it does not have the pop() method. However, it can be converted to a real Array: var args = Array.prototype.slice.call(arguments); // Using an array literal is shorter than above but allocates an empty array var args = [].slice.call(arguments); As you can do with any Array-like object, you can use ES20
15's Array.from() method or spread syntax to convert arguments to a real Array: let args = Array.from(arguments); // or let args = [...arguments]; The arguments object is useful for functions called with more arguments than they are formally declared to accept. This technique is useful for functions that can be passed a variable number of arguments, such as Math.min(). This example function accep...
getter - JavaScript
e source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax {get prop() { ... } } {get [expression]() { ... } } Parameters prop The name of the property to bind to the given function. expression Starting with ECMAScript 20
15, you can also use expressions for a computed property name to bind to the given function. Description Sometimes it is desirable to allow access to a property that returns a dynamically computed value, or you may want to reflect the status of an internal variable without requiring the use of explicit method calls. In JavaScript, this can be accomplished with the use of a getter. It is not poss...
setter - JavaScript
bute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax {set prop(val) { . . . }} {set [expression](val) { . . . }} Parameters prop The name of the property to bind to the given function. val An alias for the variable that holds the value attempted to be assigned to prop. expression Starting with ECMAScript 20
15, you can also use expressions for a computed property name to bind to the given function. Description In JavaScript, a setter can be used to execute a function whenever a specified property is attempted to be changed. Setters are most often used in conjunction with getters to create a type of pseudo-property. It is not possible to simultaneously have a setter on a property that holds an actual...
Array.prototype.find() - JavaScript
ocation of callback. Therefore: callback will not visit any elements added to the array after the call to find begins. If an existing, yet-unvisited element of the array is changed by callback, its value passed to the callback will be the value at the time find visits that element's index. Elements that are deleted are still visited. Polyfill This method has been added to the ECMAScript 20
15 specification and may not be available in all JavaScript implementations yet. However, you can polyfill Array.prototype.find with the following snippet: // https://tc39.github.io/ecma262/#sec-array.prototype.find if (!Array.prototype.find) { Object.defineProperty(Array.prototype, 'find', { value: function(predicate) { // 1. Let O be ? ToObject(this value). if (this == null) { ...
Array.prototype.indexOf() - JavaScript
at[i] === member) return i return -1 // if the value was not found, then return -1 } })(Object, Math.max, Math.min) However, if you are more interested in all the little technical bits defined by the ECMA standard, and are less concerned about performance or conciseness, then you may find this more descriptive polyfill to be more useful. // Production steps of ECMA-262, Edition 5,
15.4.4.14 // Reference: http://es5.github.io/#x
15.4.4.14 if (!Array.prototype.indexOf) { Array.prototype.indexOf = function(searchElement, fromIndex) { "use strict"; var k; // 1. Let o be the result of calling ToObject passing // the this value as the argument. if (this == null) { throw new TypeError('"this" is null or not defined'); } var o = Object(this); ...
Array.prototype.map() - JavaScript
inserting the following code at the beginning of your scripts, allowing use of map in implementations which do not natively support it. This algorithm is exactly the one specified in ECMA-262, 5th edition, assuming Object, TypeError, and Array have their original values and that callback.call evaluates to the original value of Function.prototype.call. // Production steps of ECMA-262, Edition 5,
15.4.4.19 // Reference: http://es5.github.io/#x
15.4.4.19 if (!Array.prototype.map) { Array.prototype.map = function(callback/*, thisArg*/) { var T, A, k; if (this == null) { throw new TypeError('this is null or not defined'); } // 1. Let O be the result of calling ToObject passing the |this| // value as the argument. var O = Object(this); // 2. Let lenValu...
Array.of() - JavaScript
slots, not slots with actual undefined values). Array.of(7); // [7] Array.of(1, 2, 3); // [1, 2, 3] Array(7); // array of 7 empty slots Array(1, 2, 3); // [1, 2, 3] Syntax Array.of(element0[, element1[, ...[, elementN]]]) Parameters elementN Elements used to create the array. Return value A new Array instance. Description This function is part of the ECMAScript 20
15 standard. For more information, see: Array.of() Array.from() proposal Array.of() polyfill Polyfill Running the following code before any other code will create Array.of() if it's not natively available. if (!Array.of) { Array.of = function() { return Array.prototype.slice.call(arguments); // Or let vals = []; for(let prop in arguments){ vals.push(arguments[pro...
Array.prototype.sort() - JavaScript
mpare function can simply subtract b from a. The following function will sort the array in ascending order (if it doesn't contain Infinity and NaN): function compareNumbers(a, b) { return a - b; } The sort method can be conveniently used with function expressions: var numbers = [4, 2, 5, 1, 3]; numbers.sort(function(a, b) { return a - b; }); console.log(numbers); // [1, 2, 3, 4, 5] ES20
15 provides arrow function expressions with even shorter syntax. let numbers = [4, 2, 5, 1, 3]; numbers.sort((a, b) => a - b); console.log(numbers); // [1, 2, 3, 4, 5] Objects can be sorted, given the value of one of their properties. var items = [ { name: 'Edward', value: 21 }, { name: 'Sharpe', value: 37 }, { name: 'And', value: 45 }, { name: 'The', value: -12 }, { name: 'Magnetic', ...
ArrayBuffer() constructor - JavaScript
and send us a pull request. Syntax new ArrayBuffer(length) Parameters length The size, in bytes, of the array buffer to create. Return value A new ArrayBuffer object of the specified size. Its contents are initialized to 0. Exceptions A RangeError is thrown if the length is larger than Number.MAX_SAFE_INTEGER (>= 2 ** 53) or negative. Compatibility notes Starting with ECMAScript 20
15, ArrayBuffer constructors require to be constructed with a new operator. Calling an ArrayBuffer constructor as a function without new, will throw a TypeError from now on. var dv = ArrayBuffer(10); // TypeError: calling a builtin ArrayBuffer constructor // without new is forbidden var dv = new ArrayBuffer(10); Examples Creating an ArrayBuffer In this example, we create a 8-byte buffer with a ...
BigInt.asUintN() - JavaScript
rameters width The amount of bits available for the integer size. bigint The integer to clamp to fit into the supplied bits. Returns The value of bigint modulo 2width as an unsigned integer. Examples Staying in 64-bit ranges The BigInt.asUintN() method can be useful to stay in the range of 64-bit arithmetic. const max = 2n ** 64n - 1n; BigInt.asUintN(64, max); // ? 184467440737095516
15n BigInt.asUintN(64, max + 1n); // ? 0n // zero because of overflow Specifications Specification ECMAScript (ECMA-262)The definition of 'BigInt.asUintN()' in that specification. ...
DataView.prototype.setBigUint64() - JavaScript
ject, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax dataview.setBigUint64(byteOffset, value [, littleEndian]) Parameters byteOffset The offset, in bytes, from the start of the view to store the data from. value The value to set as a BigInt. The highest possible value that fits in an unsigned 64-bit integer is 2n ** 64n - 1n (184467440737095516
15n). Upon overflow, it will be zero (0n). littleEndian Optional Indicates whether the 64-bit int is stored in little- or big-endian format. If false or undefined, a big-endian value is written. Return value undefined. Errors thrown RangeError Thrown if the byteOffset is set such that it would store beyond the end of the view. Examples Using the setBigUint64 method var buffer = new Arr...
Date.UTC() - JavaScript
year). For example, 95 is converted to the year 1995. The UTC() method differs from the Date constructor in two ways: Date.UTC() uses universal time instead of the local time. Date.UTC() returns a time value as a number instead of creating a Date object. If a parameter is outside of the expected range, the UTC() method updates the other parameters to accommodate the value. For example, if
15 is used for month, the year will be incremented by 1 (year + 1) and 3 will be used for the month. UTC() is a static method of Date, so it's called as Date.UTC() rather than as a method of a Date instance. Examples Using Date.UTC() The following statement creates a Date object with the arguments treated as UTC instead of local: let utcDate = new Date(Date.UTC(2018, 11, 1, 0, 0, 0)); Specifi...
Date.prototype.getDate() - JavaScript
m/mdn/interactive-examples and send us a pull request. Syntax dateObj.getDate() Return value An integer number, between 1 and 31, representing the day of the month for the given date according to local time. Examples Using getDate() The second statement below assigns the value 25 to the variable day, based on the value of the Date object Xmas95. var Xmas95 = new Date('December 25, 1995 23:
15:30'); var day = Xmas95.getDate(); console.log(day); // 25 Specifications Specification ECMAScript (ECMA-262)The definition of 'Date.prototype.getDate' in that specification. ...
Date.prototype.getDay() - JavaScript
y() Return value An integer number, between 0 and 6, corresponding to the day of the week for the given date, according to local time: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on. Examples Using getDay() The second statement below assigns the value 1 to weekday, based on the value of the Date object Xmas95. December 25, 1995, is a Monday. var Xmas95 = new Date('December 25, 1995 23:
15:30'); var weekday = Xmas95.getDay(); console.log(weekday); // 1 Note: If needed, the full name of a day ("Monday" for example) can be obtained by using Intl.DateTimeFormat with an options parameter. Using this method, the internationalization is made easier: var options = { weekday: 'long'}; console.log(new Intl.DateTimeFormat('en-US', options).format(Xmas95)); // Monday console.log(new Intl...
Date.prototype.getHours() - JavaScript
ithub.com/mdn/interactive-examples and send us a pull request. Syntax dateObj.getHours() Return value An integer number, between 0 and 23, representing the hour for the given date according to local time. Examples Using getHours() The second statement below assigns the value 23 to the variable hours, based on the value of the Date object Xmas95. let Xmas95 = new Date('December 25, 1995 23:
15:30'); let hours = Xmas95.getHours(); console.log(hours); // 23 Specifications Specification ECMAScript (ECMA-262)The definition of 'Date.prototype.getHours' in that specification. ...
Date.prototype.getMinutes() - JavaScript
The getMinutes() method returns the minutes in the specified date according to local time. Syntax dateObj.getMinutes() Return value An integer number, between 0 and 59, representing the minutes in the given date according to local time. Examples Using getMinutes() The second statement below assigns the value
15 to the variable minutes, based on the value of the Date object Xmas95. var Xmas95 = new Date('December 25, 1995 23:
15:30'); var minutes = Xmas95.getMinutes(); console.log(minutes); //
15 Specifications Specification ECMAScript (ECMA-262)The definition of 'Date.prototype.getMinutes' in that specification. ...
Date.prototype.getMonth() - JavaScript
l request. Syntax dateObj.getMonth() Return value An integer number, between 0 and 11, representing the month in the given date according to local time. 0 corresponds to January, 1 to February, and so on. Examples Using getMonth() The second statement below assigns the value 11 to the variable month, based on the value of the Date object Xmas95. var Xmas95 = new Date('December 25, 1995 23:
15:30'); var month = Xmas95.getMonth(); console.log(month); // 11 Note: If needed, the full name of a month ("January" for example) can be obtained by using Intl.DateTimeFormat() with an options parameter. Using this method, internationalization is made easier: var options = { month: 'long'}; console.log(new Intl.DateTimeFormat('en-US', options).format(Xmas95)); // December console.log(new Intl...
Date.prototype.getSeconds() - JavaScript
m/mdn/interactive-examples and send us a pull request. Syntax dateObj.getSeconds() Return value An integer number, between 0 and 59, representing the seconds in the given date according to local time. Examples Using getSeconds() The second statement below assigns the value 30 to the variable seconds, based on the value of the Date object Xmas95. var Xmas95 = new Date('December 25, 1995 23:
15:30'); var seconds = Xmas95.getSeconds(); console.log(seconds); // 30 Specifications Specification ECMAScript (ECMA-262)The definition of 'Date.prototype.getSeconds' in that specification. ...
Date.prototype.getTime() - JavaScript
he given date. Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of new Date().getTime() might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 20us in Firefox 59; in 60 it will be 2ms. // reduced time precision (2ms) in Firefox 60 new Date().getTime(); //
1519211809934 //
1519211810362 //
1519211811670 // ... // reduced time precision with `privacy.resistFingerprinting` enabled new Date().getTime(); //
1519129853500 //
1519129858900 //
1519129864400 // ... In Firefox, you can also enable privacy.resistFingerprinting, the precision will be 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger. ...
Date.now() - JavaScript
Date().getTime(); }; } Examples Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of Date.now() might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 20us in Firefox 59; in 60 it will be 2ms. // reduced time precision (2ms) in Firefox 60 Date.now() //
1519211809934 //
1519211810362 //
1519211811670 // ... // reduced time precision with `privacy.resistFingerprinting` enabled Date.now(); //
1519129853500 //
1519129858900 //
1519129864400 // ... In Firefox, you can also enable privacy.resistFingerprinting, the precision will be 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger. Specificat...
Date.prototype.setFullYear() - JavaScript
1 January 1970 00:00:00 UTC and the updated date. Description If you do not specify the monthValue and dateValue parameters, the values returned from the getMonth() and getDate() methods are used. If a parameter you specify is outside of the expected range, setFullYear() attempts to update the other parameters and the date information in the Date object accordingly. For example, if you specify
15 for monthValue, the year is incremented by 1 (yearValue + 1), and 3 is used for the month. Examples Using setFullYear() var theBigDay = new Date(); theBigDay.setFullYear(1997); Specifications Specification ECMAScript (ECMA-262)The definition of 'Date.prototype.setFullYear' in that specification. ...
Date.prototype.setMonth() - JavaScript
y of the month. Return value The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date. Description If you do not specify the dayValue parameter, the value returned from the getDate() method is used. If a parameter you specify is outside of the expected range, setMonth() attempts to update the date information in the Date object accordingly. For example, if you use
15 for monthValue, the year will be incremented by 1, and 3 will be used for month. The current day of month will have an impact on the behaviour of this method. Conceptually it will add the number of days given by the current day of the month to the 1st day of the new month specified as the parameter, to return the new date. For example, if the current value is 31st August 2016, calling setMonth w...
Date.prototype.setUTCFullYear() - JavaScript
y 1970 00:00:00 UTC and the updated date. Description If you do not specify the monthValue and dayValue parameters, the values returned from the getUTCMonth() and getUTCDate() methods are used. If a parameter you specify is outside of the expected range, setUTCFullYear() attempts to update the other parameters and the date information in the Date object accordingly. For example, if you specify
15 for monthValue, the year is incremented by 1 (yearValue + 1), and 3 is used for the month. Examples Using setUTCFullYear() var theBigDay = new Date(); theBigDay.setUTCFullYear(1997); Specifications Specification ECMAScript (ECMA-262)The definition of 'Date.prototype.setUTCFullYear' in that specification. ...
Date.prototype.setUTCMonth() - JavaScript
he month. Return value The number of milliseconds between 1 January 1970 00:00:00 UTC and the updated date. Description If you do not specify the dayValue parameter, the value returned from the getUTCDate() method is used. If a parameter you specify is outside of the expected range, setUTCMonth() attempts to update the date information in the Date object accordingly. For example, if you use
15 for monthValue, the year will be incremented by 1, and 3 will be used for month. Examples Using setUTCMonth() var theBigDay = new Date(); theBigDay.setUTCMonth(11); Specifications Specification ECMAScript (ECMA-262)The definition of 'Date.prototype.setUTCMonth' in that specification. ...
Date.prototype.toJSON() - JavaScript
e. Description Date instances refer to a specific point in time. Calling toJSON() returns a string (using toISOString()) representing the Date object's value. This method is generally intended to, by default, usefully serialize Date objects during JSON serialization. Examples Using toJSON() var jsonDate = (new Date()).toJSON(); var backToDate = new Date(jsonDate); console.log(jsonDate); //20
15-10-26T07:46:36.611Z Specifications Specification ECMAScript (ECMA-262)The definition of 'Date.prototype.toJSON' in that specification. ...
Error.prototype.stack - JavaScript
he 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. There is no standard formatting. However, Safari 6+ and Opera 12- use a very similar format. Browsers using the V8 JavaScript engine (such as Chrome, Opera
15+, Android Browser) and IE10+, on the other hand, uses a different format (see the archived MSDN error.stack docs). Argument values in the stack: Prior to Firefox 14, the function name would be followed by the argument values converted to string in parentheses immediately before the at (@) sign. While an object (or array, etc.) would appear in the converted form "[object Object]", and as such cou...
Error - JavaScript
an in-depth discussion. ES6 Custom Error Class Versions of Babel prior to 7 can handle CustomError class methods, but only when they are declared with Object.defineProperty(). Otherwise, old versions of Babel and other transpilers will not correctly handle the following code without additional configuration. Some browsers include the CustomError constructor in the stack trace when using ES20
15 classes. class CustomError extends Error { constructor(foo = 'bar', ...params) { // Pass remaining arguments (including vendor specific ones) to parent constructor super(...params) // Maintains proper stack trace for where our error was thrown (only available on V8) if (Error.captureStackTrace) { Error.captureStackTrace(this, CustomError) } this.name = 'CustomE...
Function.prototype.bind() - JavaScript
treated as the thisArg for the new function. arg1, arg2, ...argN Optional Arguments to prepend to arguments provided to the bound function when invoking func. Return value A copy of the given function with the specified this value, and initial arguments (if provided). Description The bind() function creates a new bound function, which is an exotic function object (a term from ECMAScript 20
15) that wraps the original function object. Calling the bound function generally results in the execution of its wrapped function. A bound function has the following internal properties: [[BoundTargetFunction]] The wrapped function object [[BoundThis]] The value that is always passed as this value when calling the wrapped function. [[BoundArguments]] A list of values whose elements are use...
Intl.DisplayNames.prototype.of() - JavaScript
to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax displayNames.of(code); Parameters code The code to provide depends on the type: If the type is "region", code should be either an ISO-3166 two letters region code, or a three digits UN M49 Geographic Regions. If the type is "script", code should be an ISO-
15924 four letters script code. If the type is "language", code should be a languageCode ["-" scriptCode] ["-" regionCode ] *("-" variant ) subsequence of the unicode_language_id grammar in UTS 35's Unicode Language and Locale Identifiers grammar. languageCode is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code. If the type is "currency", code should be a 3...
Map.prototype.delete() - JavaScript
element does not exist. Examples Using delete() var myMap = new Map(); myMap.set('bar', 'foo'); myMap.delete('bar'); // Returns true. Successfully removed. myMap.has('bar'); // Returns false. The "bar" element is no longer present. Specifications Specification ECMAScript (ECMA-262)The definition of 'Map.prototype.delete' in that specification. ECMAScript 20
15 (6th Edition, ECMA-262)The definition of 'Map.prototype.delete' in that specification. ...
Map - JavaScript
done. Key Types A Map's keys can be any value (including functions, objects, or any primitive). The keys of an Object must be either a String or a Symbol. Key Order The keys in Map are ordered. Thus, when iterating over it, a Map object returns keys in order of insertion. The keys of an Object are not ordered. Note: Since ECMAScript 20
15, objects do preserve creation order for string and Symbol keys. In JavaScript engines that comply with the ECMAScript 20
15 spec, iterating over an object with only string keys will yield the keys in order of insertion. Size The number of items in a Map is easily retrieved from its size property. The number of items in an Object must be determined manually. Iterati...
Math.acos() - JavaScript
escription The Math.acos() method returns a numeric value between 0 and ? radians for x between -1 and 1. If the value of x is outside this range, it returns NaN. Because acos() is a static method of Math, you always use it as Math.acos(), rather than as a method of a Math object you created (Math is not a constructor). Examples Using Math.acos() Math.acos(-2); // NaN Math.acos(-1); // 3.14
1592653589793 Math.acos(0); // 1.5707963267948966 Math.acos(0.5); // 1.0471975511965979 Math.acos(1); // 0 Math.acos(2); // NaN For values less than -1 or greater than 1, Math.acos() returns NaN. Specifications Specification ECMAScript (ECMA-262)The definition of 'Math.acos' in that specification. ...
Math.atan2() - JavaScript
nts to this function pass the y-coordinate first and the x-coordinate second. Math.atan2() is passed separate x and y arguments, and Math.atan() is passed the ratio of those two arguments. Because atan2() is a static method of Math, you always use it as Math.atan2(), rather than as a method of a Math object you created (Math is not a constructor). Examples Using Math.atan2() Math.atan2(90,
15); // 1.4056476493802699 Math.atan2(
15, 90); // 0.16514867741462683 Math.atan2(+-0, -0); // +-PI. Math.atan2(+-0, +0); // +-0. Math.atan2(+-0, -x); // +-PI for x > 0. Math.atan2(+-0, x); // +-0 for x > 0. Math.atan2(-y, +-0); // -PI/2 for y > 0. Math.atan2(y, +-0); // PI/2 for y > 0. Math.atan2(+-y, -Infinity); ...
Math.cosh() - JavaScript
constructor). Polyfill This can be emulated with the help of the Math.exp() function: Math.cosh = Math.cosh || function(x) { return (Math.exp(x) + Math.exp(-x)) / 2; } or using only one call to the Math.exp() function: Math.cosh = Math.cosh || function(x) { var y = Math.exp(x); return (y + 1 / y) / 2; }; Examples Using Math.cosh() Math.cosh(0); // 1 Math.cosh(1); // 1.5430806348
152437 Math.cosh(-1); // 1.5430806348
152437 Specifications Specification ECMAScript (ECMA-262)The definition of 'Math.cosh' in that specification. ...
Math.fround() - JavaScript
Math.fround() The number 1.5 can be precisely represented in the binary numeral system, and is identical in 32-bit and 64-bit: Math.fround(1.5); // 1.5 Math.fround(1.5) === 1.5; // true However, the number 1.337 cannot be precisely represented in the binary numeral system, so it differs in 32-bit and 64-bit: Math.fround(1.337); // 1.3370000123977661 Math.fround(1.337) === 1.337; // false 2
1502^
150 is too big for a 32-bit float, so Infinity is returned: 2 **
150; // 1.42724769270596e+45 Math.fround(2 **
150); // Infinity If the parameter cannot be converted to a number, or it is not-a-number (NaN), Math.fround() will return NaN: Math.fround('abc'); // NaN Math.fround(NaN); // NaN Specifications Specification ECMAScript (ECMA-262)The definition of 'Math.fround'...
Math.hypot() - JavaScript
ath.sqrt(v1*v1 + v2*v2 + v3*v3 + v4*v4). This function makes this calculation easier and faster; you simply call Math.hypot(v1, v2) , or Math.hypot(v1, v2, v3, v4, ...). Math.hypot also avoids overflow/underflow problems if the magnitude of your numbers is very large. The largest number you can represent in JS is Number.MAX_VALUE, which is around 10308. If your numbers are larger than about 10
154, taking the square of them will result in Infinity. For example, Math.sqrt(1e200*1e200 + 1e200*1e200) = Infinity . If you use hypot() instead, you get better answer: Math.hypot(1e200, 1e200) = 1.4142...e+200 . This is also true with very small numbers. Math.sqrt(1e-200*1e-200 + 1e-200*1e-200) = 0, but Math.hypot(1e-200, 1e-200) =1.4142...e-200. Because hypot() is a static method of Math, you ...
Math.log2() - JavaScript
th.log(2). For log2(e) use the constant Math.LOG2E which is 1 / Math.LN2. Polyfill This Polyfill emulates the Math.log2 function. Note that it returns imprecise values on some inputs (like 1 << 29), wrap into Math.round() if working with bit masks. if (!Math.log2) Math.log2 = function(x) { return Math.log(x) * Math.LOG2E; }; Examples Using Math.log2() Math.log2(3); // 1.584962500721
156 Math.log2(2); // 1 Math.log2(1); // 0 Math.log2(0); // -Infinity Math.log2(-2); // NaN Math.log2(1024); // 10 Specifications Specification ECMAScript (ECMA-262)The definition of 'Math.log2' in that specification. ...
Math.tanh() - JavaScript
of a Math object you created (Math is not a constructor). Polyfill This can be emulated with the help of the Math.exp() function: Math.tanh = Math.tanh || function(x){ var a = Math.exp(+x), b = Math.exp(-x); return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (a + b); } Examples Using Math.tanh() Math.tanh(0); // 0 Math.tanh(Infinity); // 1 Math.tanh(1); // 0.76
1594
1559557649 Specifications Specification ECMAScript (ECMA-262)The definition of 'Math.tanh' in that specification. ...
Math - JavaScript
s Math.E Euler's constant and the base of natural logarithms; approximately 2.718. Math.LN2 Natural logarithm of 2; approximately 0.693. Math.LN10 Natural logarithm of 10; approximately 2.303. Math.LOG2E Base-2 logarithm of E; approximately 1.443. Math.LOG10E Base-10 logarithm of E; approximately 0.434. Math.PI Ratio of the a circle's circumference to its diameter; approximately 3.14
159. Math.SQRT1_2 Square root of 1/2 (or equivalently, 1/?2); approximately 0.707. Math.SQRT2 Square root of 2; approximately 1.414. Static methods Math.abs(x) Returns the absolute value of x. Math.acos(x) Returns the arccosine of x. Math.acosh(x) Returns the hyperbolic arccosine of x. Math.asin(x) Returns the arcsine of x. Math.asinh(x) Returns the hyperbolic arcsine of a number...
Number.parseFloat() - JavaScript
ed from the given string. Or NaN when the first non-whitespace character cannot be converted to a number. Polyfill if (Number.parseFloat === undefined) { Number.parseFloat = parseFloat; } Examples Number.parseFloat vs parseFloat This method has the same functionality as the global parseFloat() function: Number.parseFloat === parseFloat; // true This method is also part of ECMAScript 20
15. (Its purpose is modularization of globals.) See parseFloat() for more detail and examples. Specifications Specification ECMAScript (ECMA-262)The definition of 'Number.parseFloat' in that specification. ...
Number.parseInt() - JavaScript
dix is smaller than 2 or bigger than 36, and the first non-whitespace character cannot be converted to a number, NaN is returned. Polyfill if (Number.parseInt === undefined) { Number.parseInt = window.parseInt } Examples Number.parseInt vs parseInt This method has the same functionality as the global parseInt() function: Number.parseInt === parseInt // true and is part of ECMAScript 20
15 (its purpose is modularization of globals). Please see parseInt() for more detail and examples. Specifications Specification ECMAScript (ECMA-262)The definition of 'Number.parseInt' in that specification. ...
Object.defineProperty() - JavaScript
// This is equivalent to: // get: function() { return bValue; }, // set: function(newValue) { bValue = newValue; }, get() { return bValue; }, set(newValue) { bValue = newValue; }, enumerable: true, configurable: true }); o.b; // 38 // 'b' property exists in the o object and its value is 38 // The value of o.b is now always identical to bValue, // unless o.b is redefined /...
Object.getOwnPropertyNames() - JavaScript
dering of the enumerable properties in the array is consistent with the ordering exposed by a for...in loop (or by Object.keys()) over the properties of the object. The ordering of the non-enumerable properties in the array and the ordering among the enumerable properties is not defined. In ES5, if the argument to this method is not an object (a primitive), then it will cause a TypeError. In ES20
15, a non-object argument will be coerced to an object. Object.getOwnPropertyNames('foo'); // TypeError: "foo" is not an object (ES5 code) Object.getOwnPropertyNames('foo'); // ["0", "1", "2", "length"] (ES20
15 code) Examples Using Object.getOwnPropertyNames() var arr = ['a', 'b', 'c']; console.log(Object.getOwnPropertyNames(arr).sort()); // .sort() is an array method. // logs ["0", "1", "2",...
Object.getPrototypeOf() - JavaScript
obj The object whose prototype is to be returned. Return value The prototype of the given object. If there are no inherited properties, null is returned. Examples Using getPrototypeOf var proto = {}; var obj = Object.create(proto); Object.getPrototypeOf(obj) === proto; // true Non-object coercion In ES5, it will throw a TypeError exception if the obj parameter isn't an object. In ES20
15, the parameter will be coerced to an Object. Object.getPrototypeOf('foo'); // TypeError: "foo" is not an object (ES5 code) Object.getPrototypeOf('foo'); // String.prototype (ES20
15 code) Specifications Specification ECMAScript (ECMA-262)The definition of 'Object.getPrototypeOf' in that specification. ...
Object.isExtensible() - JavaScript
=== false // Sealed objects are by definition non-extensible. var sealed = Object.seal({}); Object.isExtensible(sealed); // === false // Frozen objects are also by definition non-extensible. var frozen = Object.freeze({}); Object.isExtensible(frozen); // === false Non-object coercion In ES5, if the argument to this method is not an object (a primitive), then it will cause a TypeError. In ES20
15, a non-object argument will be treated as if it was a non-extensible ordinary object, simply return false. Object.isExtensible(1); // TypeError: 1 is not an object (ES5 code) Object.isExtensible(1); // false (ES20
15 code) Specifications Specification ECMAScript (ECMA-262)The definition of 'Object.isExtensible' in that specification. ...
Object.isFrozen() - JavaScript
(frozen); // === false Object.freeze(frozen); Object.isFrozen(frozen); // === true // By definition, a frozen object is non-extensible. Object.isExtensible(frozen); // === false // Also by definition, a frozen object is sealed. Object.isSealed(frozen); // === true Non-object coercion In ES5, if the argument to this method is not an object (a primitive), then it will cause a TypeError. In ES20
15, a non-object argument will be treated as if it was a frozen ordinary object, simply return true. Object.isFrozen(1); // TypeError: 1 is not an object (ES5 code) Object.isFrozen(1); // true (ES20
15 code) Specifications Specification ECMAScript (ECMA-262)The definition of 'Object.isFrozen' in that specification. ...
Object.keys() - JavaScript
merable const myObj = Object.create({}, { getFoo: { value: function () { return this.foo; } } }); myObj.foo = 1; console.log(Object.keys(myObj)); // console: ['foo'] If you want all properties--including non-enumerables--see Object.getOwnPropertyNames(). Non-object coercion In ES5, if the argument to this method is not an object (a primitive), then it will cause a TypeError. From ES20
15 onwards, a non-object argument will be coerced to an object. // In ES5 Object.keys('foo'); // TypeError: "foo" is not an object // In ES20
15+ Object.keys('foo'); // ["0", "1", "2"] Specifications Specification ECMAScript (ECMA-262)The definition of 'Object.keys' in that specification. ...
Object.preventExtensions() - JavaScript
peError. function fail() { 'use strict'; // throws a TypeError nonExtensible.newProperty = 'FAIL'; } fail(); A non-extensible object's prototype is immutable: var fixed = Object.preventExtensions({}); // throws a 'TypeError'. fixed.__proto__ = { oh: 'hai' }; Non-object coercion In ES5, if the argument to this method is not an object (a primitive), then it will cause a TypeError. In ES20
15, a non-object argument will be treated as if it was a non-extensible ordinary object, simply return it. Object.preventExtensions(1); // TypeError: 1 is not an object (ES5 code) Object.preventExtensions(1); // 1 (ES20
15 code) Specifications Specification ECMAScript (ECMA-262)The definition of 'Object.preventExtensions' in that specification. ...
Object.seal() - JavaScript
hrows a TypeError } fail(); // Attempted additions through // Object.defineProperty will also throw. Object.defineProperty(obj, 'ohai', { value: 17 }); // throws a TypeError Object.defineProperty(obj, 'foo', { value: 'eit' }); // changes existing property value Non-object coercion In ES5, if the argument to this method is not an object (a primitive), then it will cause a TypeError. In ES20
15, a non-object argument will be treated as if it was a sealed ordinary object by simply returning it. Object.seal(1); // TypeError: 1 is not an object (ES5 code) Object.seal(1); // 1 (ES20
15 code) Specifications Specification ECMAScript (ECMA-262)The definition of 'Object.seal' in that specification. ...
Object.setPrototypeOf() - JavaScript
specified object. Description Throws a TypeError exception if the object whose [[Prototype]] is to be modified is non-extensible according to Object.isExtensible(). Does nothing if the prototype parameter isn't an object or null (i.e., number, string, boolean, or undefined). Otherwise, this method changes the [[Prototype]] of obj to the new value. Object.setPrototypeOf() is in the ECMAScript 20
15 specification. It is generally considered the proper way to set the prototype of an object, vs. the more controversial Object.prototype.__proto__ property. Appending Prototype Chains A combination of Object.getPrototypeOf() and Object.prototype.__proto__ permits appending a whole prototype chain to a new prototype object: /** *** Object.appendChain(@object, @prototype) * * Appends the first no...
Reflect.getPrototypeOf() - JavaScript
ypeOf(Object.prototype) // null Reflect.getPrototypeOf(Object.create(null)) // null Compared to Object.getPrototypeOf() // Same result for Objects Object.getPrototypeOf({}) // Object.prototype Reflect.getPrototypeOf({}) // Object.prototype // Both throw in ES5 for non-Objects Object.getPrototypeOf('foo') // Throws TypeError Reflect.getPrototypeOf('foo') // Throws TypeError // In ES20
15 only Reflect throws, Object coerces non-Objects Object.getPrototypeOf('foo') // String.prototype Reflect.getPrototypeOf('foo') // Throws TypeError // To mimic the Object ES20
15 behavior you need to coerce Reflect.getPrototypeOf(Object('foo')) // String.prototype Specifications Specification ECMAScript (ECMA-262)The definition of 'Reflect.getPrototypeOf' in that specifica...
RegExp() constructor - JavaScript
or literal (for the two RegExp constructor notations only). Patterns may include special characters to match a wider range of values than would a literal string. flags If specified, flags is a string that contains the flags to add. Alternatively, if an object is supplied for the pattern, the flags string will replace any of that object's flags (and lastIndex will be reset to 0) (as of ES20
15). If flags is not specified and a regular expressions object is supplied, that object's flags (and lastIndex value) will be copied over. flags may contain any combination of the following characters: g (global match) Find all matches rather than stopping after the first match. i (ignore case) If u flag is also enabled, use Unicode case folding. m (multiline) Treat beginning and...
RegExp.prototype.sticky - JavaScript
tIndex; // 0 (reset after match failure) Anchored sticky flag For several versions, Firefox's SpiderMonkey engine had a bug with regard to the ^ assertion and the sticky flag which allowed expressions starting with the ^ assertion and using the sticky flag to match when they shouldn't. The bug was introduced some time after Firefox 3.6 (which had the sticky flag but not the bug) and fixed in 20
15. Perhaps because of the bug, the ES20
15 specification specifically calls out the fact that: When the y flag is used with a pattern, ^ always matches only at the beginning of the input, or (if multiline is true) at the beginning of a line. Examples of correct behavior: var regex = /^foo/y; regex.lastIndex = 2; regex.test('..foo'); // false - index 2 is not the beginning of the string var r...
RegExp - JavaScript
ple demonstrates how one can separate out Unicode characters from a word. let text = '??????? text ?? ??????? ?????' let regex = /[\u0400-\u04FF]+/g let match = regex.exec(text) console.log(match[0]) // logs '???????' console.log(regex.lastIndex) // logs '7' let match2 = regex.exec(text) console.log(match2[0]) // logs '??' [did not log 'text'] console.log(regex.lastIndex) // logs '
15' // and so on The Unicode property escapes feature introduces a solution, by allowing for a statement as simple as \p{scx=Cyrl}. Extracting sub-domain name from URL let url = 'http://xxx.domain.com' console.log(/[^.]+/.exec(url)[0].substr(7)) // logs 'xxx' Instead of using regular expressions for parsing URLs, it is usually better to use the browsers built-in URL parser by using the URL A...
Set - JavaScript
is unique in the Set's collection. Value equality Because each value in the Set has to be unique, the value equality will be checked. In an earlier version of ECMAScript specification, this was not based on the same algorithm as the one used in the === operator. Specifically, for Sets, +0 (which is strictly equal to -0) and -0 were different values. However, this was changed in the ECMAScript 20
15 specification. See "Key equality for -0 and 0" in the browser compatibility table for details. NaN and undefined can also be stored in a Set. All NaN values are equated (i.e. NaN is considered the same as NaN, even though NaN !== NaN). Constructor Set() Creates a new Set object. Static properties get Set[@@species] The constructor function that is used to create derived objects. Ins...
String.prototype.codePointAt() - JavaScript
number representing the code point value of the character at the given pos. If there is no element at pos, returns undefined. Description If there is no element at the specified position, undefined is returned. If no UTF-16 surrogate pair begins at pos, the code unit at pos is returned. Polyfill The following extends Strings to include the codePointAt() function as specified in ECMAScript 20
15 for browsers without native support. /*! https://mths.be/codepointat v0.2.0 by @mathias */ if (!String.prototype.codePointAt) { (function() { 'use strict'; // needed to support `apply`/`call` with `undefined`/`null` var defineProperty = (function() { // IE 8 only supports `Object.defineProperty` on DOM elements try { var object = {}; var $defineProperty = Ob...
String.fromCharCode() - JavaScript
. While there is a mathematical relationship between the supplementary code point value (e.g. 0x1F303) and both surrogate values that represent it (e.g., 0xD83C and 0xDF03), it does require an extra step to either calculate or look up the surrogate pair values every time a supplementary code point is to be used. For this reason, it's more convenient to use String.fromCodePoint() (part of the ES20
15 standard), which allows for returning supplementary characters based on their actual code point value. For example, String.fromCodePoint(0x1F303) returns code point U+1F303 "Night with Stars". Examples Using fromCharCode() BMP characters, in UTF-16, use a single code unit: String.fromCharCode(65, 66, 67); // returns "ABC" String.fromCharCode(0x2014); // returns "--" String.fromCharCo...
String.fromCodePoint() - JavaScript
wn if an invalid Unicode code point is given (e.g. "RangeError: NaN is not a valid code point"). Description This method returns a string (and not a String object). Because fromCodePoint() is a static method of String, you must call it as String.fromCodePoint(), rather than as a method of a String object you created. Polyfill The String.fromCodePoint() method has been added to ECMAScript 20
15 and may not be supported in all web browsers or environments yet. Use the code below for a polyfill: if (!String.fromCodePoint) (function(stringFromCharCode) { var fromCodePoint = function(_) { var codeUnits = [], codeLen = 0, result = ""; for (var index=0, len = arguments.length; index !== len; ++index) { var codePoint = +arguments[index]; // correctly handles a...
String.prototype.includes() - JavaScript
he search string is found anywhere within the given string; otherwise, false if not. Description This method lets you determine whether or not a string includes another string. Case-sensitivity The includes() method is case sensitive. For example, the following expression returns false: 'Blue Whale'.includes('blue') // returns false Polyfill This method has been added to the ECMAScript 20
15 specification and may not be available in all JavaScript implementations yet. However, you can easily polyfill this method: if (!String.prototype.includes) { String.prototype.includes = function(search, start) { 'use strict'; if (search instanceof RegExp) { throw TypeError('first argument must not be a RegExp'); } if (start === undefined) { start = 0; } return this.
String.prototype.repeat() - JavaScript
count An integer between 0 and +Infinity, indicating the number of times to repeat the string. Return value A new string containing the specified number of copies of the given string. Exceptions RangeError: repeat count must be non-negative. RangeError: repeat count must be less than infinity and not overflow maximum string size. Polyfill This method has been added to the ECMAScript 20
15 specification and may not be available in all JavaScript implementations yet. However, you can polyfill String.prototype.repeat() with the following snippet: if (!String.prototype.repeat) { String.prototype.repeat = function(count) { 'use strict'; if (this == null) throw new TypeError('can\'t convert ' + this + ' to object'); var str = '' + this; // To convert string to ...
Symbol.unscopables - JavaScript
les. Setting a property to false will make it scopable and thus it will appear in lexical scope variables. Property attributes of Symbol.unscopables Writable no Enumerable no Configurable no Examples Scoping in with statements The following code works fine in ES5 and below. However, in ECMAScript 20
15 and later, the Array.prototype.keys() method was introduced. That means that inside with environment "keys" would now be the method and not the variable. That's when the unscopables symbol was introduced. A built-in unscopables setting is implemented as Array.prototype[@@unscopables] to prevent that some of the Array methods are being scoped into the with statement. var keys = []; with (Array.p...
Uint16Array() constructor - JavaScript
on The Uint16Array() typed array constructor creates an array of 16-bit unsigned integers in the platform byte order. If control over byte order is needed, use DataView instead. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation). Starting with ECMAScript 20
15, Uint16Array constructors require to be constructed with a new operator. Calling a Uint16Array constructor as a function without new, will throw a TypeError from now on. var dv = Uint16Array([1, 2, 3]); // TypeError: calling a builtin Uint16Array constructor // without new is forbidden var dv = new Uint16Array([1, 2, 3]); Examples Different ways to create a Uint16Array // From a length var u...
Bitwise OR (|) - JavaScript
The truth table for the OR operation is: a b a OR b 0 0 0 0 1 1 1 0 1 1 1 1 . 9 (base 10) = 00000000000000000000000000001001 (base 2) 14 (base 10) = 00000000000000000000000000001110 (base 2) -------------------------------- 14 | 9 (base 10) = 00000000000000000000000000001111 (base 2) =
15 (base 10) Bitwise ORing any number x with 0 yields x. Examples Using bitwise OR // 9 (00000000000000000000000000001001) // 14 (00000000000000000000000000001110) 14 | 9; //
15 (00000000000000000000000000001111) Specifications Specification ECMAScript (ECMA-262)The definition of 'Bitwise OR expression' in that specification. ...
Exponentiation (**) - JavaScript
4 in Bash, -4 in other languages. // This is invalid in JavaScript, as the operation is ambiguous. -(2 ** 2); // -4 in JavaScript and the author's intention is unambiguous. Note that some programming languages use the caret symbol ^ for exponentiation, but JavaScript uses that symbol for the bitwise logical XOR operator. ...
Operator precedence - JavaScript
17 Logical NOT right-to-left ! ... Bitwise NOT ~ ... Unary Plus + ... Unary Negation - ... Prefix Increment ++ ... Prefix Decrement -- ... typeof typeof ... void void ... delete delete ... await await ... 16 Exponentiation right-to-left ... ** ...
15 Multiplication left-to-right ... * ... Division ... / ... Remainder ... % ... 14 Addition left-to-right ... + ... Subtraction ... - ... 13 Bitwise Left Shift left-to-right ... << ... Bitwise Right Shift ... >> ... Bitwise Unsigned Right Shift ... >>> ... 12 Less Than left-to-rig...
async function expression - JavaScript
Parameters name The function name. Can be omitted, in which case the function is anonymous. The name is only local to the function body. paramN The name of an argument to be passed to the function. ...
class expression - JavaScript
Similar to function expressions, class expressions can be named or unnamed. If named, the name of the class is local to the class body only. JavaScript classes use prototype-based inheritance. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax const MyClass = class [className] [extends otherClassName] { // class body }; Description A class expression has a similar syntax to a class declaration (statement). ...
Function expression - JavaScript
a function declaration. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax The expression is not allowed at the start of a statement. function [name]([param1[, param2[, ..., paramN]]]) { statements } As of ES20
15, you can also use arrow functions. Parameters name Optional The function name. Can be omitted, in which case the function is anonymous. The name is only local to the function body. paramN Optional The name of an argument to be passed to the function. statements Optional The statements which comprise the body of the function. Description A function expression is very similar to and has...
in operator - JavaScript
For example, you can specify a string created with the String constructor, but you cannot specify a string literal. let color1...
new operator - JavaScript
es below. When the code new Foo(...) is executed, the following things happen: A new object is created, inheriting from Foo.prototype. The constructor function Foo is called with the specified arguments, and with this bound to the newly created object. new Foo is equivalent to new Foo(), i.e. if no argument list is specified, Foo is called without arguments. The object (not null, false, 3.14
15 or other primitive types) returned by the constructor function becomes the result of the whole new expression. If the constructor function doesn't explicitly return an object, the object created in step 1 is used instead. (Normally constructors don't return a value, but they can choose to do so if they want to override the normal object creation process.) You can always add a property to a prev...
this - JavaScript
o other languages. It also has some differences between strict mode and non-strict mode. In most cases, the value of this is determined by how a function is called (runtime binding). It can't be set by assignment during execution, and it may be different each time the function is called. ES5 introduced the bind() method to set the value of a function's this regardless of how it's called, and ES20
15 introduced arrow functions which don't provide their own this binding (it retains the this value of the enclosing lexical context). The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax this Value A property of an e...
block - JavaScript
// logs 1 The x = 2 is limited in scope to the block in which it was defined. The same is true of const: const c = 1; { const c = 2; } console.log(c); // logs 1 and does not throw SyntaxError... Note that the block-scoped const c = 2 does not throw a SyntaxError: Identifier 'c' has already been declared because it can be declared uniquely within the block. In strict mode, starting with ES20
15, functions inside blocks are scoped to that block. Prior to ES20
15, block-level functions were forbidden in strict mode. Specifications Specification ECMAScript (ECMA-262)The definition of 'Block statement' in that specification. ...
export - JavaScript
You can't run JS modules via a file:// URL -- you'll get CORS errors. You need to run it via an HTTP server. Using the default export If we want to export a single value or to have a fallbac...
for - JavaScript
Indeed, without the semicolon the line that follows the cycle declaration will be considered a statement. Specifications Specification ECMAScript (ECMA-262)The definition of 'for statement' in that specification. ...
label - JavaScript
[i])) { allPass = false; break top; } Using a labeled block with break You can use labels within simple blocks, but only break statements can make use of non-loop labels. foo: { console.log('face'); break foo; console.log('this will not be executed'); } console.log('swap'); // this will log: // "face" // "swap" Labeled function declarations Starting with ECMAScript 20
15, labeled function declarations are now standardized for non-strict code in the web compatibility annex of the specification. L: function F() {} In strict mode code, however, this will throw a SyntaxError: 'use strict'; L: function F() {} // SyntaxError: functions cannot be labelled Generator functions can neither be labeled in strict code, nor in non-strict code: L: function* F() {} // Synta...
switch - JavaScript
Take a look at this example: const action = 'say_hello'; switch (action) { case 'say_hello': let message = 'hello'; console.log(message); break; case 'say_hi': let message = 'hi'; console.log(message); break...
with - JavaScript
- just unexpected results. Contra: Code using with may not be forward compatible, especially when used with something other than a plain object. Consider this example: function f(foo, values) { with (foo) { console.log(values); } } If you call f([1,2,3], obj) in an ECMAScript 5 environment, then the values reference inside the with statement will resolve to obj. However, ECMAScript 20
15 introduces a values property on Array.prototype (so that it will be available on every array). So, in a JavaScript environment that supports ECMAScript 20
15, the values reference inside the with statement could resolve to [1,2,3].values. However, in this particular example, Array.prototype has been defined with values in its Symbol.unscopables object. If it were not, one can see how this would be...
Transitioning to strict mode - JavaScript
larity. Differences from non-strict to strict Syntax errors When adding 'use strict';, the following cases will throw a SyntaxError before the script is executing: Octal syntax var n = 023; with statement Using delete on a variable name delete myVariable; Using eval or arguments as variable or function argument name Using one of the newly reserved keywords (in prevision for ECMAScript 20
15): implements, interface, let, package, private, protected, public, static, and yield Declaring function in blocks if (a < b) { function f() {} } Obvious errors Declaring twice the same name for a property name in an object literal {a: 1, b: 3, a: 7} This is no longer the case in ECMAScript 20
15 (bug 1041128). Declaring two function parameters with the same name function f(a, b, b) {} ...
JavaScript shells - JavaScript
ork with Mozilla. 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. Babel REPL - A browser-based REPL for experimenting with future JavaScript. ES6Console.com - An open-source JavaScript console to test ECMAScript 20
15 code inside the browser. 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. MozRepl - Connect to Firefox and other Mozilla apps, explore and modify th...
JavaScript typed arrays - JavaScript
g int32_t Uint32Array 0 to 4294967295 4 32-bit unsigned integer unsigned long uint32_t Float32Array 1.2x10-38 to 3.4x1038 4 32-bit IEEE floating point number (7 significant digits e.g., 1.123456) unrestricted float float Float64Array 5.0x10-324 to 1.8x10308 8 64-bit IEEE floating point number (16 significant digits e.g., 1.123...
15) unrestricted double double BigInt64Array -263 to 263-1 8 64-bit two's complement signed integer bigint int64_t (signed long long) BigUint64Array 0 to 264-1 8 64-bit unsigned integer bigint uint64_t (unsigned long long) DataView The DataView is a low-level interface that provides a getter/setter API to read and write arbitrary data to ...
JavaScript
out JavaScript. This section is dedicated to the JavaScript language itself, and not the parts that are specific to Web pages or other host environments. For information about API specifics to Web pages, please see Web APIs and DOM. The standard for JavaScript is ECMAScript. As of 2012, all modern browsers fully support ECMAScript 5.1. Older browsers support at least ECMAScript 3. On June 17, 20
15, ECMA International published the sixth major version of ECMAScript, which is officially called ECMAScript 20
15, and was initially referred to as ECMAScript 6 or ES6. Since then, ECMAScript standards are on yearly release cycles. This documentation refers to the latest draft version, which is currently ECMAScript 2020. Do not confuse JavaScript with the Java programming language. Both "Java" and...
<mpadded> - MathML
"depth", "height", and "width" as a pseudo-unit for the attributes depth, height, lspace, voffset, and width. They represent each length of the same-named dimension. Prior to Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4) the MathML2 pseudo-unit lspace was allowed, which is no longer present in the MathML3 Recommendation and has been removed now. Examples <math> <mpadded height="+
150px" width="100px" lspace="2height"> <mi> x </mi> <mo> + </mo> <mi> y </mi> </mpadded> </math> Specifications Specification Status Comment MathML 3.0The definition of 'mpadded' in that specification. Recommendation Current specification MathML 2.0The definition of 'mpadded' in that specification. Recommendation Initial specificatio...
MathML documentation index - MathML
d> Deprecated, MathML, MathML Reference, MathML:Element, MathML:General Layout Schemata The deprecated MathML <mfenced> element used to provide the possibility to add custom opening and closing parentheses (such as brackets) and separators (such as commas or semicolons) to an expression. It has been removed from the latest MathML standard and modern browsers no longer support it.
15 <mfrac> MathML, MathML Reference, MathML:Element, MathML:General Layout Schemata The MathML <mfrac> element is used to display fractions. 16 <mglyph> MathML, MathML Reference, MathML:Element The MathML <mglyph> element is used to display non-standard symbols where existing Unicode characters are not available. It may be used within token elements. 17 ...
Media container formats (file types) - Web media technologies
ilable for QuickTime, some of which add support for additional codecs. Because QuickTime support is, for all intents and purposes, primarily available on Apple devices, it is no longer widely used on the internet. Apple itself generally now uses MP4 for video. In addition, the QuickTime framework has been deprecated on the Mac for some time, and is no longer available at all starting in macOS 10.
15 Catalina. Base QuickTime media MIME type Video video/quicktime The video/quicktime MIME type is the fundamental type for the QuickTime media container. It's worth noting that QuickTime (the media framework on Mac operating systems) supports a wide variety of containers and codecs, so it actually supports many other MIME types. You can add the codecs parameter to th...
Digital video concepts - Web media technologies
works by defining a color space with three components: Luma (Y') The brightness of the pixel. Without the other two components, the luma of each pixel in the frame produces a greyscale representation of the image. In BT.709 (used for HDTV), for example, the luma value is the weighted sum of the gamma-corrected red, green, and blue components of the pixel, using the formula Y' = 0.2126R' + 0.7
152G' + 0.0722B'. This weighting is performed because of the previously-mentioned ratio of green, red, and blue cones in the eye. Blue-difference (U or Cb) The blue-difference component of the chroma, or color, of the color sample. This value is computed by subtracting the luma from the gamma corrected blue value; that is, U = B' - Y'. Red-difference (V or Cr) The red-difference component of the...
Mapping the width and height attributes of media container elements to their aspect-ratio - Web media technologies
uee>, <object>, <table>, and <video>, in addition to actual images (<img> and <input type="image">). When such an element has width and height attributes set on it, its aspect ratio will be calculated before load time, and be available to the browser. Note: Currently this effect is being limited to actual <img> elements, as applying to other such elements may have undesirable results. See (bug
1583980). When the width/height of an <img> element -- as set using HTML attributes -- is overidden using CSS using something like this: img { max-width: 100%; height: auto } The aspect ratio is then used to calculate the height and therefore the correct size is applied to the <img> element, meaning that the aforementioned jank will not occur when the image loads. It only works before the ima...
Populating the page: how browsers work - Web Performance
volves drawing every visual part of an element to the screen, including text, colors, borders, shadows, and replaced elements like buttons and images. The browser needs to do this super quickly. To ensure smooth scrolling and animation, everything occupying the main thread, including calculating styles, along with reflow and paint, must take the browser less than 16.67ms to accomplish. At 2048 X
1536, the iPad has over 3,145,000 pixels to be painted to the screen. That is a lot of pixels that have to be painted very quickly. To ensure repainting can be done even faster than the initial paint, the drawing to the screen is generally broken down into several layers. If this occurs, then compositing is necessary. Painting can break the elements in the layout tree into layers. Promoting content...
Understanding latency - Web Performance
acteristics emulated include download speed, upload speed, and minimum latency, or the minimum amount of type it takes to send a packet of data. The approximate values of some presets include: Selection Download speed Upload speed Minimum latency (ms) GPRS 50 Kbps 20 Kbps 500 Regular 2G 250 Kbps 50 Kbps 300 Good 2G 450 Kbps
150 Kbps
150 Regular 3G 750 Kbps 250 Kbps 100 Good 3G 1.5 Mbps 750 Kbps 40 Regular 4G/LTE 4 Mbps 3 Mbps 20 DSL 2 Mbps 1 Mbps 5 Wi-Fi 30 Mbps
15 Mbps 2 Network Timings Also, on the network tab, you can see how long each request took to complete. We can look at how long a 267.5Kb SVG image asset took t...
Introduction to progressive web apps - Progressive web apps (PWAs)
e many success stories of companies trying the PWA route, opting for an enhanced website experience rather than a native app, and seeing significant measurable benefits as a result. The website PWA Stats shares many case studies that indicate these benefits. The best-known success story is probably that of Flipkart Lite. India's largest e-commerce site was rebuilt as a progressive web app in 20
15, which resulted in 70% increase in conversions. The AliExpress PWA has also seen much better results than either the web or the native app, with a 104% increase in conversion rates for new users. Given their profit increase, and the relatively low amount of work required for the conversion of these apps to PWAs, the advantage is clear. Early stage emerging startups like couponmoto have also sta...
Mobile first - Progressive web apps (PWAs)
rowsers that don't support either or both of these features. Modernizr also puts its feature detect results in a JavaScript Modenizr object too, so that you can run JavaScript code selectively depending on feature support. For example, you could do this: if(Modernizr.rgba) { // run code that depends on RGBA colours being supported. } Google searches and mobile preference Since April 21, 20
15, Google's algorithm gives pages that display well on mobile devices priority over those that do not on searches made from mobile devices. ...
Applying SVG effects to HTML content - SVG: Scalable Vector Graphics
se it sparingly, especially in elements that get scrolled or animated. Example: Text Effects SVG effects can also be used to add a more dynamic and flexible approach to adding text compared to plain HTML text. By creating the text using SVG elements combined with HTML you can make a variety of different text effects. You can rotate the text: <svg height="60" width="200"> <text x="0" y="
15" fill="blue" transform="rotate(30 20,50)">Example text</text> </svg> Using external references SVG used for clipping, masking, and filtering can be loaded from an external source, as long as that source comes from the same origin as the HTML document to which it's applied. For example, if your CSS is in a file named default.css, it can look like this: .target { clip-path: url(resources.svg#c...
cx - SVG: Scalable Vector Graphics
ter point. Three elements are using this attribute: <circle>, <ellipse>, and <radialGradient> html,body,svg { height:100% } <svg viewBox="0 0 300 100" xmlns="http://www.w3.org/2000/svg"> <radialGradient cx="25%" id="myGradient"> <stop offset="0" stop-color="white" /> <stop offset="100%" stop-color="black" /> </radialGradient> <circle cx="50" cy="50" r="45"/> <ellipse cx="
150" cy="50" rx="45" ry="25" /> <rect x="205" y="5" width="90" height="90" fill="url(#myGradient)" /> </svg> circle For <circle>, cx defines the x-axis coordinate of the center of the shape. Value <length-percentage> Default value 0 Animatable Yes Note: Starting with SVG2 cx, is a Geometry Property, meaning this attribute can also be used as CSS pro...
cy - SVG: Scalable Vector Graphics
r point. Three elements are using this attribute: <circle>, <ellipse>, and <radialGradient> html,body,svg { height:100% } <svg viewBox="0 0 100 300" xmlns="http://www.w3.org/2000/svg"> <radialGradient cy="25%" id="myGradient"> <stop offset="0" stop-color="white" /> <stop offset="100%" stop-color="black" /> </radialGradient> <circle cy="50" cx="50" r="45"/> <ellipse cy="
150" cx="50" rx="45" ry="25" /> <rect x="5" y="205" width="90" height="90" fill="url(#myGradient)" /> </svg> circle For <circle>, cy defines the y-axis coordinate of the center of the shape. Value <length> | <percentage> Default value 0 Animatable Yes Note: Starting with SVG2, cy is a Geometry Property meaning this attribute can also be used as a CS...
dy - SVG: Scalable Vector Graphics
dy defines a shift along the y-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra values are ignored. ...
fill-opacity - SVG: Scalable Vector Graphics
ny element but it has effect only on the following eleven elements: <altGlyph>, <circle>, <ellipse>, <path>, <polygon>, <polyline>, <rect>, <text>, <textPath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewBox="0 0 400 100" xmlns="http://www.w3.org/2000/svg"> <!-- Default fill opacity: 1 --> <circle cx="50" cy="50" r="40" /> <!-- Fill opacity as a number --> <circle cx="
150" cy="50" r="40" fill-opacity="0.7" /> <!-- Fill opacity as a percentage --> <circle cx="250" cy="50" r="40" fill-opacity="50%" /> <!-- Fill opacity as a CSS property --> <circle cx="350" cy="50" r="40" style="fill-opacity: .25;" /> </svg> Usage notes Value [0-1] | <percentage> Default value 1 Animatable Yes N...
fill-rule - SVG: Scalable Vector Graphics
0" xmlns="http://www.w3.org/2000/svg"> <!-- Default value for fill-rule --> <polygon fill-rule="nonzero" stroke="red" points="50,0 21,90 98,35 2,35 79,90"/> <!-- The center of the shape has two path segments (shown by the red stroke) between it and infinity. It is therefore considered outside the shape, and not filled. ...
fill - SVG: Scalable Vector Graphics
--> <circle cx="250" cy="50" r="20"> <animate attributeType="XML" attributeName="r" from="0" to="40" dur="5s" fill="freeze" /> </circle> </svg> altGlyph Warning: As of SVG2 <altGlyph> is deprecated and ...
font-style - SVG: Scalable Vector Graphics
. See the css font-style property for more information. As a presentation attribute, it can be applied to any element but only has an effect on the following five elements: <altGlyph>, <text>, <textPath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewBox="0 0 250 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-style="normal">Normal font style</text> <text x="
150" y="20" font-style="italic">Italic font style</text> </svg> Usage notes Value normal | italic | oblique Default value normal Animatable Yes For a description of the values, please refer to the CSS font-style property. Specifications Specification Status Comment CSS Fonts Module Level 4The definition of 'font-style' in ...
rx - SVG: Scalable Vector Graphics
The rx attribute defines a radius on the x-axis. Two elements are using this attribute: <ellipse>, and <rect> html,body,svg { height:100% } <svg viewBox="0 0 300 200" xmlns="http://www.w3.org/2000/svg"> <ellipse cx="50" cy="50" rx="0" ry="25" /> <ellipse cx="
150" cy="50" rx="25" ry="25" /> <ellipse cx="250" cy="50" rx="50" ry="25" /> <rect x="20" y="120" width="60" height="60" rx="0" ry="
15"/> <rect x="120" y="120" width="60" height="60" rx="
15" ry="
15"/> <rect x="220" y="120" width="60" height="60" rx="
150" ry="
15"/> </svg> ellipse For <ellipse>, rx defines the x-radius of the shape. With a value lower or equal to zero the ellipse won't be drawn at all. Value <length> | <percentage> | auto Default value auto Animatable Yes ...
ry - SVG: Scalable Vector Graphics
The ry attribute defines a radius on the y-axis. Two elements are using this attribute: <ellipse>, and <rect> html,body,svg { height:100% } <svg viewBox="0 0 300 200" xmlns="http://www.w3.org/2000/svg"> <ellipse cx="50" cy="50" ry="0" rx="25" /> <ellipse cx="
150" cy="50" ry="25" rx="25" /> <ellipse cx="250" cy="50" ry="50" rx="25" /> <rect x="20" y="120" width="60" height="60" ry="0" rx="
15"/> <rect x="120" y="120" width="60" height="60" ry="
15" rx="
15"/> <rect x="220" y="120" width="60" height="60" ry="
150" rx="
15"/> </svg> ellipse For <ellipse>, ry defines the y-radius of the shape. With a value lower or equal to zero the ellipse won't be drawn at all. Value <length> | <percentage> | auto Default value auto Animatable Yes ...
spreadMethod - SVG: Scalable Vector Graphics
to set the size of the gradient smaller than the shape. In the case of a linear gradient, the edges may be defined as a rectangle by the x1, x2, y1 and y2 attributes. In the case of a radial gradient, the edges may be defined as outer and inner circles by the cx, cy and r (outer) and fx, fy and fr (inner) attributes. ...
startOffset - SVG: Scalable Vector Graphics
a percentage is given, then the start offset represents a percentage distance along the entire path. Thus, 0% indicates the start point of the path and 100% indicates the end point of the path. <number> This value indicates a distance along the path measured in the current user coordinate system for the <textPath> element. Note: Negative values and values larger than the path length (e.g.
150%) are allowed. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'startOffset' in that specification. Candidate Recommendation No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'startOffset' in that specification. Recommendation Initial definition ...
stroke-opacity - SVG: Scalable Vector Graphics
effect only on the following twelve elements: <altGlyph>, <circle>, <ellipse>, <path>, <line>, <polygon>, <polyline>, <rect>, <text>, <textPath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewBox="0 0 40 10" xmlns="http://www.w3.org/2000/svg"> <!-- Default stroke opacity: 1 --> <circle cx="5" cy="5" r="4" stroke="green" /> <!-- Stroke opacity as a number --> <circle cx="
15" cy="5" r="4" stroke="green" stroke-opacity="0.7" /> <!-- Stroke opacity as a percentage --> <circle cx="25" cy="5" r="4" stroke="green" stroke-opacity="50%" /> <!-- Stroke opacity as a CSS property --> <circle cx="35" cy="5" r="4" stroke="green" style="stroke-opacity: .3;" /> </svg> Usage notes Value [0-1] | <percentage> Default v...
stroke-width - SVG: Scalable Vector Graphics
t on shapes and text context elements, including: <altGlyph>, <circle>, <ellipse>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <textPath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewBox="0 0 30 10" xmlns="http://www.w3.org/2000/svg"> <!-- Default stroke width: 1 --> <circle cx="5" cy="5" r="3" stroke="green" /> <!-- Stroke width as a number --> <circle cx="
15" cy="5" r="3" stroke="green" stroke-width="3" /> <!-- Stroke width as a percentage --> <circle cx="25" cy="5" r="3" stroke="green" stroke-width="2%" /> </svg> Usage notes Value <length> | <percentage> Default value 1px Animatable Yes Note: A percentage value is always computed as a percentage of the normalized viewBox diagon...
tabindex - SVG: Scalable Vector Graphics
The tabindex attribute allows you to control whether an element is focusable and to define the relative order of the element for the purposes of sequential focus navigation. All elements are using this attribute. html, body, svg { height: 100%; } <?xml version="1.0"?> <svg viewBox="0 0 260 260" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="60" r="
15" tabindex="1" /> <circle cx="60" cy="160" r="30" tabindex="3" /> <circle cx="160" cy="60" r="30" tabindex="2" /> <circle cx="160" cy="160" r="60" tabindex="4" /> </svg> Usage notes Value valid integer Default value None Animatable No valid integer Relative order of the element for the purposes of sequential focus navigation. Specifications Specifica...
textLength - SVG: Scalable Vector Graphics
nt: 16px "Open Sans", "Arial", sans-serif; } SVG Let's start with the SVG. It's pretty basic, with a 1000-by-300 pixel space mapped into a 10 centimeter by 3 centimeter box. <svg width="10cm" height="3cm" viewBox="0 0 1000 300" xmlns="http://www.w3.org/2000/svg"> <rect x="1" y="1" width="998" height="298" fill="none" stroke="green" stroke-width="2"/> <text id="hello" x="10" y="
150" font-family="sans-serif" font-size="60" fill="green"> Hello world! </text> </svg> First, a <rect> element is used to create and stroke a rectangle to contain the text. Then <text> is used to create the text element itself, with an id of "hello". HTML The HTML is also simple, with only two displayed elements contained inside a grouping <div>: <div class="controls"> <input type=...
to - SVG: Scalable Vector Graphics
the from attribute value and this value. Five elements are using this attribute: <animate>, <animateColor>, <animateMotion>, <animateTransform>, and <set> html, body, svg { height: 100%; } <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> <rect x="10" y="10" width="100" height="100"> <animate attributeType="XML" attributeName="width" fill="freeze" from="100" to="
150" dur="3s"/> </rect> </svg> animate, animateColor, animateMotion, animateTransform For <animate>, <animateColor>, <animateMotion>, and <animateTransform>, to specifies the ending value of the animation. Value <value> Default value None Animatable No The exact value type for this attribute depend on the value of the attribute that will be animated...
transform - SVG: Scalable Vector Graphics
The transform attribute defines a list of transform definitions that are applied to an element and the element's children. html,body,svg { height:100% } <svg viewBox="-40 0
150 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g fill="grey" transform="rotate(-10 50 100) translate(-36 45.5) skewX(40) scale(1 0.5)"> <path id="heart" d="M 10,30 A 20,20 0,0,1 50,30 A 20,20 0,0,1 90,30 Q 90,60 50,90 Q 10,60 10,30 z" /> </g> <use xlink:href="#heart" fill="none" stroke="red"/> </svg> Note: As of SVG2, transform is a presentation attribute, meaning it can be used as a CSS property. However, be aware that there are some difference in syntax between the CSS property and the attribute. See the ...
<clipPath> - SVG: Scalable Vector Graphics
A20,20,0,0,1,90,30 Q90,60,50,90 Q10,60,10,30 Z" /> <!-- Only the portion of the red heart inside the clip circle is visible. --> <use clip-path="url(#myClip)" xlink:href="#heart" fill="red" /> </svg> /* With a touch of CSS for browsers who * * implemented the r Geometry Property. */ @keyframes openYourHeart {from {r: 0} to {r: 60px}} #myClip circle { animation: openYourHeart
15s infinite; } A clipping path is conceptually equivalent to a custom viewport for the referencing element. Thus, it affects the rendering of an element, but not the element's inherent geometry. The bounding box of a clipped element (meaning, an element which references a <clipPath> element via a clip-path property, or a child of the referencing element) must remain the same as if it were not c...
<feColorMatrix> - SVG: Scalable Vector Graphics
imitive elementPermitted contentAny number of the following elements, in any order:<animate>, <set> Attributes Global attributes Core attributes Presentation attributes Filter primitive attributes class style Specific attributes in type values DOM Interface This element implements the SVGFEColorMatrixElement interface. ...
<feDiffuseLighting> - SVG: Scalable Vector Graphics
g"> <!-- No light is applied --> <text text-anchor="middle" x="60" y="22">No Light</text> <circle cx="60" cy="80" r="50" fill="green" /> <!-- the light source is a fePointLight element --> <text text-anchor="middle" x="170" y="22">fePointLight</text> <filter id="lightMe1"> <feDiffuseLighting in="SourceGraphic" result="light" lighting-color="white"> <fePointLight x="
150" y="60" z="20" /> </feDiffuseLighting> <feComposite in="SourceGraphic" in2="light" operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/> </filter> <circle cx="170" cy="80" r="50" fill="green" filter="url(#lightMe1)" /> <!-- the light source is a feDistantLight element --> <text text-anchor="middle" x="280" y="22">feDistantLight</text> <filter id="lightMe...
<polygon> - SVG: Scalable Vector Graphics
segments. The last point is connected to the first point. For open shapes, see the <polyline> element. html,body,svg { height:100% } <svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <!-- Example of a polygon with the default fill --> <polygon points="0,100 50,25 50,75 100,0" /> <!-- Example of the same polygon shape with stroke and no fill --> <polygon 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 polygon. Value type: <number>+ ; Default value: ""; Animatable: yes pathLength This attribute lets specify the total length for the path, in user units. Value type: <number> ; Default value: none; Animat...
<polyline> - SVG: Scalable Vector Graphics
point doesn't have to be connected to the first point. For closed shapes see the <polygon> element. html,body,svg { height:100% } <svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <!-- Example of a polyline with the default fill --> <polyline points="0,100 50,25 50,75 100,0" /> <!-- Example of the same polyline shape with stroke and no fill --> <polyline 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 polyline Value type: <number>+ ; Default value: ""; Animatable: yes pathLength This attribute lets specify the total length for the path, in user units. Value type: <number> ; Default value: none; Animat...
<rect> - SVG: Scalable Vector Graphics
The <rect> element is a basic SVG shape that draws rectangles, defined by their position, width, and height. The rectangles may have their corners rounded. html,body,svg { height:100% } <svg viewBox="0 0 220 100" xmlns="http://www.w3.org/2000/svg"> <!-- Simple rectangle --> <rect width="100" height="100" /> <!-- Rounded corner rectangle --> <rect x="120" width="100" height="100" rx="
15" /> </svg> Attributes x The x coordinate of the rect. Value type: <length>|<percentage> ; Default value: 0; Animatable: yes y The y coordinate of the rect. Value type: <length>|<percentage> ; Default value: 0; Animatable: yes width The width of the rect. Value type: auto|<length>|<percentage> ; Default value: auto; Animatable: yes height The height of the rect. Value type: auto|...
<svg> - SVG: Scalable Vector Graphics
o be used to embed an SVG fragment inside an SVG or HTML document. Note: The xmlns attribute is only required on the outermost svg element of SVG documents. It is unnecessary for inner svg elements or inside HTML documents. html,body,svg { height:100% } <svg viewBox="0 0 300 100" xmlns="http://www.w3.org/2000/svg" stroke="red" fill="grey"> <circle cx="50" cy="50" r="40" /> <circle cx="
150" cy="50" r="4" /> <svg viewBox="0 0 10 10" x="200" width="100"> <circle cx="5" cy="5" r="4" /> </svg> </svg> Attributes baseProfile Deprecated since SVG 2 The minimum SVG language profile that the document requires. Value type: <string> ; Default value: none; Animatable: no contentScriptType Deprecated since SVG 2 The default scripting language used by the SVG fragment. Valu...
Namespaces crash course - SVG: Scalable Vector Graphics
lar element (but not its children this time!) belongs to the namespace assigned to the prefix. 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 inline 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. In general though it is better to redeclare the default namespace rather than prefix lots of elements in this way. Scripting in namespaced XML Namespaces affect not only ma...
SVG 1.1 Support in Firefox - SVG: Scalable Vector Graphics
ncB Implemented. feFuncA Implemented. Cursor Module cursor Not implemented (bug 177193). Hyperlinking Module a Only xlink:href, xlink:show, xlink:target and xlink:title attributes implemented. View Module view Implemented in Gecko
15.0 (bug 512525). . Scripting Module script Implemented. Animation Module animate Implemented set Implemented animateMotion Implemented animateTransform Implemented animateColor Not implement...
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
<source> Implementation status unknown <track> Implementation status unknown Painting Change Notes paint-order Implemented (bug 828805) will-change instead of buffered-rendering Implementation status unknown context-fill and context-stroke paint values Implemented (bug 719286 (Firefox 18.0 / Thunderbird 18.0 / SeaMonkey 2.
15) and bug 798843 (Firefox 26.0 / Thunderbird 26.0 / SeaMonkey 2.23)) child keyword for <paint> values and marker properties Implementation status unknown vector-effect property Only none and non-scaling-stroke values are supported (bug 528332 (Firefox
15 / Thunderbird
15 / SeaMonkey 2.12), bug 1318208) arcs value for stroke-linejoin Not implemented (bug 1239142)...
Features restricted to secure contexts - Web security
re contexts are listed in this document. See here for information on secure contexts support. API Chrome/Opera Edge Safari Firefox Async Clipboard API 66 Not supported Not supported 63 Background Sync (see SyncManager, for example) 49 Not supported Not supported Not supported Cache-Control: immutable Not supported
15 11 49 Credential Management API 51 Not supported Not supported Not supported Generic Sensor API 67 Not supported Not supported Not supported Payment Request API (and Basic Card Payment). 61
15 11.1 In development (behind the dom.payments.request.enabled pref). Push API 42 17 Not supported 44 Reporti...
How to turn off form autocompletion - Web security
erefore you want to prevent autofilling of password fields, you can use autocomplete="new-password". This is a hint, which browsers are not required to comply with. However modern browsers have stopped autofilling <input> elements with autocomplete="new-password" for this very reason. For example, Firefox version 67 (see bug 1119063) stopped autofilling in this case; however, Firefox 70 (see bug
1565407) can suggest securely-generated passwords, but does not autofill a saved password. See the autocomplete compat table for more details. ...
Tutorials
ns. Advanced level JavaScript Guide A comprehensive, regularly updated guide to JavaScript for all levels of learning from beginner to advanced. You Don't Know JS A series of books diving deep into the core mechanisms of the JavaScript language. JavaScript Garden Documentation of the most quirky parts of JavaScript. Exploring ES6 Reliable and in-depth information on ECMAScript 20
15. JavaScript Patterns A JavaScript pattern and antipattern collection that covers function patterns, jQuery patterns, jQuery plugin patterns, design patterns, general patterns, literals and constructor patterns, object creation patterns, code reuse patterns, DOM. How browsers work A detailed research article describing different modern browsers, their engines, page rendering etc. JavaScr...
Web Components
emplates: The <template> and <slot> elements enable you to write markup templates that are not displayed in the rendered page. These can then be reused multiple times as the basis of a custom element's structure. The basic approach for implementing a web component generally looks something like this: Create a class in which you specify your web component functionality, using the ECMAScript 20
15 class syntax (see Classes for more information). Register your new custom element using the CustomElementRegistry.define() method, passing it the element name to be defined, the class or function in which its functionality is specified, and optionally, what element it inherits from. If required, attach a shadow DOM to the custom element using Element.attachShadow() method. Add child elements, ...
element-available - XPath
in scope for the expression. Returns Returns true if and only if the expanded-name is the name of an instruction. If the expanded-name has a namespace URI equal to the XSLT namespace URI, then it refers to an element defined by XSLT. Otherwise, it refers to an extension element. If the expanded-name has a null namespace URI, the element-available function will return false. Defined XSLT 1.0
15 Gecko support Supported. ...