Search completed in 1.03 seconds.
CSS Grid Inspector: Examine grid layouts - Firefox Developer Tools
the g
rid inspector allows you to examine css g
rid layouts using the firefox devtools, discovering g
rids present on a page, examining and modifying them, debugging layout issues, and more.
... note: the examples shown in the screenshots appearing in this article are jen simmons' futurismo and variations on a g
rid experiments, and a live named g
rid area example from rachel andrew.
... discovering css g
rids when an html element on your page has display: g
rid applied to it, a number of features are made available in the devtools to provide easy access to g
rid features.
...And 24 more matches
Basic Concepts of grid layout - CSS: Cascading Style Sheets
css g
rid layout introduces a two-dimensional g
rid system to css.
... g
rids can be used to lay out major page areas or small user interface elements.
... this article introduces the css g
rid layout and the new terminology that is part of the css g
rid layout level 1 specification.
...And 89 more matches
Grids - Learn web development
previous overview: css layout next css g
rid layout is a two-dimensional layout system for the web.
... prerequisites: html basics (study introduction to html), and an idea of how css works (study introduction to css and styling boxes.) objective: to understand the fundamental concepts behind g
rid layout systems, and how to implement a g
rid layout using css g
rid.
... what is g
rid layout?
...And 63 more matches
Realizing common layouts using CSS Grid Layout - CSS: Cascading Style Sheets
to round off this set of guides to css g
rid layout, i am going to walk through a few different layouts, which demonstrate some of the different techniques you can use when designing with g
rid layout.
... we will look at an example using g
rid-template-areas, a typical 12-column flexible g
rid system, and also a product listing using auto-placement.
... as you can see from this set of examples, there is often more than one way to achieve the result you want with g
rid layout.
...And 56 more matches
Line-based placement with CSS Grid - CSS: Cascading Style Sheets
in the article covering the basic concepts of g
rid layout, we started to look at how to position items on a g
rid using line numbers.
... starting your exploration of g
rid with numbered lines is the most logical place to begin, as when you use g
rid layout you always have numbered lines.
...note that g
rid is indexed according to the writing mode of the document.
...And 51 more matches
CSS Grid Layout and Progressive Enhancement - CSS: Cascading Style Sheets
in spring of 2017, we saw for the first time a major specification like g
rid being shipped into browsers almost simultaneously, and we now have css g
rid layout support in the public versions of firefox, chrome, opera, safari and edge.
... however, while evergreen browsers mean that many of us are going to see the majority of users having g
rid layout support very quickly, there are also old or non-supporting browsers to contend with.
... the supporting browsers other than in internet explorer, css g
rid layout is unprefixed in safari, chrome, opera, firefox and edge.
...And 50 more matches
Relationship of grid layout to other layout methods - CSS: Cascading Style Sheets
css g
rid layout has been designed to work alongside other parts of css, as part of a complete system for doing the layout.
... in this guide, i will explain how a g
rid fits together with other techniques you may already be using.
... g
rid and flexbox the basic difference between css g
rid layout and css flexbox layout is that flexbox was designed for layout in one dimension - either a row or a column.
...And 50 more matches
Auto-placement in CSS Grid Layout - CSS: Cascading Style Sheets
in addition to the ability to place items accurately onto a created g
rid, the css g
rid layout specification contains rules that control what happens when you create a g
rid and do not place some or all of the child items.
... you can see auto-placement in action in the simplest of ways by creating a g
rid on a set of items.
... if you give the items no placement information they will position themselves on the g
rid, one in each g
rid cell.
...And 49 more matches
Grid template areas - CSS: Cascading Style Sheets
in the previous guide we looked at g
rid lines, and how to position items against those lines.
... when you use css g
rid layout you always have lines, and this can be a straightforward way to place items on your g
rid.
... however, there is an alternate method to use for positioning items on the g
rid which you can use alone or in combination with line-based placement.
...And 47 more matches
Subgrid - CSS: Cascading Style Sheets
level 2 of the css g
rid layout specification includes a subg
rid value for g
rid-template-columns and g
rid-template-rows.
... this guide details what subg
rid does, and gives some use cases and design patterns that are solved by the feature.
... important: this feature is shipped in firefox 71, which is currently the only browser to implement subg
rid.
...And 44 more matches
Box alignment in CSS Grid Layout - CSS: Cascading Style Sheets
css g
rid layout implements the specification box alignment level 3 which is the same standard flexbox uses for aligning items in its flex container.
...while the specification currently specifies alignment details for all layout methods, browsers have not fully implemented all of the specification; however, the css g
rid layout method has been widely adopted.
... this guide presents demonstrations of how box alignment in g
rid layout works.
...And 38 more matches
Layout using named grid lines - CSS: Cascading Style Sheets
in previous guides we’ve looked at placing items by the lines created by defining g
rid tracks and also how to place items using named template areas.
...line naming is incredibly useful, but some of the more baffling looking g
rid syntax comes from this combination of names and track sizes.
... naming lines when defining a g
rid you can assign some or all of the lines in your g
rid a name when you define your g
rid with the g
rid-template-rows and g
rid-template-columns properties.
...And 36 more matches
CSS Grid Layout and Accessibility - CSS: Cascading Style Sheets
those of us who have been doing web development for more years than we care to remember might consider that css g
rid is a little bit like using “tables for layout”.
... css g
rid layout does not have the same issues that tables did, our g
rid structure is defined in css rather than in the mark-up.
...on paper g
rid helps us properly fulfill that promise of content separated from mark-up, however is it possible to go too far with this idea?
...And 33 more matches
ARIA: grid role - Accessibility
the g
rid role is for a widget that contains one or more rows of cells.
... <table role="g
rid" aria-labelledby="id-select-your-seat"> <caption id="id-select-your-seat">select your seat</caption> <tbody role="presentation"> <tr role="presentation"> <td></td> <th>row a</th> <th>row b</th> </tr> <tr> <th scope="row">aisle 1</th> <td tabindex="0"> <button id="1a" tabindex="-1">1a</button> </td> <td tabindex="-1"> <button id="1b" tabindex="-1">1b</button> </td> <!-- more columns --> </tr> <tr> <th scope="row">aisle 2</th> <td tabindex="-1"> <button id="2a" tabindex="-1">2a</button> </td> <td tabindex="-1"> <button id="2b" tabindex="-1">2b</button> </td...
...> <!-- more columns --> </tr> </tbody> </table> description a g
rid widget contains one or more rows with one or more cells of thematically related interactive content.
...And 28 more matches
CSS grids, logical values, and writing modes - CSS: Cascading Style Sheets
in these guides, i have already touched on an important feature of g
rid layout: the support for different writing modes that is built into the specification.
... for this guide, we will look at this feature of g
rid and other modern layout methods, learning a little about writing modes and logical vs.
...which is why in g
rid layout we use the keyword start when aligning something to the start of the container.
...And 26 more matches
Grids - Archive of obsolete content
« previousnext » xul has a set of elements for creating tabular g
rids.
... xul tabular layout xul has a set of elements for doing layout of elements in a g
rid-like manner using the g
rid element.
...the g
rid does not display anything itself; it is used only to position elements in a tabular form with rows and columns.
...And 22 more matches
grid - CSS: Cascading Style Sheets
the g
rid css property is a shorthand property that sets all of the explicit and implicit g
rid properties in a single declaration.
... note: you can only specify the explicit or the implicit g
rid properties in a single g
rid declaration.
... constituent properties this property is a shorthand for the following css properties: g
rid-auto-columns g
rid-auto-flow g
rid-auto-rows g
rid-template-areas g
rid-template-columns g
rid-template-rows syntax /* <'g
rid-template'> values */ g
rid: none; g
rid: "a" 100px "b" 1fr; g
rid: [linename1] "a" 100px [linename2]; g
rid: "a" 200px "b" min-content; g
rid: "a" minmax(100px, max-content) "b" 20%; g
rid: 100px / 200px; g
rid: minmax(400px, min-content) / repeat(auto-fill, 50px); /* <'g
rid-template-rows'> / [ auto-flow && dense?
...And 18 more matches
ARIA: gridcell role - Accessibility
the g
ridcell role is used to make a cell in a g
rid or treeg
rid.
... <div role="g
ridcell">potato</div> <div role="g
ridcell">cabbage</div> <div role="g
ridcell">onion</div> elements that have role="g
ridcell" applied to them must be the child of an element with a role of row.
... <div role="row"> <div role="g
ridcell">jane</div> <div role="g
ridcell">smith</div> <div role="g
ridcell">496-619-5098</div> … </div> the first rule of aria is if a native html element or attribute has the semantics and behavior you require, use it instead of re-purposing an element and adding aria.
...And 15 more matches
grid-template-rows - CSS: Cascading Style Sheets
the g
rid-template-rows css property defines the line names and track sizing functions of the g
rid rows.
... syntax /* keyword value */ g
rid-template-rows: none; /* <track-list> values */ g
rid-template-rows: 100px 1fr; g
rid-template-rows: [linename] 100px; g
rid-template-rows: [linename1] 100px [linename2 linename3]; g
rid-template-rows: minmax(100px, 1fr); g
rid-template-rows: fit-content(40%); g
rid-template-rows: repeat(3, 200px); g
rid-template-rows: subg
rid; /* <auto-track-list> values */ g
rid-template-rows: 200px repeat(auto-fill, 100px) 300px; g
rid-template-rows: minmax(100px, max-content) repeat(auto-fill, 200px) 20%; g
rid-template-rows: [linenam...
...e1] 100px [linename2] repeat(auto-fit, [linename3 linename4] 300px) 100px; g
rid-template-rows: [linename1 linename2] 100px repeat(auto-fit, [linename1] 300px) [linename3]; /* global values */ g
rid-template-rows: inherit; g
rid-template-rows: initial; g
rid-template-rows: unset; this property may be specified as: either the keyword value none or a <track-list> value or an <auto-track-list> value.
...And 15 more matches
grid-area - CSS: Cascading Style Sheets
the g
rid-area css shorthand property specifies a g
rid item’s size and location within a g
rid by contributing a line, a span, or nothing (automatic) to its g
rid placement, thereby specifying the edges of its g
rid area.
... if four <g
rid-line> values are specified, g
rid-row-start is set to the first value, g
rid-column-start is set to the second value, g
rid-row-end is set to the third value, and g
rid-column-end is set to the fourth value.
... when g
rid-column-end is omitted, if g
rid-column-start is a <custom-ident>, g
rid-column-end is set to that <custom-ident>; otherwise, it is set to auto.
...And 14 more matches
grid-column - CSS: Cascading Style Sheets
the g
rid-column css shorthand property specifies a g
rid item's size and location within a g
rid column by contributing a line, a span, or nothing (automatic) to its g
rid placement, thereby specifying the inline-start and inline-end edge of its g
rid area.
... constituent properties this property is a shorthand for the following css properties: g
rid-column-end g
rid-column-start syntax this property is specified as one or two <g
rid-line> values.
... if two <g
rid-line> values are given they are separated by "/".
...And 14 more matches
grid-template-columns - CSS: Cascading Style Sheets
the g
rid-template-columns css property defines the line names and track sizing functions of the g
rid columns.
... syntax /* keyword value */ g
rid-template-columns: none; /* <track-list> values */ g
rid-template-columns: 100px 1fr; g
rid-template-columns: [linename] 100px; g
rid-template-columns: [linename1] 100px [linename2 linename3]; g
rid-template-columns: minmax(100px, 1fr); g
rid-template-columns: fit-content(40%); g
rid-template-columns: repeat(3, 200px); g
rid-template-columns: subg
rid; /* <auto-track-list> values */ g
rid-template-columns: 200px repeat(auto-fill, 100px) 300px; g
rid-template-columns: minmax(100px, max-content) repeat(auto-fill, 200px) 20%...
...; g
rid-template-columns: [linename1] 100px [linename2] repeat(auto-fit, [linename3 linename4] 300px) 100px; g
rid-template-columns: [linename1 linename2] 100px repeat(auto-fit, [linename1] 300px) [linename3]; /* global values */ g
rid-template-columns: inherit; g
rid-template-columns: initial; g
rid-template-columns: unset; values none indicates that there is no explicit g
rid.
...And 14 more matches
Box alignment in grid layout - CSS: Cascading Style Sheets
on this page we explore how box alignment works in the context of css g
rid layout.
... as this page aims to detail things which are specific to css g
rid layout and box alignment, it should be read in conjunction with the main box alignment page which details the common features of box alignment across layout methods.
... basic example in this example using g
rid layout, there is extra space in the g
rid container after laying out the fixed width tracks on the inline (main) axis.
...And 12 more matches
grid-column-start - CSS: Cascading Style Sheets
the g
rid-column-start css property specifies a g
rid item’s start position within the g
rid column by contributing a line, a span, or nothing (automatic) to its g
rid placement.
... this start position defines the block-start edge of the g
rid area.
... syntax /* keyword value */ g
rid-column-start: auto; /* <custom-ident> value */ g
rid-column-start: someg
ridarea; /* <integer> + <custom-ident> values */ g
rid-column-start: 2; g
rid-column-start: someg
ridarea 4; /* span + <integer> + <custom-ident> values */ g
rid-column-start: span 3; g
rid-column-start: span someg
ridarea; g
rid-column-start: span someg
ridarea 5; /* global values */ g
rid-column-start: inherit; g
rid-column-start: initial; g
rid-column-start: unset; this property is specified as a single <g
rid-line> value.
...And 12 more matches
grid-row-start - CSS: Cascading Style Sheets
the g
rid-row-start css property specifies a g
rid item’s start position within the g
rid row by contributing a line, a span, or nothing (automatic) to its g
rid placement, thereby specifying the inline-start edge of its g
rid area.
... syntax /* keyword value */ g
rid-row-start: auto; /* <custom-ident> values */ g
rid-row-start: someg
ridarea; /* <integer> + <custom-ident> values */ g
rid-row-start: 2; g
rid-row-start: someg
ridarea 4; /* span + <integer> + <custom-ident> values */ g
rid-row-start: span 3; g
rid-row-start: span someg
ridarea; g
rid-row-start: 5 someg
ridarea span; /* global values */ g
rid-row-start: inherit; g
rid-row-start: initial; g
rid-row-start: unset; this property is specified as a single <g
rid-line> value.
... a <g
rid-line> value can be specified as: either the auto keyword or a <custom-ident> value or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
...And 11 more matches
grid-row - CSS: Cascading Style Sheets
the g
rid-row css shorthand property specifies a g
rid item’s size and location within the g
rid row by contributing a line, a span, or nothing (automatic) to its g
rid placement, thereby specifying the inline-start and inline-end edge of its g
rid area.
... if two <g
rid-line> values are specified, the g
rid-row-start longhand is set to the value before the slash, and the g
rid-row-end longhand is set to the value after the slash.
... constituent properties this property is a shorthand for the following css properties: g
rid-row-end g
rid-row-start syntax /* keyword values */ g
rid-row: auto; g
rid-row: auto / auto; /* <custom-ident> values */ g
rid-row: someg
ridarea; g
rid-row: someg
ridarea / someotherg
ridarea; /* <integer> + <custom-ident> values */ g
rid-row: someg
ridarea 4; g
rid-row: 4 someg
ridarea / 6; /* span + <integer> + <custom-ident> values */ g
rid-row: span 3; g
rid-row: span someg
ridarea; g
rid-row: 5 someg
ridarea span; g
rid-row: span 3 / 6; g
rid-row: span someg
ridarea / span someotherg
ridarea; g
rid-row: 5 someg
ridarea span / 2 span; /* global values */ g
rid-row: inherit; g
rid-row: initial; g
rid-row: unset; values auto is a keyword indicating that the property contributes nothing to the g
rid item’s...
...And 11 more matches
NavigatorID - Web APIs
the navigato
rid interface contains methods and properties related to the identity of the browser.
... there is no object of type navigato
rid, but other interfaces, like navigator or workernavigator, implement it.
... properties the navigato
rid interface doesn't inherit any properties.
...And 10 more matches
Grid Lines - MDN Web Docs Glossary: Definitions of Web-related terms
g
rid lines are created when you define tracks in the explicit g
rid using css g
rid layout.
... in the following example there is a g
rid with three column tracks and two row tracks.
... * {box-sizing: border-box;} .wrapper { border: 2px solid #f76707; border-radius: 5px; background-color: #fff4e6; display: g
rid; g
rid-template-columns: repeat(3, 1fr); g
rid-template-rows: repeat(3, 100px); } .wrapper > div { border: 2px solid #ffa94d; border-radius: 5px; background-color: #ffd8a8; padding: 1em; color: #d9480f; } <div class="wrapper"> <div>one</div> <div>two</div> <div>three</div> <div>four</div> <div>five</div> </div> .wrapper { display: g
rid; g
rid-template-columns: repeat(3, 1fr); g
rid-template-rows: 100px 100px; } lines can be addressed using their line number.
...And 9 more matches
grid-auto-columns - CSS: Cascading Style Sheets
the g
rid-auto-columns css property specifies the size of an implicitly-created g
rid column track or pattern of tracks.
... if a g
rid item is positioned into a column that is not explicitly sized by g
rid-template-columns, implicit g
rid tracks are created to hold it.
... syntax /* keyword values */ g
rid-auto-columns: min-content; g
rid-auto-columns: max-content; g
rid-auto-columns: auto; /* <length> values */ g
rid-auto-columns: 100px; g
rid-auto-columns: 20cm; g
rid-auto-columns: 50vmax; /* <percentage> values */ g
rid-auto-columns: 10%; g
rid-auto-columns: 33.3%; /* <flex> values */ g
rid-auto-columns: 0.5fr; g
rid-auto-columns: 3fr; /* minmax() values */ g
rid-auto-columns: minmax(100px, auto); g
rid-auto-columns: minmax(max-content, 2fr); g
rid-auto-columns: minmax(20%, 80vmax); /* fit-content() values */ g
rid-auto-columns: fit-content(400px); g
rid-auto-columns: fit-content(5cm); g
rid-auto-columns: fit-content(20...
...And 9 more matches
grid-auto-rows - CSS: Cascading Style Sheets
the g
rid-auto-rows css property specifies the size of an implicitly-created g
rid row track or pattern of tracks.
... if a g
rid item is positioned into a row that is not explicitly sized by g
rid-template-rows, implicit g
rid tracks are created to hold it.
... syntax /* keyword values */ g
rid-auto-rows: min-content; g
rid-auto-rows: max-content; g
rid-auto-rows: auto; /* <length> values */ g
rid-auto-rows: 100px; g
rid-auto-rows: 20cm; g
rid-auto-rows: 50vmax; /* <percentage> values */ g
rid-auto-rows: 10%; g
rid-auto-rows: 33.3%; /* <flex> values */ g
rid-auto-rows: 0.5fr; g
rid-auto-rows: 3fr; /* minmax() values */ g
rid-auto-rows: minmax(100px, auto); g
rid-auto-rows: minmax(max-content, 2fr); g
rid-auto-rows: minmax(20%, 80vmax); /* multiple track-size values */ g
rid-auto-rows: min-content max-content auto; g
rid-auto-rows: 100px 150px 390px; g
rid-auto-rows: 10% 33.3%; g
rid-auto-rows: 0.5fr 3fr 1fr; g
rid-auto...
...And 9 more matches
grid-column-end - CSS: Cascading Style Sheets
the g
rid-column-end css property specifies a g
rid item’s end position within the g
rid column by contributing a line, a span, or nothing (automatic) to its g
rid placement, thereby specifying the block-end edge of its g
rid area.
... syntax /* keyword value */ g
rid-column-end: auto; /* <custom-ident> values */ g
rid-column-end: someg
ridarea; /* <integer> + <custom-ident> values */ g
rid-column-end: 2; g
rid-column-end: someg
ridarea 4; /* span + <integer> + <custom-ident> values */ g
rid-column-end: span 3; g
rid-column-end: span someg
ridarea; g
rid-column-end: 5 someg
ridarea span; /* global values */ g
rid-column-end: inherit; g
rid-column-end: initial; g
rid-column-end: unset; values auto is a keyword indicating that the property contributes nothing to the g
rid item’s placement, indicating au...
... <custom-ident> if there is a named line with the name '<custom-ident>-end', it contributes the first such line to the g
rid item’s placement.
...And 9 more matches
grid-row-end - CSS: Cascading Style Sheets
the g
rid-row-end css property specifies a g
rid item’s end position within the g
rid row by contributing a line, a span, or nothing (automatic) to its g
rid placement, thereby specifying the inline-end edge of its g
rid area.
... syntax /* keyword value */ g
rid-row-end: auto; /* <custom-ident> values */ g
rid-row-end: someg
ridarea; /* <integer> + <custom-ident> values */ g
rid-row-end: 2; g
rid-row-end: someg
ridarea 4; /* span + <integer> + <custom-ident> values */ g
rid-row-end: span 3; g
rid-row-end: span someg
ridarea; g
rid-row-end: 5 someg
ridarea span; /* global values */ g
rid-row-end: inherit; g
rid-row-end: initial; g
rid-row-end: unset; values auto is a keyword indicating that the property contributes nothing to the g
rid item’s placement, indicating auto-placement, an automatic spa...
... <custom-ident> if there is a named line with the name '<custom-ident>-end', it contributes the first such line to the g
rid item’s placement.
...And 9 more matches
grid-template - CSS: Cascading Style Sheets
the g
rid-template css property is a shorthand property for defining g
rid columns, rows, and areas.
... constituent properties this property is a shorthand for the following css properties: g
rid-template-areas g
rid-template-columns g
rid-template-rows syntax /* keyword value */ g
rid-template: none; /* g
rid-template-rows / g
rid-template-columns values */ g
rid-template: 100px 1fr / 50px 1fr; g
rid-template: auto 1fr / auto 1fr auto; g
rid-template: [linename] 100px / [columnname1] 30% [columnname2] 70%; g
rid-template: fit-content(100px) / fit-content(40%); /* g
rid-template-areas g
rid-template-rows / g
rid-template-column values */ g
rid-template: "a a a" ...
... "b b b"; g
rid-template: "a a a" 20% "b b b" auto; g
rid-template: [header-top] "a a a" [header-bottom] [main-top] "b b b" 1fr [main-bottom] / auto 1fr auto; /* global values */ g
rid-template: inherit; g
rid-template: initial; g
rid-template: unset; values none is a keyword that sets all three longhand properties to none, meaning there is no explicit g
rid.
...And 9 more matches
nsIStringBundleOverride
intl/strres/nsistringbundleover
ride.idlscriptable provides the string bundle over
ride service; this interface is an implementation detail.
... inherits from: nsisupports last changed in gecko 1.7 implemented by: @mozilla.org/intl/stringbundle/text-over
ride;1.
... to create an instance, use: var stringbundleservice = components.classes["@mozilla.org/intl/stringbundle/text-over
ride;1"] .getservice(components.interfaces.nsistringbundleover
ride); note: you should never need to use this service directly.
...And 8 more matches
CSS Grid Layout - CSS: Cascading Style Sheets
css g
rid layout excels at dividing a page into major regions or defining the relationship in terms of size, position, and layer, between parts of a control built from html primitives.
... like tables, g
rid layout enables an author to align elements into columns and rows.
... however, many more layouts are either possible or easier with css g
rid than they were with tables.
...And 7 more matches
Test your skills: Grid Layout - Learn web development
this aim of this task is to get you working with css g
rid layout, and test that you understand how a g
rid and g
rid items behave.
... g
rid layout one in this task you should create a g
rid into which the four child elements will auto-place.
... the g
rid should have three columns sharing the available space equally, and a 20-pixel gap between the column and row tracks.
...And 6 more matches
Grid Areas - MDN Web Docs Glossary: Definitions of Web-related terms
a g
rid area is one or more g
rid cells that make up a rectangular area on the g
rid.
... g
rid areas are created when you place an item using line-based placement or when defining areas using named g
rid areas.
... g
rid areas must be rectangular in nature; it is not possible to create, for example, a t- or l-shaped g
rid area.
...And 5 more matches
Grid Tracks - MDN Web Docs Glossary: Definitions of Web-related terms
a g
rid track is the space between two g
rid lines.
... they are defined in the explicit g
rid by using the g
rid-template-columns and g
rid-template-rows properties or the shorthand g
rid or g
rid-template properties.
... tracks are also created in the implicit g
rid by positioning a g
rid item outside of the tracks created in the explicit g
rid.
...And 5 more matches
grid - Archive of obsolete content
note: this page is about g
rids in mozilla's xul technology.
... if you are looking for information on css g
rids, you should go to our css g
rid layout page instead.
... « xul reference home [ examples | attributes | properties | methods | related ] a g
rid is a layout type that arranges elements in rows and columns.
...And 4 more matches
Grid - MDN Web Docs Glossary: Definitions of Web-related terms
a css g
rid is defined using the g
rid value of the display property; you can define columns and rows on your g
rid using the g
rid-template-rows and g
rid-template-columns properties.
... the g
rid that you define using these properties is described as an explicit g
rid.
... if you place content outside of this explicit g
rid, or if you are relying on auto-placement and the g
rid algorithm needs to create additional row or column tracks to hold g
rid items, then extra tracks will be created in the implicit g
rid.
...And 4 more matches
RTCPeerConnection: peeridentity event - Web APIs
the pee
ridentity event is sent to the connection concerned when peer identity has been set and verified on it.
... the new identiy can be access using the rtcpeerconnection.pee
ridentity property.
... an event handler for this event can be added via the rtcpeerconnection.onpee
ridentity property.
...And 4 more matches
grid - CSS: Cascading Style Sheets
the g
rid css media feature can be used to test whether the output device uses a g
rid-based screen.
...examples of g
rid-based devices include text-only terminals and basic phones with only one fixed font.
... syntax the g
rid feature is specified as a <mq-boolean> value (0 or 1) representing whether or not the ouput device is g
rid-based.
...And 4 more matches
Grid wrapper - CSS: Cascading Style Sheets
the g
rid wrapper pattern is useful for aligning g
rid content within a central wrapper, while also allowing items to break out and align to the edge of the containing element or page when desired.
... requirements items placed on the g
rid should be able to align to a horizontally-centered max-width wrapper and/or the outer edges of the g
rid.
... recipe download this example choices made this recipe uses the css g
rid minmax() function to define the g
rid track sizes in the g
rid-template-columns property.
...And 4 more matches
column-gap (grid-column-gap) - CSS: Cascading Style Sheets
now specified in box alignment, it may be used in multi-column, flexible box, and g
rid layouts.
... css g
rid layout initially defined the g
rid-column-gap property.
...however, in order to support browsers that implemented g
rid-column-gap and not column-gap for g
rid, you will need to use the prefixed property.
...And 4 more matches
grid-auto-flow - CSS: Cascading Style Sheets
the g
rid-auto-flow css property controls how the auto-placement algorithm works, specifying exactly how auto-placed items get flowed into the g
rid.
... syntax /* keyword values */ g
rid-auto-flow: row; g
rid-auto-flow: column; g
rid-auto-flow: dense; g
rid-auto-flow: row dense; g
rid-auto-flow: column dense; /* global values */ g
rid-auto-flow: inherit; g
rid-auto-flow: initial; g
rid-auto-flow: unset; this property may take one of two forms: a single keyword: one of row, column, or dense.
... dense "dense" packing algorithm attempts to fill in holes earlier in the g
rid, if smaller items come up later.
...And 4 more matches
Grid Cell - MDN Web Docs Glossary: Definitions of Web-related terms
in a css g
rid layout, a g
rid cell is the smallest unit you can have on your css g
rid.
... it is the space between four intersecting g
rid lines and conceptually much like a table cell.
... if you do not place items using one of the g
rid placement methods, direct children of the g
rid container will be placed one into each individual g
rid cell by the auto-placement algorithm.
...And 3 more matches
Grid Column - MDN Web Docs Glossary: Definitions of Web-related terms
a g
rid column is a vertical track in a css g
rid layout, and is the space between two vertical g
rid lines.
... it is defined by the g
rid-template-columns property or in the shorthand g
rid or g
rid-template properties.
... in addition, columns may be created in the implicit g
rid when items are placed outside of columns created in the explicit g
rid.
...And 3 more matches
Grid Row - MDN Web Docs Glossary: Definitions of Web-related terms
a g
rid row is a horizontal track in a css g
rid layout, that is the space between two horizontal g
rid lines.
... it is defined by the g
rid-template-rows property or in the shorthand g
rid or g
rid-template properties.
... in addition, rows may be created in the implicit g
rid when items are placed outside of rows created in the explicit g
rid.
...And 3 more matches
gap (grid-gap) - CSS: Cascading Style Sheets
css g
rid layout initially defined the g
rid-gap property.
...however, in order to support browsers that implemented g
rid-gap and not gap for g
rid, you will need to use the prefixed property as in the interactive example above.
... values <length> is the width of the gutter separating the g
rid lines.
...And 3 more matches
grid-template-areas - CSS: Cascading Style Sheets
the g
rid-template-areas css property specifies named g
rid areas, establishing the cells in the g
rid and assigning them names.
... those areas are not associated with any particular g
rid item, but can be referenced from the g
rid-placement properties g
rid-row-start, g
rid-row-end, g
rid-column-start, g
rid-column-end, and their shorthands g
rid-row, g
rid-column, and g
rid-area.
... syntax /* keyword value */ g
rid-template-areas: none; /* <string> values */ g
rid-template-areas: "a b"; g
rid-template-areas: "a b b" "a c d"; /* global values */ g
rid-template-areas: inherit; g
rid-template-areas: initial; g
rid-template-areas: unset; values none the g
rid container doesn’t define any named g
rid areas.
...And 3 more matches
A hybrid approach - Developer guides
this hyb
rid approach centers around breaking down mobile development into its three goals, and then applying the best techniques available to tackle each goal individually.
... in many cases, the added complexity of the hyb
rid approach is not even necessary.
... we’ve talked about incorporating server-side techniques into a responsive design, but there are even ways to use the hyb
rid approach if your use cases for mobile and desktop are very different.
...And 3 more matches
Creating a hybrid CD - Archive of obsolete content
the cd should support hfs (macintosh), joliet (win32), and rock
ridge (unix).
...the utility mkhyb
rid lets you create hyb
rid cds that work with all three filesystems.
... mkhyb
rid was written by james pearson and is is a component of the latest versions of cdrecord.
...And 2 more matches
PointerEvent.pointerId - Web APIs
the pointe
rid read-only property of the pointerevent interface is an identifier assigned to a given pointer event.
... syntax var id = pointerevent.pointe
rid; return value id the pointer event's unique identifier number.
... example the following code snippet compares a previously saved pointe
rid with the one of the pointerdown event that was just fired.
...And 2 more matches
XMLHttpRequest.overrideMimeType() - Web APIs
the xmlhttprequest method over
ridemimetype() specifies a mime type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
... syntax xmlhttprequest.over
ridemimetype(mimetype) parameters mimetype a domstring specifying the mime type to use instead of the one specified by the server.
... example this example specifies a mime type of "text/plain", over
riding the server's stated type for the data being received.
...And 2 more matches
font-language-override - CSS: Cascading Style Sheets
the font-language-over
ride css property controls the use of language-specific glyphs in a typeface.
... /* keyword value */ font-language-over
ride: normal; /* <string> values */ font-language-over
ride: "eng"; /* use english glyphs */ font-language-over
ride: "trk"; /* use turkish glyphs */ /* global values */ font-language-over
ride: initial; font-language-over
ride: inherit; font-language-over
ride: unset; by default, html's lang attribute tells browsers to display glyphs designed specifically for that language.
... example, a lot of fonts have a special character for the digraph fi that merge the dot on the "i" with the "f." however, if the language is set to turkish the typeface will likely know not to use the merged glyph; turkish has two versions of the "i," one with a dot (i) and one without (ı), and using the ligature would incorrectly transform a dotted "i" into a dotless "i." the font-language-over
ride property lets you over
ride the typeface behavior for a specific language.
...And 2 more matches
row-gap (grid-row-gap) - CSS: Cascading Style Sheets
the row-gap css property sets the size of the gap (gutter) between an element's g
rid rows.
... css g
rid layout initially defined the g
rid-row-gap property.
...however, in order to support browsers that implemented g
rid-row-gap and not row-gap for g
rid, you will need to use the prefixed property as in the interactive example above.
...And 2 more matches
cert_override.txt - Archive of obsolete content
cert_over
ride.txt is a text file generated in the user profile to store certificate exceptions specified by the user.
...since there is no way to add easily an exception in a xulrunner 1.9 project, you can open the page in firefox, accept the certificate, then copy the cert_over
ride.txt to the xulrunner application profile.
...the key and the website are not valid: # psm certificate over
ride settings file # this is a generated file!
... domainname:port : port 443 for https (ssl) hash algorithm oid sha1-256: oid.2.16.840.1.101.3.4.2.1 (most used) sha-384: oid.2.16.840.1.101.3.4.2.2 sha-512: oid.2.16.840.1.101.3.4.2.3 certificate fingerprint using previous hash algorithm one or more characters for over
ride type: m : allow mismatches in the hostname u : allow untrusted certs (whether it's self signed cert or a missing or invalid issuer cert) t : allow errors in the validity time, for example, for expired or not yet valid certs certificate's serial number and the issuer name as a base64 encoded string ...
Grid Axis - MDN Web Docs Glossary: Definitions of Web-related terms
css g
rid layout is a two-dimensional layout method enabling the laying out of content in rows and columns.
... therefore in any g
rid we have two axes.
...these are our rows in css g
rid layout.
... learn more further reading css g
rid layout guide: basic concepts of g
rid layout css g
rid layout guide: box alignment in g
rid layout css g
rid layout guide: g
rids, logical values and writing modes ...
Grid container - MDN Web Docs Glossary: Definitions of Web-related terms
using the value g
rid or inline-g
rid on an element turns it into a g
rid container using css g
rid layout, and any direct children of this element become g
rid items.
... when an element becomes a g
rid container it establishes a g
rid formatting context.
... the direct children can now lay themselves out on any explicit g
rid defined using g
rid-template-columns and g
rid-template-rows, or on the implicit g
rid created when an item is placed outside of the explicit g
rid.
... learn more property reference g
rid-template-columns g
rid-template-rows g
rid-auto-columns g
rid-auto-rows g
rid g
rid-template further reading css g
rid layout guide: basic concepts of g
rid layout ...
NS_OVERRIDE
ns_over
ride is a macro which allows c++ code in mozilla to specify that a method is intended to over
ride a base class method.
...ns_over
ride is declared in nscore.h, beginning with gecko 2.0.
...example class a has a method getfoo() which is over
ridden by class b: class a { virtual nsresult getfoo(nsifoo** aresult); }; class b : public a { ns_over
ride virtual nsresult getfoo(nsifoo** aresult); }; later, the signature of a::getfoo() is changed to remove the output parameter: class a { - virtual nsresult getfoo(nsifoo** aresult); + virtual already_addrefed<nsifoo> getfoo(); }; b::getfoo() no longer over
rides a::getfoo() as was originally intended.
... a compiler with static-checking enabled will issue the following error: test.cpp:8: error: ns_over
ride function b::getfoo(nsifoo**) does not over
ride a base class method with the same name and signature.
RTCPeerConnection.onpeeridentity - Web APIs
the rtcpeerconnection.onpee
ridentity event handler is a property containing the code to execute whent the pee
ridentity event, of type event, is received by this rtcpeerconnection.
...to detect successful validation of the identity, wait for the promise returned by pee
ridentity to resolve successfully with the peer's identity.
... syntax peerconnection.onpee
ridentity = function; values function is the name of a user-defined function, without the () suffix or any parameters, or an anonymous function declaration, such as function(event) {...}.
... example pc.onpee
ridentity = function(ev) { alert("onpee
ridentity event detected!"); }; ...
RTCPeerConnection.peerIdentity - Web APIs
the read-only rtcpeerconnection property pee
ridentity returns a javascript promise that resolves to an rtcidentityassertion which contains a domstring identifying the remote peer.
... syntax var identity = rtcpeerconnection.pee
ridentity; value a javascript promise which resolves to an rtcidentityassertion that describes the remote peer's identity.
...if there isn't already a target peer identity, pee
ridentity is set to a newly created promise and the process begins again, until the process succeeds or no further attempts to authenticate occur.
...*/ async function getidentityassertion(pc) { try { const identity = await pc.pee
ridentity; return identity; } catch(err) { console.log("error identifying remote peer: ", err); return null; } } specifications specification status comment identity for webrtc candidate recommendation initial specification.
TaskAttributionTiming.containerId - Web APIs
the containe
rid readonly property of the taskattributiontiming interface returns the container's id attribute.
... syntax var containe
rid = taskattributiontiming.containe
rid; value a domstring containing the containers id attribute.
... specifications specification status comment long tasks api 1the definition of 'containe
rid' in that specification.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetcontaine
rid experimentalchrome full support 58edge full support ≤79firefox no support noie ?
NavigatorID.userAgent - Web APIs
the navigato
rid.useragent read-only property returns the user agent string for the current browser.
...for example: in firefox, you can change the preference general.useragent.over
ride in about:config.
...ber (platform; security; os-or-cpu; localization; rv: revision-version-number) product/productsub application-name application-name-version example alert(window.navigator.useragent) // alerts "mozilla/5.0 (windows; u; win98; en-us; rv:0.9.2) gecko/20010725 netscape6/6.1" specifications specification status comment html living standardthe definition of 'navigato
rid.useragent' in that specification.
RTCInboundRtpStreamStats.receiverId - Web APIs
the receive
rid property of the rtcinboundrtpstreamstats dictionary specifies the id of the rtcaudioreceiverstats or rtcvideoreceiverstats object representing the rtcrtpreceiver receiving the stream.
... syntax var receiverstatsid = rtcinboundrtpstreamstats.receive
rid; value a domstring which contains the id of the rtcaudioreceiverstats or rtcvideoreceiverstats object which provides information about the rtcrtpreceiver which is receiving the streamed media.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcinboundrtpstreamstats.receive
rid' in that specification.
USBDevice.vendorID - Web APIs
the vendo
rid read only property of the usbdevice interface is the official usg.org-assigned vendor id.
... syntax var serialnumber = usbdevice.vendo
rid value the official usg.org-assigned vendor id.
... specifications specification status comment webusbthe definition of 'vendo
rid' in that specification.
PR_GetNameForIdentity
syntax #include <prio.h> const char* pr_getnamefo
ridentity(prdescidentity ident); parameter the function has the following parameter: ident a layer's identity.
...the string is copied by the runtime, and pr_getnamefo
ridentity returns a pointer to that copy.
vendorID - Web APIs
the bluetoothdevice.vendo
rid read-only property returns the 16-bit vendor id field in the pnp_id characteristic in the device_information service.
... syntax var vendo
rid = instanceofbluetoothdevice.vendo
rid returns the the 16-bit vendor id field.
vendorIDSource - Web APIs
the bluetoothdevice.vendo
ridsource read-only property returns the vendor id source field in the pnp_id characteristic in the device_information service.
... syntax var vendo
ridsource = instanceofbluetoothdevice.vendo
ridsource returns the vendor id source field.
NavigatorID.appCodeName - Web APIs
the value of the navigato
rid.appcodename property is always "mozilla", in any browser.
... specifications specification status comment html living standardthe definition of 'navigato
rid.appcodename' in that specification.
NavigatorID.appName - Web APIs
the value of the navigato
rid.appname property is always "netscape", in any browser.
... specifications specification status comment html living standardthe definition of 'navigato
rid.appname' in that specification.
NavigatorID.product - Web APIs
the value of the navigato
rid.product property is always "gecko", in any browser.
... specifications specification status comment html living standardthe definition of 'navigato
rid.product' in that specification.
NavigatorID.taintEnabled() - Web APIs
the navigato
rid.taintenabled() method always returns false.
... syntax result = window.navigator.taintenabled() specifications specification status comment html living standardthe definition of 'navigato
rid.taintenabled' in that specification.
NavigatorID.platform - Web APIs
specifications specification status comment html living standardthe definition of 'navigato
rid.platform' in that specification.
Legacy layout methods - Learn web development
previous overview: css layout next g
rid systems are a very common feature used in css layouts, and before css g
rid layout they tended to be implemented using floats or other layout features.
... prerequisites: html basics (study introduction to html), and an idea of how css works (study introduction to css and styling boxes.) objective: to understand the fundamental concepts behind the g
rid layout systems used prior to css g
rid layout being available in browsers.
... layout and g
rid systems before css g
rid layout it may seem surprising to anyone coming from a design background that css didn’t have an inbuilt g
rid system until very recently, and instead we seemed to be using a variety of sub-optimal methods to create g
rid-like designs.
...And 60 more matches
Index - Web APIs
320 vendo
rid api, bluetoothdevice, non-standard, obsolete, property, reference, web bluetooth api, vendo
rid the bluetoothdevice.vendo
rid read-only property returns the 16-bit vendor id field in the pnp_id characteristic in the device_information service.
... 321 vendo
ridsource api, bluetoothdevice, non-standard, obsolete, property, reference, web bluetooth api, vendo
ridsource the bluetoothdevice.vendo
ridsource read-only property returns the vendor id source field in the pnp_id characteristic in the device_information service.
...if you want to set the width and height of an element, use width and height or the over
riding min-width and max-width, and min-height and max-height properties.
...And 29 more matches
Supporting older browsers - Learn web development
previous overview: css layout next in this module, we recommend using flexbox and g
rid as the main layout methods for your designs.
...for example, take a look at the page for g
rid-template-columns.
...this means that there is a definition for what happens if a floated item, for example, is also a g
rid item using css g
rid layout.
...And 25 more matches
Index - Archive of obsolete content
this article describes how an extension can over
ride this change in a particular window, enabling context menus to work on form controls.
... 410 chrome.manifest copy the following text and paste it into a text file, then save that file as "chrome.manifest": 411 install.rdf copy the following text and paste it into a text file, then save that file as "install.rdf": 412 creating a hyb
rid cd developing mozilla, outdated_articles no summary!
...this file will be loaded into the web application content stylesheet and can over
ride the web application's native styles.
...And 19 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
179 g
rid css, css g
rid, glossary a css g
rid is defined using the g
rid value of the display property; you can define columns and rows on your g
rid using the g
rid-template-rows and g
rid-template-columns properties.
... 180 g
rid areas css, css g
rids, reference a g
rid area is one or more g
rid cells that make up a rectangular area on the g
rid.
... g
rid areas are created when you place an item using line-based placement or when defining areas using named g
rid areas.
...And 19 more matches
Building accessible custom components in XUL - Archive of obsolete content
a super-simple spreadsheet download stage-1.zip install stage-1.xpi to build our xul spreadsheet, we'll use three built-in xul controls: a single g
rid element to contain the other elements and position them in rows and columns.
...we define the g
rid, then define the headers for each row (numbered 1 through 7), then define the column header and cells for each column.
...<code> <g
rid class="spreadsheet" id="accjaxspreadsheet" flex="1"> <rows flex="1"></rows> <columns flex="1"> <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...
...And 17 more matches
Responsive design - Learn web development
the first was the idea of fluid g
rids, something which was already being explored by gillenwater, and can be read up on in marcotte's article, fluid g
rids (published in 2009 on a list apart).
...in marcotte's original exploration this meant flexible g
rids (using floats) and media queries, however in the almost 10 years since that article was written, working responsively has become the default.
... flexible g
rids responsive sites don't just change their layout between breakpoints, they are built on flexible g
rids.
...And 15 more matches
ARIA: row role - Accessibility
a row contains one or more cells, g
rid cells or column headers, and possibly a row header, within a g
rid, table or treeg
rid, and optionally within a rowgroup.
...r"aria-sort="none">population</span> </div> </div> <div role="rowgroup"> <div role="row"> <span role="cell">finland</span> <span role="cell">5.5 million</span> </div> <div role="row"> <span role="cell">france</span> <span role="cell">67 million</span> </div> </div> </div> description the element role="row" is a row within a g
rid, table or treeg
rid, and optionally within a rowgroup, that is a container for one or more cells, g
ridcells, columnheaders, or rowheaders within a static tabular structure.
...that row should be nested within a g
rid, table or treeg
rid.
...And 15 more matches
Using feature queries - CSS: Cascading Style Sheets
however the values display: flex and display: g
rid are newer.
...to do so, you can include a list of features to test for, separated by and keywords: @supports (property1: value) and (property2: value) { css rules to apply } for example, if the css you want to run requires that the browser supports css shapes and css g
rid, you could create a rule which checks for both of these things.
... the following rule will only return true if both shape-outside: circle() and display: g
rid are supported by the browser.
...And 15 more matches
Introduction to CSS layout - Learn web development
the page layout techniques we'll be covering in more detail in this module are normal flow the display property flexbox g
rid floats positioning table layout multiple-column layout each technique has its uses, advantages, and disadvantages, and no technique is designed to be used in isolation.
...we also have entire layout methods that are switched on via specific display values, for example css g
rid and flexbox, which alter how elements inside the element they are set on are laid out.
...the two values most important for our purposes when discussing layout are display: flex and display: g
rid.
...And 14 more matches
jspage - Archive of obsolete content
ine:{name:"unknown",version:0},platform:{name:(window.orientation!=undefined)?"ipod":(navigator.platform.match(/mac|win|linux/i)||["other"])[0].tolowercase()},features:{xpath:!!(document.evaluate),air:!!(window.runtime),query:!!(document.queryselector)},plugins:{},engines:{presto:function(){return(!window.opera)?false:((arguments.callee.caller)?960:((document.getelementsbyclassname)?950:925)); },t
rident:function(){return(!window.activexobject)?false:((window.xmlhttprequest)?((document.queryselectorall)?6:5):4);},webkit:function(){return(navigator.taintenabled)?false:((browser.features.xpath)?((browser.features.query)?525:420):419); },gecko:function(){return(!document.getboxobjectfor&&window.mozinnerscreenx==null)?false:((document.getelementsbyclassname)?19:18);}}},browser||{});browser.platfor...
..."."+a[1],10)||0,build:parseint(a[2],10)||0}; })();function $exec(b){if(!b){return b;}if(window.execscript){window.execscript(b);}else{var a=document.createelement("script");a.setattribute("type","text/javascript"); a[(browser.engine.webkit&&browser.engine.version<420)?"innertext":"text"]=b;document.head.appendchild(a);document.head.removechild(a);}return b;}native.uid=1; var $uid=(browser.engine.t
rident)?function(a){return(a.uid||(a.uid=[native.uid++]))[0];}:function(a){return a.uid||(a.uid=native.uid++);};var window=new native({name:"window",legacy:(browser.engine.t
rident)?null:window.window,initialize:function(a){$uid(a); if(!a.element){a.element=$empty;if(browser.engine.webkit){a.document.createelement("iframe");}a.element.prototype=(browser.engine.webkit)?window["[[domelement.prototype]]"...
...]:{}; }a.document.window=a;return $extend(a,window.prototype);},afterimplement:function(b,a){window[b]=window.prototype[b]=a;}});window.prototype={$family:{name:"window"}}; new window(window);var document=new native({name:"document",legacy:(browser.engine.t
rident)?null:window.document,initialize:function(a){$uid(a);a.head=a.getelementsbytagname("head")[0]; a.html=a.getelementsbytagname("html")[0];if(browser.engine.t
rident&&browser.engine.version<=4){$try(function(){a.execcommand("backgroundimagecache",false,true); });}if(browser.engine.t
rident){a.window.attachevent("onunload",function(){a.window.detachevent("onunload",arguments.callee);a.head=a.html=a.window=null; });}return $extend(a,document.prototype);},afterimplement:function(b,a){document[b]=document.prototype[b]=a;}});document.prototype...
...And 12 more matches
repeat() - CSS: Cascading Style Sheets
this function can be used in the css g
rid properties g
rid-template-columns and g
rid-template-rows.
... <percentage> a non-negative percentage relative to the inline size of the g
rid container in column g
rid tracks, and the block size of the g
rid container in row g
rid tracks.
... if the size of the g
rid container depends on the size of its tracks, then the <percentage> must be treated as auto.
...And 12 more matches
Index - Archive of obsolete content
31 browse
rid xul, xul reference no summary!
... 1030 g
rids tutorials, xul, xul_tutorial xul has a set of elements for creating tabular g
rids.
... 1105 colorpicker xul elements, xul reference a palette of colors from which a user may select by clicking on one of the g
rid cells.
...And 11 more matches
Relationship of flexbox to other layout methods - CSS: Cascading Style Sheets
these properties were initially defined in the css g
rid specification and named g
rid-row-gap, g
rid-column-gap and g
rid-gap.
... flexbox and g
rid layout css g
rid layout and flexbox generally act in the same way with regards to overwriting other methods.
... you might however want to use flexbox as a fallback for g
rid layout, as there is better support for flexbox in older browsers.
...And 11 more matches
The Firefox codebase: CSS Guidelines
the over
riding css section contains more information about this.
... avoid id selectors unless it is really the wanted goal, since ids have higher specificity and therefore are harder to over
ride.
... using descendant selectors is good practice for performance when possible: for example: .autocomplete-item[selected] > .autocomplete-item-title would be more efficient than .autocomplete-item[selected] .autocomplete-item-title over
riding css before over
riding any css rules, check whether over
riding is really needed.
...And 10 more matches
CSS Box Alignment - CSS: Cascading Style Sheets
the css box alignment module specifies css features that relate to the alignment of boxes in the various css box layout models: block layout, table layout, flex layout, and g
rid layout.
... basic examples the following examples demonstrate how some of the box alignment properties are applied in g
rid and flexbox.
... css g
rid layout alignment example in this example using g
rid layout, there is extra space in the g
rid container after laying out the fixed width tracks on the inline (main) axis.
...And 10 more matches
display - CSS: Cascading Style Sheets
the display css property sets whether an element is treated as a block or inline element and the layout used for its children, such as flow layout, g
rid or flex.
... g
rid the element behaves like a block element and lays out its content according to the g
rid model.
... note: browsers that support the two value syntax, on finding the inner value only, such as when display: flex or display: g
rid is specified, will set their outer value to block.
...And 10 more matches
Implementing controls using the Gamepad API - Game development
it features a case study game — hungry f
ridge, created by enclave games.
... case study: hungry f
ridge the github game off ii competition ran in november 2013 and enclave games decided to take part in it.
... the theme for the competition was "change", so they submitted a game where you have to feed the hungry f
ridge by tapping the healthy food (apples, carrots, lettuces) and avoid the "bad" food (beer, burgers, pizza.) a countdown changes the type of food the f
ridge wants to eat every few seconds, so you have to be careful and act quickly.
...And 9 more matches
Index - Learn web development
140 css layout beginner, css, floating, g
rids, guide, landing, layout, learn, module, multiple column, positioning, alignment, flexbox, float, table at this point we've already looked at css fundamentals, how to style text, and how to style and manipulate the boxes that your content sits inside.
...we have covered the necessary prerequisites so we can now dive deep into css layout, looking at different display settings, modern layout tools like flexbox, css g
rid, and positioning, and some of the legacy techniques you might still want to know about.
...next we'll have a look at another important aspect of css layouts — css g
rids.
...And 9 more matches
Places utilities for JavaScript
boolean nodeislivemarkcontainer(nsinavhistoryresultnode anode); obsolete since gecko 21 boolean nodeislivemarkitem(nsinavhistoryresultnode anode); obsolete since gecko 21 boolean isreadonlyfolder(nsinavhistoryresultnode anode); int getindexofnode(nsinavhistoryresultnode anode); string wrapnode(nsinavhistoryresultnode anode, string atype, nsiuri aover
rideuri); array unwrapnodes(string blob, string atype); nsitransaction maketransaction(string data, string type, nsinavhistoryresultnode container, int index, boolean copy); nsinavhistoryresult getfoldercontents(int afolde
rid, boolean aexcludeitems, boolean aexpandqueries); boolean showaddbookmarkui(nsiuri auri, string atitle, string adescription, int adefaultinser...
... aitemid); void setannotationsforuri(nsiuri auri, object aannos); void setannotationsforuri(int aitemid, object aannos); getviewfornode(nsidomnode anode); void markpageastyped(string aurl); void markpageasfollowedbookmark(string aurl); boolean checkurlsecurity(nsinavhistoryresultnode aurinode); string getquerystringforfolder(int afolde
rid); string getdescriptionfromdocument(nsidomdocument doc); string setpostdataforbookmark(int aboomarkid, string apostdata); string getpostdataforbookmark(int aboomarkid); array string geturlandpostdataforkeyword(string akeyword); string getitemdescription(int aitemid); nsinavhistoryresultnode getmostrecentbookmarkforuri(nsiuri auri); ns...
... placesrootid bookmarksmenufolde
rid the bookmarks menu.
...And 9 more matches
ARIA: cell role - Accessibility
<tr role="row"> <td role="cell">france</td> <td role="cell">67 million</td> </tr> description the element with role="cell" is a cell within a row, optionally within a rowgroup, within a g
rid, table or treeg
rid within a static tabular structure.
...that row, in turn, can be nested within an element with role="rowgroup", and should be nested within a g
rid, table or treeg
rid.
...if the cell does not contain header information and is nested in a g
rid or treeg
rid, the role of g
ridcell may be more appropriate.
...And 9 more matches
Embedded Dialog API
gecko uses nsiwindowcreator to create all new windows for which no explicit over
ride (the advanced api) has been given, and for browser windows in general.
...(note that at time of writing this may not be strictly true; work continues on this topic.) all over
rideable dialogs are implemented by gecko as a component.
...and note that if an application chooses to replace one of gecko's default dialog components, that application must over
ride every dialog in the component.
...And 8 more matches
Examine and edit CSS - Firefox Developer Tools
over
ridden declaration: declarations that are over
ridden by later rules are crossed out.
... see over
ridden declarations.
... filter rules containing this property: next to over
ridden declarations is an icon you can click to filter the rules list to show only those rules that include that property.
...And 8 more matches
ARIA Test Cases - Accessibility
ults: at firefox ie opera safari jaws 9 - - n/a n/a jaws 10 - - - - voiceover (leopard) n/a n/a - fail window-eyes - - - - nvda - n/a - - zoom (leopard) pass n/a pass pass zoomtext - - - - orca - - - - g
rid see various g
rid and table examples on the example page for g
rid variants.
... basic g
rid -- single select g
rid in an application -- single select illinois g
rid example -- multi select expected at behavior: screen reader should read column and row headers as the g
rid is traversed with arrow keys (in forms mode).
... screen readers should continue to respect any special table reading modes while the user traverses the g
rid.
...And 8 more matches
Mastering Wrapping of Flex Items - CSS: Cascading Style Sheets
in this guide i will explain how this works, what it is designed for and what situations really require css g
rid layout rather than flexbox.
... if you want layout in two dimensions then you probably want g
rid layout.
... we can compare our wrapped row example above with the css g
rid version of that layout to see the difference.
...And 8 more matches
Adapting to the new two-value syntax of display - CSS: Cascading Style Sheets
for example to make a heading inline we would use the following css: h1 { display: inline; } more recently we have gained css g
rid layout and flexbox.
... to access these we also use values of the display property — display: g
rid and display: flex.
... only when the value of display is changed do the children become flex or g
rid items and begin to respond to the other properties in the g
rid or flexbox specifications.
...And 8 more matches
<input type="image"> - HTML: Hypertext Markup Language
if specified, the value of the formenctype attribute over
rides the owning form's action attribute.
... formmethod a string indicating the http method to use when submitting the form's data; this value over
rides any method attribute given on the owning form.
...this over
rides the value of the novalidate attribute on the element's owning form.
...And 8 more matches
Floats - Learn web development
with the advent of flexbox and g
rid it has now returned to its original purpose, as this article explains.
...cum sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus.</p> now apply the following css to your html (using a <style> element or a <link> to a separate .css file — your choice): body { width: 90%; max-width: 900px; margin: 0 auto; font: .9em/1.2 arial, helvetica, 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...
...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...
...And 7 more matches
Accessibility API cross-reference
ear 'inline' n/a blockquote <blockquote> entire window border as 1 object border n/a n/a n/a specific kind of button that drops down a list of items, msaa only buttondropdown n/a n/a expressed with aria-haspopup on an element with a button role specific kind of button that drops down a g
rid, msaa only buttondropdowng
rid n/a n/a specific kind of button that drops down a menu, msaa only buttonmenu n/a n/a expressed with aria-haspopup on an element with a button role represents the system's caret caret n/a n/a n/a a brief portion of text describing a table or figure.
... graphic n/a n/a img <img> a cell in a g
rid or treeg
rid.
... g
rid a composite widget containing a collection of one or more rows with one or more cells where some or all cells in the g
rid are focusable by using methods of two-dimensional navigation, such as directional arrow keys, e.g.
...And 7 more matches
Index
15 language bindings embedding, landing, mozilla, xpcom, xpcom:language bindings an xpcom language binding is a b
ridge 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.
... 58 xpconnect landing, mozilla, xpcom, xpcom:language bindings, xpconnect xpconnect is a b
ridge between javascript and xpcom.
...for example, if this object is created with the root "browser.startup.", the preferences "browser.startup.page", "browser.startup.homepage", and "browser.startup.homepage_over
ride" can be accessed by simply passing "page", "homepage", or "homepage_over
ride" to the various get/set methods.
...And 7 more matches
nsIParentalControlsService
toolkit/components/parentalcontrols/public/nsiparentalcontrolsservice.idlscriptable this interface provides access to the operating system's parental controls feature, allowing code to detect whether such a service is enabled and to request over
rides to bypass the feature.
...to create an instance, use: var parentalcontrolsservice = components.classes["@mozilla.org/parental-controls-service;1"] .createinstance(components.interfaces.nsiparentalcontrolsservice); method overview void log(in short aentrytype, in boolean aflag, in nsiuri asource, [optional] in nsifile atarget); boolean requesturiover
ride(in nsiuri atarget, [optional] in nsiinterfacerequestor awindowcontext); boolean requesturiover
rides(in nsiarray atargets, [optional] in nsiinterfacerequestor awindowcontext); attributes attribute type description blockfiledownloadsenabled boolean true if the current user account's parental controls restrictions include the blocking of all file downl...
... requesturiover
ride() requests that a blocked uri be allowed through parental control filters.
...And 7 more matches
ARIA: rowgroup role - Accessibility
a rowgroup contains one or more rows of cells, g
rid cells, column headers, or row headers within a g
rid, table or treeg
rid.
...their elements must be contained in, or owned by, elements with either the table or g
rid role.
...that rowgroup should be nested within a g
rid, table or treeg
rid, encompassing a group of one or more rows.
...And 7 more matches
minmax() - CSS: Cascading Style Sheets
it is used with css g
rids.
...as a maximum, a <flex> value sets the flex factor of a g
rid track; it is invalid as a minimum.
... <percentage> a non-negative percentage relative to the inline size of the g
rid container in column g
rid tracks, and the block size of the g
rid container in row g
rid tracks.
...And 7 more matches
Appendix C: Avoiding using eval in Add-ons - Archive of obsolete content
over
riding/extending/amending existing functions a common thing add-ons do during their initialization is over
riding/extending existing browser functions by using function.tostring/function.tosource and eval to "string-patch" the function body.
... var _original = gbrowser.addtab; // over
ride a function.
... there won't be any problems if various add-ons over
ride the same function (using this method).
...And 6 more matches
Beginner's guide to media queries - Learn web development
@media screen and (min-width: 40em) { article { display: g
rid; g
rid-template-columns: 3fr 1fr; column-gap: 20px; } nav ul { display: flex; } nav li { flex: 1; } } this css gives us a two-column layout inside the article, of the article content and related information in the aside element.
...inside a media query we'll make the main element into a two column g
rid.
... @media screen and (min-width: 70em) { main { display: g
rid; g
rid-template-columns: 3fr 1fr; column-gap: 20px; } article { margin-bottom: 0; } footer { border-top: 1px solid #ccc; margin-top: 2em; } } open step 3 in the browser, or view the source.
...And 6 more matches
sslfnc.html
the ssl_cipherprefsetdefault function cannot over
ride cipher suite policy settings that are not permitted; see ssl export policy functions for details.
...it over
rides the factory default policy for that cipher suite.
...it allows the application to set the user preferences for cipher suites on an individual socket, over
riding the default value for the preference (which can be set with ssl_cipherprefsetdefault).
...And 6 more matches
Timing element visibility with the Intersection Observer API - Web APIs
we'll be using css g
rid to style and lay out the site, so we can be pretty straightforward here: <div class="wrapper"> <header> <h1>a fake blog</h1> <h2>showing intersection observer in action!</h2> </header> <aside> <nav> <ul> <li><a href="#link1">a link</a></li> <li><a href="#link2">another link</a></li> <li><a href="#link3">one more link</a></li> </ul> </nav...
... the basics we provide styles for the <body> and <main> elements to define the site's background as well as the g
rid the various parts of the site will be placed in.
... body { font-family: "open sans", "arial", "helvetica", sans-serif; background-color: aliceblue; } .wrapper { display: g
rid; g
rid-template-columns: auto minmax(min-content, 1fr); g
rid-template-rows: auto minmax(min-content, 1fr); max-width: 700px; margin: 0 auto; background-color: aliceblue; } the site's <body> is configured here to use one of a number of common sans-serif fonts, and to use "aliceblue" as the background color.
...And 6 more matches
Navigator - Web APIs
properties doesn't inherit any properties, but implements those defined in navigato
rid, navigatorlanguage, navigatoronline, navigatorcontentutils, navigatorstorage, navigatorstorageutils, navigatorconcurrenthardware, navigatorplugins, and navigatorusermedia.
... standard navigato
rid.appcodename read only returns the internal "code" name of the current browser.
... navigato
rid.appname read only returns a domstring with the official name of the browser.
...And 6 more matches
Specificity - CSS: Cascading Style Sheets
the !important exception when an important rule is used on a style declaration, this declaration over
rides any other declarations.
... some rules of thumb: always look for a way to use specificity before even considering !important only use !important on page-specific css that over
rides foreign css (from external libraries, like bootstrap or normalize.css).
... #myid#myid span { color: yellow; } .myclass.myclass span { color: orange; } how !important can be used: a) over
riding inline styles your global css file that sets visual aspects of your site globally may be overwritten by inline styles defined directly on individual elements.
...And 6 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
mail.identity.id1.draft_folder", "imap://" + env_user + "@imap-int.int-evry.fr/drafts"); lockpref("mail.identity.id1.drafts_folder_picker_mode", "0"); lockpref("mail.identity.id1.fcc_folder", "imap://" + env_user + "@imap-int.int-evry.fr/sent"); lockpref("mail.identity.id1.fcc_folder_picker_mode", "0"); lockpref("mail.identity.id1.organization", "int evry france"); lockpref("mail.identity.id1.over
rideglobal_pref", true); lockpref("mail.identity.id1.reply_to", ""); //imap lockpref("mail.server.server2.hostname", "imap-int.int-evry.fr"); lockpref("mail.server.server2.issecure", true); lockpref("mail.server.server2.login_at_startup", true); lockpref("mail.server.server2.max_cached_connections", 5); //lockpref("mail.server.server2.name", "jehan.procaccia@int-evry.fr"); lockpref("mail.server.serv...
...let's over
ride it.
...ldapvalue(values, "cn"); var mail = getldapvalue(values, "mail"); lockpref("mail.server.server1.name", mail); lockpref("mail.identity.id1.fullname", cn); lockpref("mail.identity.id1.useremail", mail); if (env_mozdebug) { displayerror("debug mozilla.cfg v2.8", "mail:" + mail + "uid:" + uid + "cn" + cn + "user:" + env_user); } } //browser /*defaultpref("startup.homepage_over
ride_url", "http://www.int-evry.fr/mci/user/"); lockpref("browser.startup.homepage_over
ride", true); lockpref("browser.startup.page", 1); defaultpref("browser.startup.homepage", "http://www.int-evry.fr/mci/user/"); */ lockpref("browser.startup.homepage", "http://www.int-evry.fr/mci/user/"); lockpref("browser.startup.homepage_over
ride", true); lockpref("general.config.vendor", "mci-mozilla-web-tux"); ...
...And 5 more matches
datepicker - Archive of obsolete content
g
rid - a datepicker with a calendar g
rid for selecting a date.
... popup - a normal datepicker with three fields, but with an additional dropdown button to display a popup g
rid.
... a monthchange event is fired for the g
rid and popup datepickers whenever a new month is navigated to or displayed.
...And 5 more matches
Extentsions FAQ - Archive of obsolete content
return to mozilla-dev-extensions faq f
riday, september 22 - 29, 2006 (↑ top) how to write an xpcom component in c++ that can communicate to a com component?
... f
riday, september 29 - october 6, 2006 (↑ top) is there anyway, via plugin or extension, for firefox to mimic the functionality of ie in this respect?
... f
riday, october 06 - 13, 2006 (↑ top) any suggestions to remove tool tip appears on the menu it when it should not?
...And 5 more matches
Tiles and tilemaps overview - Game development
this set of articles covers the basics of creating tile maps using javascript and canvas (although the same high level techniques could be used in any programming language.) besides the performance gains, tilemaps can also be mapped to a logical g
rid, which can be used in other ways inside the game logic (for example creating a path-finding graph, or handling collisions) or to create a level editor.
... visual g
rid: includes indices showing what type of tile should be placed on each position in the g
rid.
... logic g
rid: this can be a collision g
rid, a path-finding g
rid, etc., depending on the type of game.
...And 5 more matches
Cascade and inheritance - Learn web development
as we saw earlier in this lesson, a class selector has more weight than an element selector, so the properties defined on the class will over
ride those applied directly to the element.
...this is used to make a particular property and value the most specific thing, thus over
riding the normal rules of the cascade.
...really all three should surely apply, because rules later in the source order generally over
ride earlier rules.
...And 5 more matches
Mozilla accessibility architecture
they may over
ride some methods, such as init() and shutdown(), and add other methods to support interfaces needed only by the given toolkit.
...in the future xbl form controls may be used, in which case there will be dom content for these sub-parts, and we will not need to over
ride the traversal methods.
... that is why we don't need to over
ride these traversal methods for nsxulcomboboxaccessible (<menulist>).
...And 5 more matches
PKCS #11 Module Specs
manufacture
rid over
ride the default manufactureid value for the module returned in the ck_info, ck_slot_info, and ck_token_info structures with an internationalize string (utf8).
... librarydescription over
ride the default librarydescription value for the module returned in the ck_info structure with an internationalize string (utf8).
... cryptotokendescription over
ride the default label value for the internal crypto token returned in the ck_token_info structure with an internationalize string (utf8).
...And 5 more matches
Places Developer Guide
creating a folder var folde
rid = bookmarks.createfolder( bookmarks.toolbarfolder, // the id of the folder the new folder will be placed in.
... creating a separator var separato
rid = bookmarks.insertseparator( bookmarks.toolbarfolder, // the id of the folder the separator will be placed in.
...an item's title int64 getitemindex(aitemid) - returns an item's position in it's parent folder prtime getitemtype(aitemid) - returns the type of an item (bookmark, folder, separator) prtime getitemdateadded(aitemid) - returns the time in microseconds that an item was added prtime getitemlastmodified(aitemid) - returns the time in microseconds that an item was last modified int64 getfolde
ridforitem(aitemid) - returns the id of the folder containing the given item.
...And 5 more matches
imgIEncoder
1.0 66 introduced gecko 1.8 inherits from: nsiasyncinputstream last changed in gecko 1.9 (firefox 3) method overview void addimageframe( [array, size_is(length), const] in pruint8 data, in unsigned long length, in pruint32 width, in pruint32 height, in pruint32 st
ride, in pruint32 frameformat, in astring frameoptions); void encodeclipboardimage(in nsiclipboardimage aclipboardimage, out nsifile aimagefile); obsolete since gecko 1.9 void endimageencode(); void initfromdata([array, size_is(length), const] in pruint8 data, in unsigned long length, in pruint32 width, in pruint32 height, in pruint32 st
ride, in pruint32 inputformat, in astring outputoptions); v...
... png: ---- transparency=[yes|no|none] -- default: "yes" over
rides default from input format.
... apng: ----- the following options can be used with startimageencode(): transparency=[yes|no|none] -- default: "yes" over
rides default from input format.
...And 5 more matches
Using Pointer Events - Web APIs
function handlestart(evt) { log("pointerdown."); var el = document.getelementsbytagname("canvas")[0]; var ctx = el.getcontext("2d"); log("pointerdown: id = " + evt.pointe
rid); ongoingtouches.push(copytouch(evt)); var color = colorfortouch(evt); ctx.beginpath(); ctx.arc(touches[i].pagex, touches[i].pagey, 4, 0, 2 * math.pi, false); // a circle at the start ctx.arc(evt.clientx, evt.clienty, 4, 0, 2 * math.pi, false); // a circle at the start ctx.fillstyle = color; ctx.fill(); } after storing some of the event's processing in the ongoingtouches for lat...
... function handlemove(evt) { var el = document.getelementsbytagname("canvas")[0]; var ctx = el.getcontext("2d"); var color = colorfortouch(evt); var idx = ongoingtouchindexbyid(evt.pointe
rid); log("continuing touch: idx = " + idx); if (idx >= 0) { ctx.beginpath(); log("ctx.moveto(" + ongoingtouches[idx].pagex + ", " + ongoingtouches[idx].pagey + ");"); ctx.moveto(ongoingtouches[idx].pagex, ongoingtouches[idx].pagey); log("ctx.lineto(" + evt.clientx + ", " + evt.clienty + ");"); ctx.lineto(evt.clientx, evt.clienty); ctx.linewidth = 4; ctx.strokestyle ...
...this is done by looking at each touch's pointerevent.pointe
rid property.
...And 5 more matches
WorkerNavigator - Web APIs
properties the workernavigator interface implements properties from the navigato
rid, navigatorlanguage, navigatoronline, navigatordatastore, and navigatorconcurrenthardware interfaces.
... inherited properties navigato
rid.appcodename read only always returns 'mozilla', in any browser.
... navigato
rid.appname read only returns the official name of the browser.
...And 5 more matches
Recipe: Media objects - CSS: Cascading Style Sheets
the recipe download this example choices made i have chosen to use g
rid layout for the media object as it allows me to control the layout in two dimensions when i need to.
... another reason to use g
rid layout is in order that i can use fit-content() for the track sizing of the image.
... by using g
rid-template-areas to achieve the layout, i can see the pattern in the css.
...And 5 more matches
justify-self - CSS: Cascading Style Sheets
in table cell layouts, this property is ignored (more about alignment in block, absolute positioned and table layout) in flexbox layouts, this property is ignored (more about alignment in flexbox) in g
rid layouts, it aligns an item inside its g
rid area on the inline axis (more about alignment in g
rid layouts) syntax /* basic keywords */ justify-self: auto; justify-self: normal; justify-self: stretch; /* positional alignment */ justify-self: center; /* pack item around the center */ justify-self: start; /* pack item from the start */ justify-self: end; /* pack item from the end ...
... in g
rid layouts, this keyword leads to a behavior similar to the one of stretch, except for boxes with an aspect ratio or an intrinsic sizes where it behaves like start.
... formal definition initial valueautoapplies toblock-level boxes, absolutely-positioned boxes, and g
rid itemsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | normal | stretch | <baseline-position> | <overflow-position>?
...And 5 more matches
place-self - CSS: Cascading Style Sheets
the align-self and justify-self properties) in a relevant layout system such as g
rid or flexbox.
... for g
rid items, this keyword leads to a behavior similar to the one of stretch, except for boxes with an aspect ratio or an intrinsic sizes where it behaves like start.
... formal definition initial valueas each of the properties of the shorthand:align-self: autojustify-self: autoapplies toblock-level boxes, absolutely-positioned boxes, and g
rid itemsinheritednocomputed valueas each of the properties of the shorthand:align-self: auto computes to itself on absolutely-positioned elements, and to the computed value of align-items on the parent (minus any legacy keywords) on all other boxes, or start if the box has no parent.
...And 5 more matches
unicode-bidi - CSS: Cascading Style Sheets
the unicode-bidi property over
rides this algorithm and allows the developer to control the text embedding.
...web designers and similar authors should not over
ride it.
... /* keyword values */ unicode-bidi: normal; unicode-bidi: embed; unicode-bidi: isolate; unicode-bidi: bidi-over
ride; unicode-bidi: isolate-over
ride; unicode-bidi: plaintext; /* global values */ unicode-bidi: inherit; unicode-bidi: initial; unicode-bidi: unset; syntax values normal the element does not offer an additional level of embedding with respect to the bidirectional algorithm.
...And 5 more matches
Gutters - MDN Web Docs Glossary: Definitions of Web-related terms
these can be created in css g
rid layout using the g
rid-column-gap, g
rid-row-gap, or g
rid-gap properties.
... in the example below we have a three-column and two-row track g
rid, with 20-pixel gaps between column tracks and 20px-gaps between row tracks.
... * {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: #fff8f8; padding: 1em; color: #d9480f; } .wrapper { display: g
rid; g
rid-template-columns: repeat(3,1.2fr); g
rid-auto-rows: 45%; g
rid-column-gap: 20px; g
rid-row-gap: 20px; } <div class="wrapper"> <div>one</div> <div>two</div> <div>three</div> <div>four</div> <div>five</div> </div> in terms of g
rid sizing, gaps act as if they were a regular g
rid track however nothing can be placed into the gap.
...And 4 more matches
Debugging CSS - Learn web development
for example in firefox there are some excellent tools for working visually with css layout, allowing you to inspect and edit g
rid layouts, flexbox, and shapes.
...what is generally happening here is that a more specific selector is over
riding your changes, and here devtools will really help you out.
...you can now see that the class is over
riding the element selector.
...And 4 more matches
Memory reporting
size_t mystring::sizeofexcludingthis(mozilla::mallocsizeof amallocsizeof) const { return amallocsizeof(mbuffer); } size_t mystring::sizeofincludingthis(mozilla::mallocsizeof amallocsizeof) const { return amallocsizeof(this) + sizeofexcludingthis(amallocsizeof); } (note that sizeofexcludingthis and sizeofincludingthis aren't over
rides of methods on a global base class that is common to all reporters.
...} virtual size_t sizeofexcludingthis(nsmallocsizeoffun amallocsizeof) const over
ride { size_t n = b::sizeofexcludingthis(amallocsizeof); n += ...
... // measure things pointed to by d-specific fields return n; } virtual size_t sizeofincludingthis(nsmallocsizeoffun amallocsizeof) const over
ride { return amallocsizeof(this) + sizeofexcludingthis(amallocsizeof); } // data members }; things to note about sizeofexcludingthis when it is virtual.
...And 4 more matches
Transformations - Web APIs
« previousnext » earlier in this tutorial we've learned about the canvas g
rid and the coordinate space.
... until now, we only used the default g
rid and changed the size of the overall canvas for our needs.
... with transformations there are more powerful ways to translate the origin to a different position, rotate the g
rid and even scale it.
...And 4 more matches
RTCPeerConnection - Web APIs
if it has not yet been set, this is null.pee
ridentity read only the read-only rtcpeerconnection property pee
ridentity returns a javascript promise that resolves to an rtcidentityassertion which contains a domstring identifying the remote peer.pendinglocaldescription read only the read-only property rtcpeerconnection.pendinglocaldescription returns an rtcsessiondescription object describing a pending configuration change for the local end of th...
...this negotiation should be carried out as the offerer, because some session changes cannot be negotiated as the answerer.onpee
ridentity the rtcpeerconnection.onpee
ridentity event handler is a property containing the code to execute whent the pee
ridentity event, of type event, is received by this rtcpeerconnection.
...now, you should instead wait for a the promise returned by pee
ridentity to resolve with an identity.
...And 4 more matches
Box-shadow generator - CSS: Cascading Style Sheets
</div> <div class="output" data-topic="after" data-name="element:after" data-prop="content=[""] position=[absolute] width height top left z-index background-color box-shadow transform -webkit-transform -ms-transform"> </div> </div> </div> </div> </div> </div> css content /* g
rid 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...
...======================================================================= */ .section { clear: both; padding: 0px; margin: 0px; } /* grouping * ========================================================================== */ .group:before, .group:after { content: ""; display: table; } .group:after { clear:both; } .group { zoom: 1; /* for ie 6/7 (trigger haslayout) */ } /* g
rid column setup * ========================================================================== */ .col { display: block; float:left; margin: 1% 0 1% 1.6%; } .col:first-child { margin-left: 0; } /* all browsers except ie6 and lower */ /* * ui slider */ .slidergroup { height: 20px; margin: 10px 0; font-family: "segoe ui", arial, helvetica, sans-serif; -moz-user-select: none; user-select:...
...nt('div'); s.classname = 'container'; stack.classname = 'stack'; title.classname = 'title'; title.textcontent = subject.getattribute('data-title'); s.appendchild(title); s.appendchild(stack); this.id = subject.id; this.container = s; this.stack = stack; this.subject = subject; this.order = []; this.uid = 0; this.count = 0; this.layer = null; this.laye
rid = 0; } stack.prototype.addlayer = function addlayer() { if (tool.addshadow(this.laye
rid) == -1) return; var uid = this.getuid(); var layer = this.createlayer(uid); if (this.layer === null && this.stack.children.length >= 1) this.layer = this.stack.children[0]; this.stack.insertbefore(layer, this.layer); this.order.splice(this.laye
rid, 0, uid); this.count++; ...
...And 4 more matches
Visual formatting model - CSS: Cascading Style Sheets
g
rid layout behaves in the same way as the flexbox example above, turning strings of text into a g
rid item with an anonymous box.
... however, the inner display type might be something like g
rid or flex, in which case the direct children will display as a g
rid, or flex items.
... in such a case the element is described as creating a g
rid or flex formatting context.
...And 4 more matches
HTML attribute reference - HTML: Hypertext Markup Language
formaction <input>, <button> indicates the action of the element, over
riding the action defined in the <form>.
...if this attribute is specified, it over
rides the enctype attribute of the button's form owner.
...if this attribute is specified, it over
rides the method attribute of the button's form owner.
...And 4 more matches
<form> - HTML: Hypertext Markup Language
autocapitalize attributes on a form elements over
ride it on <form>.
...autocomplete attributes on form elements over
ride it on <form>.
...this value can be over
ridden by a formaction attribute on a <button>, <input type="submit">, or <input type="image"> element.
...And 4 more matches
menupopup - Archive of obsolete content
left type: integer over
rides the horizontal position of the popup specified by the showpopup method.
... for more details, including examples, please see popup positioning top type: integer over
rides the vertical position of the popup specified by the showpopup method.
... openpopup( anchor , position , x , y , iscontextmenu, attributesover
ride, triggerevent ) return type: no return value opens the popup relative to a specified node at a specific location.
...And 3 more matches
panel - Archive of obsolete content
left type: integer over
rides the horizontal position of the popup specified by the showpopup method.
... top type: integer over
rides the vertical position of the popup specified by the showpopup method.
... openpopup( anchor , position , x , y , iscontextmenu, attributesover
ride, triggerevent ) return type: no return value opens the popup relative to a specified node at a specific location.
...And 3 more matches
CSS layout - Learn web development
we have covered the necessary prerequisites so we can now dive deep into css layout, looking at different display settings, modern layout tools like flexbox, css g
rid, and positioning, and some of the legacy techniques you might still want to know about.
... g
rids css g
rid layout is a two-dimensional layout system for the web.
...this article will give you all you need to know to get started with page layout, then test your g
rid skills before moving on.
...And 3 more matches
CSS FAQ - Learn web development
class selectors have lower specificity than id selectors, so are easier to over
ride if needed.
...it is important to remember that a rule applied to a descendent over
rides the style of the parent, in spite of any specificity or priority of css rules.
...this means that a previous rule for a single attribute could be implicitly over
ridden.
...And 3 more matches
Gecko info for Windows accessibility vendors
positional descriptions are supported the accdescription field is over
riden for the following roles: role_listitem, role_menuitem, role_radiobutton, role_pagetab and role_outlineitem for everything other than outline item, the positional description is in the form "n of m" where n is an integer indicating the position within other similar objects in a group, and m represents the number of objects in that group.
... unique features role_table html: <table> dhtml: role="wairole:g
rid" (in this case state_focusable is set) accname is supported via <caption> first child of table or summary attribute role_columnheader xul: tree column headers html: <th> dhtml: role="wairole:colheader" role_rowheader dhtml: role="wairole:rowheader" role_column not supported.
...see the section intentional differences with ie role_cell html: <td> dhtml: role="wairole:g
ridcell" sets state_readonly in normal table.
...And 3 more matches
Eclipse CDT
when changing individual key bindings, note that bindings are context sensitive and that any changes you make may be ignored if they conflict with existing bindings, or if they are over
ridden by a binding for a more specific context.
...this is useful if you want to keep your existing search results open, for example, and have a new search open in a separate tab rather than over
riding the contents of the existing search tab.
... to see the over
rides of a virtual method, select that method's name in an editor window and select "open type hierarchy" or, "quick type hierarchy" from the context menu.
...And 3 more matches
Mozilla DOM Hacking Guide
how to over
ride the default behavior of xpconnect on dom objects xpconnect implements default behaviors for xpcom objects in general, and for dom objects in particular.
... domclassinfo allows the implementor to over
ride this default behavior using the nsixpcscriptable interface.
...this is how we can over
ride the default "set this property on this object" xpconnect behavior.
...And 3 more matches
nsIDBFolderInfo
thod overview long andflags(in long flags); void changeexpungedbytes(in long delta); void changenummessages(in long delta); void changenumunreadmessages(in long delta); boolean getbooleanproperty(in string propertyname, in boolean defaultvalue); void getcharacterset(out acstring charset, out boolean over
riden); void getcharactersetover
ride(out boolean charactersetover
ride); obsolete since gecko 1.8 string getcharptrcharacterset(); string getcharptrproperty(in string propertyname); void getlocale(in nsstring result); native code only!
... unsigned long getuint32property(in string propertyname, in unsigned long defaultvalue); void initfromtransferinfo(in nsidbfolderinfo transferinfo); long orflags(in long flags); void setbooleanproperty(in string propertyname, in boolean apropertyvalue); void setcharacterset(in string charset); void setcharactersetover
ride(in boolean charactersetover
ride); obsolete since gecko 1.8 void setcharptrproperty(in string apropertyname, in string apropertyvalue); void sethighwater(in nsmsgkey highwater, in boolean force); void setlocale(in nsstring locale); native code only!
...obsolete since gecko 1.8 void setproperty(in string propertyname, in astring propertystr); void setuint32property(in string propertyname, in unsigned long propertyvalue); attributes attribute type description charactersetover
ride boolean expiredmark nsmsgkey expungedbytes long flags long folderdate unsigned long foldername string foldersize unsigned long highwater nsmsgkey imaphierarchy...
...And 3 more matches
Applying styles and colors - Web APIs
// these all set the fillstyle to 'orange' ctx.fillstyle = 'orange'; ctx.fillstyle = '#ffa500'; ctx.fillstyle = 'rgb(255, 165, 0)'; ctx.fillstyle = 'rgba(255, 165, 0, 1)'; a fillstyle example in this example, we once again use two for loops to draw a g
rid of rectangles, each in a different color.
...in the images below, the g
rid represents the canvas coordinate g
rid.
... the squares between g
ridlines are actual on-screen pixels.
...And 3 more matches
HTMLButtonElement - Web APIs
htmlbuttonelement.autofocus is a boolean indicating whether or not the control should have input focus when the page loads, unless the user over
rides it, for example by typing in a different control.
...if specified, this attribute over
rides the action attribute of the <form> element that owns this element.
...if specified, this attribute over
rides the enctype attribute of the <form> element that owns this element.
...And 3 more matches
HTMLInputElement - Web APIs
this over
rides the action attribute of the parent form.
...this over
rides the enctype attribute of the parent form.
...this over
rides the method attribute of the parent form.
...And 3 more matches
WebGLRenderingContext.vertexAttribPointer() - Web APIs
syntax void gl.vertexattribpointer(index, size, type, normalized, st
ride, offset); parameters index a gluint specifying the index of the vertex attribute that is to be modified.
... st
ride a glsizei specifying the offset in bytes between the beginning of consecutive vertex attributes.
...if st
ride is 0, the attribute is assumed to be tightly packed, that is, the attributes are not interleaved but each attribute is in a separate block, and the next vertex' attribute follows immediately after the current vertex.
...And 3 more matches
WAI-ARIA Roles - Accessibility
a figure is generally considered to be one or more images, code snippets, or other content that puts across information in a different way to a regular flow of text.aria: form rolethe form landmark role can be used to identify a group of elements on a page that provide equivalent functionality to an html form.aria: g
rid rolethe g
rid role is for a widget that contains one or more rows of cells.
... the position of each cell is significant and can be focused using keyboard input.aria: g
ridcell rolethe g
ridcell role is used to make a cell in a g
rid or treeg
rid.
...a row contains one or more cells, g
rid cells or column headers, and possibly a row header, within a g
rid, table or treeg
rid, and optionally within a rowgroup.aria: rowgroup rolean element with role="rowgroup" is a group of rows within a tabular structure.
...And 3 more matches
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
ext [important] role_pushbutton [important] role_checkbutton [important] role_radiobutton [important] role_combobox [important] role_droplist [important] role_progressbar [important] role_dial role_hotkeyfield role_slider role_spinbutton role_diagram role_animation role_equation role_buttondropdown role_buttonmenu role_buttondropdowng
rid role_whitespace role_pagetablist [important] role_clock role_splitbutton role_ipaddress role_nothing msaa object identifiers cheat sheet for information on what each object identifier does, see the msdn object identifiers constants page.
...realize that it's about both p
ride and revenue for these companies, and that they need to sell a lot of copies of their software to make up the work they put in to support your app.
...apart from that, it is free to over
ride iaccessible or nsiaccessible methods.
...And 3 more matches
Sticky footers - CSS: Cascading Style Sheets
you could also achieve this for a full page by setting a min-height of 100vh on the <body> and then using it as your g
rid container.
... choices made in the above example we achieve the sticky footer using css g
rid layout.
...we then create a single column g
rid layout with three rows, one row for each part of our layout.
...And 3 more matches
CSS Layout cookbook - CSS: Cascading Style Sheets
css g
rid, float fallback, fit-content() sizing columns when to choose multi-column layout, flexbox or g
rid for your columns.
... css g
rid, multicol, flexbox center an element how to center an item horizontally and vertically.
... css g
rid, flexbox split navigation a navigation pattern where some links are visually separated from the others.
...And 3 more matches
border-style - CSS: Cascading Style Sheets
constituent properties this property is a shorthand for the following css properties: border-bottom-style border-left-style border-right-style border-top-style syntax /* keyword values */ border-style: none; border-style: hidden; border-style: dotted; border-style: dashed; border-style: solid; border-style: double; border-style: groove; border-style:
ridge; border-style: inset; border-style: outset; /* vertical | horizontal */ border-style: dotted solid; /* top | horizontal | bottom */ border-style: hidden double dashed; /* top | right | bottom | left */ border-style: none solid dotted dashed; /* global values */ border-style: inherit; border-style: initial; border-style: unset; the border-style property may be specified using one, two, thr...
...it is the opposite of
ridge.
...
ridge displays a border with an extruded appearance.
...And 3 more matches
justify-items - CSS: Cascading Style Sheets
in table cell layouts, this property is ignored (more about alignment in block, absolute positioned and table layout) in flexbox layouts, this property is ignored (more about alignment in flexbox) in g
rid layouts, it aligns the items inside their g
rid areas on the inline axis (more about alignment in g
rid layouts) syntax /* basic keywords */ justify-items: auto; justify-items: normal; justify-items: stretch; /* positional alignment */ justify-items: center; /* pack items around the center */ justify-items: start; /* pack items from the start */ justify-items: end; /* pack items...
... in g
rid layouts, this keyword leads to a behavior similar to the one of stretch, except for boxes with an aspect ratio or an intrinsic sizes where it behaves like start.
...baseline<overflow-position> = unsafe | safe<self-position> = center | start | end | self-start | self-end | flex-start | flex-end examples simple demonstration in the following example we have a simple 2 x 2 g
rid layout.
...And 3 more matches
Details of the object model - JavaScript
it also over
rides the dept property with the value "sales", indicating that all salespersons are in the same department.
...it adds the machine property (whose value defaults to the empty string) and also over
rides the dept property with the value "engineering".
...in javascript, you add a prototypical instance as the value of the prototype property of the constructor function, then over
ride the prototype.constructor to the constructor function.
...And 3 more matches
Classes and Inheritance - Archive of obsolete content
we will show how to make inheritance work correctly with respect to constructors, prototypes, and the instanceof operator, and how to over
ride methods in subclasses.
...we can thus over
ride the prototype of circle with an object which prototype is the prototype of shape.
...the constructor property is supposed to be non-configurable, non-enumberable, and non-writable, so the correct way to define it is as follows: circle.prototype = object.create(shape.prototype, { constructor: { value: circle } }); over
riding methods as a final example, we show how to over
ride the stub implementation of the method draw in shape with a more specialized one in circle.
...And 2 more matches
/loader - Archive of obsolete content
in order to load a module before a main one (for example to bootstrap an environment) the requirer must be created first: let { require, loader, module } = require('toolkit/loader'); let loader = loader(options); let requirer = module(require
rid, requireruri); let require = require(loader, requirer); let boostrap = require(bootstrapid); built-in modules each loader instance exposes the following built-in pseudo modules in addition to those passed via modules: chrome this pseudo module exposes everything that is typically available for js contexts with system principals under the components global.
...in such cases you can create a requirer module instance and a version of require exposed to it with this function: let requirer = module(require
rid, requireruri); let require = require(loader, requirer); let boostrap = require(bootstrapid); resolveuri() this function is used by the loader to resolve module uri from an id using a mapping array generated from the loader's paths option.
..., 'resource://gre/modules/commonjs/sdk/' ], [ './', 'resource://my-addon/' ], [ '', 'resource:///modules/' ] ]; resolveuri('./main', mapping); // => resource://my-addon/main.js resolveuri('devtools/gcli', mapping); // => resource:///modules/devtools/gcli.js resolveuri('sdk/core/promise', mapping); // => resource://gre/modules/commonjs/sdk/core/promise.js over
ride() this function is used to create a fresh object that contains own properties of two arguments it takes.
...And 2 more matches
StringView - Archive of obsolete content
*/ nstartidx = 0; var nchrcode; for (nch
ridx = 0; nch
ridx < ncharstart; nch
ridx++) { nchrcode = fgetinptchrcode(vsource, nstartidx); nstartidx += fgetinptchrsize(nchrcode); } awhole = new ftaview(noutptlen); /* transcription of the source...
...*/ noutptlen = 0; var nchrcode; for (var nch
ridx = 0, ninptidx = 0; nch
ridx < ncharend; ninptidx += fgetinptchrsize(nchrcode)) { nchrcode = fgetinptchrcode(vsource, ninptidx); if (nch
ridx === ncharstart) { nstartidx = ninptidx; } if (++nch
ridx > ncharstart) { noutptlen += fgetoutptchrsize(nchrcode); } } awhole = new ftaview(noutptlen); /* transcription...
...*/ for (var noutptidx = 0, nch
ridx = 0; noutptidx < noutptlen; nch
ridx++) { noutptidx = fputoutptcode(awhole, vsource.charcodeat(nch
ridx), noutptidx); } break conversionswitch; case 6: /* domstring to utf-32 */ awhole = new ftaview(noutptlen); /* transcription...
...And 2 more matches
Custom XUL Elements with XBL - Archive of obsolete content
all you need is to use the extends attribute of the binding element: <binding id="manager" extends="chrome://xulschoolhello/content/person.xml#person"> this gives you an exact copy of the "person" binding that you can over
ride as you please.
...sadly, you can't over
ride only some part of the content.
... if you want to over
ride it, you have to over
ride all of it.
...And 2 more matches
CSS3 - Archive of obsolete content
it brings a lot of long-awaited novelties, like rounded corners, shadows, gradients, transitions or animations, as well as new layouts like multi-columns, flexible box or g
rid layouts.
... the choice of language-specific glyphs via the css font-language-over
ride property.
... the ability to over
ride the resolution and orientation of an external image using the css image-resolution and image-orientation properties.
...And 2 more matches
Binding Implementations - Archive of obsolete content
because bindings extend dom elements, they can over
ride any built-in methods or properties on the dom element.
... for example, a binding could over
ride the setattribute method on element or the retrieval of the value property for an htmlinputelement.
... for example, given a binding with an implementation colorpickerg
rid that derives from an implementation colorpicker where the two implementations both specify the setcolor method, a caller could invoke colorpicker's method with the following syntax: ...
...And 2 more matches
Template Logging - Archive of obsolete content
being active means that the result is not being over
ridden by an earlier query.
...this is because the result is also supplied by the first query which over
rides it.
...new inactive result for query 2 (over
ridden by query 1) a new data result has been added for query 2, but an earlier query 1 over
rides it.
...And 2 more matches
columns - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] defines the columns of a g
rid.
... child column elements define the individual columns to appear in the g
rid.
...other elements placed inside a columns element occupy the full height of the g
rid and are placed in their corresponding positions between the columns.
...And 2 more matches
rows - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] defines the rows of a g
rid.
... child row elements define the individual rows to appear in the g
rid.
... non-row related elements placed inside a rows element occupy the full width of the g
rid and are placed in their corresponding positions between the rows.
...And 2 more matches
tooltip - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
... openpopup( anchor , position , x , y , iscontextmenu, attributesover
ride, triggerevent ) return type: no return value opens the popup relative to a specified node at a specific location.
...in this case, the position and attributesover
ride arguments are ignored.
...And 2 more matches
Images, media, and form elements - Learn web development
for example, in a flex or g
rid layout elements are stretched by default to fill the entire area.
... images will not stretch, and instead will be aligned to the start of the g
rid area or flex container.
... you can see this happening in the example below where we have a two column, two row g
rid container, which has four items in it.
...And 2 more matches
Advanced form styling - Learn web development
however, this seems to get
rid of the icon with focus too, with no apparent way to get it back.
... appearance: none; } we can use the :checked and :disabled pseudo-classes to change the appearance of our custom checkbox as its state changes: input[type="checkbox"] { position: relative; width: 1em; height: 1em; border: 1px solid gray; /* adjusts the position of the checkboxes on the text baseline */ vertical-align: -2px; /* set here so that windows' high-contrast mode can over
ride */ color: green; } input[type="checkbox"]::before { content: "✔"; position: absolute; font-size: 1.2em; right: -1px; top: -0.3em; visibility: hidden; } input[type="checkbox"]:checked::before { /* use `visibility` instead of `display` to avoid recalculating layout */ visibility: visible; } input[type="checkbox"]:disabled { border-color: black; background: #ddd; color:...
... if you are prepared to live with some differences in look and feel, you can get away with some simple styling to make sizing consistent, uniform styling of things like background-colors, and usage of appearence to get
rid of some system-level styling.
...And 2 more matches
Handling common HTML and CSS problems - Learn web development
in general, most core html and css functionality (such as basic html elements, css basic colors and text styling) works across most browsers you'll want to support; more problems are uncovered when you start wanting to use newer features such as flexbox, or html5 video/audio, or even more nascent, css g
rids or -webkit-background-clip: text.
...what happens is a browser visiting this page first applies the first background-color value; when it gets to the second background-color declaration, it will over
ride the initial value with this value if it supports rgba colors.
...if for example a browser implements both the -webkit- version and the non-prefixed version, it will first apply the -webkit- version, then over
ride it with the non-prefixed version.
...And 2 more matches
CustomizableUI.jsm
widget(awidgetid); void addpanelcloselisteners(apanel); void removepanelcloselisteners(apanel); void onwidgetdrag(awidgetid, aarea); void notifystartcustomizing(awindow); void notifyendcustomizing(awindow); void dispatchtoolboxevent(aevent, adetails, awindow); bool isareaoverflowable(aareaid); void settoolbarvisibility(atoolba
rid, aisvisible); string getplaceforitem(aelement); bool isbuiltintoolbar(atoolba
rid); methods addlistener() add a listener object that will get fired for various events regarding customization.
... you can over
ride this last behavior (and destroy the placements information in the saved state) by passing true for adestroyplacements.
... parameters atoolba
rid the id of the toolbar to remove getplacementofwidget() get the placement of a widget.
...And 2 more matches
Mozilla Port Blocking
each protocol's handler can over
ride this blocking for itself in order to enable the required access for that protocol.
...for details on which ports are blocked and how to over
ride the blocking see below.
...enabling ports user_pref("network.security.ports.banned.over
ride, "port1,port2"); disabling ports user_pref("network.security.ports.banned", "port3,port4"); blocked ports ports blocked by default in mozilla: port service 1 tcpmux 7 echo 9 discard 11 systat 13 daytime 15 netstat 17 qotd 19 chargen 20 ftp data 21 ftp control ...
...And 2 more matches
IAccessibleApplication
1.0 66 introduced gecko 1.9 inherits from: iunknown last changed in gecko 1.9 (firefox 3) this interface provides the at with the information it needs to differentiate this application from other applications, from other versions of this application, or from other versions of this application running on different versions of an accessibility b
ridge or accessibility toolkit.
...toolkitname() returns the toolkit/b
ridge name.
... [propget] hresult toolkitname( [out] bstr name ); parameters name the toolkit/b
ridge name.
...And 2 more matches
nsIDocShell
over
ride that character set for documents for which the specified fallback or auto-detected character set is incorrect.
...setting this attribute over
rides the encoding; however, to update the dom or display of the content, you need have the data reparsed.
... over
riding the character set also sets the fallback encoding for the container frame.
...And 2 more matches
nsIProtocolHandler
methods allowport() lets a protocol over
ride blacklisted ports.
...when a uri containing this port number is encountered, this method is called to ask if the protocol handler wants to over
ride the ban.
... boolean allowport( in long port, in string scheme ); parameters port the port for which an over
ride is being requested.
...And 2 more matches
Drawing shapes with canvas - Web APIs
the g
rid before we can start drawing, we need to talk about the canvas g
rid or coordinate space.
...to the right, you see this canvas with the default g
rid overlayed.
... normally 1 unit in the g
rid corresponds to 1 pixel on the canvas.
...And 2 more matches
Accessibility documentation index - Accessibility
40 x-ms-aria-flowfrom aria, microsoft, non-standard the x-ms-aria-flowfrom property specifies the id of the previous element in an alternative reading order, allowing assistive technology to over
ride the general default of reading in document source order.
... 64 aria: g
rid role aria, html the g
rid role is for a widget that contains one or more rows of cells.
... 65 aria: g
ridcell role aria, html the g
ridcell role is used to make a cell in a g
rid or treeg
rid.
...And 2 more matches
Card - CSS: Cascading Style Sheets
recipe download this example choices made the card is laid out using css g
rid layout despite being a single dimensional layout, as it enables the use of content sizing for the g
rid tracks.
... when setting up the single column g
rid i use the following: .card { display: g
rid; g
rid-template-rows: max-content 200px 1fr; } the heading track is set to max-content, which prevents it from stretching.
... if the track does have a footer it will be auto-sized, as rows created in the implicit g
rid are auto-sized by default.
...And 2 more matches
align-items - CSS: Cascading Style Sheets
in g
rid layout, it controls the alignment of items on the block axis within their g
rid area.
... the interactive example below demonstrates some of the values for align-items using g
rid layout.
... for g
rid items, this keyword leads to a behavior similar to the one of stretch, except for boxes with an aspect ratio or an intrinsic sizes where it behaves like start.
...And 2 more matches
fit-content() - CSS: Cascading Style Sheets
the function can be used as a track size in css g
rid properties, where the maximum size is defined by max-content and the minimum size by auto, which is calculated similar to auto (i.e., minmax(auto, max-content)), except that the track size is clamped at argument if it is greater than the auto minimum.
... in g
rid properties it is relative to the inline size of the g
rid container in column tracks and to the block size of the g
rid container for row tracks.
... examples sizing g
rid columns with fit-content html <div id="container"> <div>item as wide as the content.</div> <div> item with more text in it.
...And 2 more matches
Date and time formats used in HTML - HTML: Hypertext Markup Language
there are two standard time bases, which are very close to the same, but not exactly the same: for dates after the establishment of coordinated universal time (utc) in the early 1960s, the time base is z and the offset indicates a particular time zone's offset from the time at the prime me
ridian at 0º longitude (which passes through the royal observatory at greenwich, england).
... for dates prior to utc, the time base is instead expressed in terms of ut1, which is the contemporary earth solar time at the prime me
ridian.
...otherwise, the time zone string is constructed as follows: a character indicating the sign of the offset: the plus character ("+", or u+002b) for time zones to the east of the prime me
ridian or the minus character ("-", or u+002d) for time zones to the west of the prime me
ridian.
...And 2 more matches
<input type="submit"> - HTML: Hypertext Markup Language
along the lines of "submit" or "submit query." here's an example of a submit button with a default label in your browser: <input type="submit"> additional attributes in addition to the attributes shared by all <input> elements, submit button inputs support the following attributes: attribute description formaction the url to which to submit the form's data; over
rides the form's action attribute, if any formenctype a string specifying the encoding type to use for the form data formmethod the http method (get or post) to use when submitting the form.
... if specified, the value of the formenctype attribute over
rides the owning form's action attribute.
... formmethod a string indicating the http method to use when submitting the form's data; this value over
rides any method attribute given on the owning form.
...And 2 more matches
The building blocks of responsive design - Progressive web apps (PWAs)
fluid g
rids the best place to start is with fluid measurements for our application layout — essentially, this means using a combination of percentages and ems/rems to size your containers and text, not fixed widths such as pixels.
...this is just a simple g
rid example, but you can apply this principle to more complex g
rid layouts as required.
...the video always resizes dynamically, but the screen captures taken from it do not, so upon resizing the screen it was possible to end up with a messy layout with different sized elements when using max-width: 100%, such as: media queries fluid g
rids are a great start, but you'll notice that at certain points (known as breakpoints) the layout starts to break down.
...And 2 more matches
begin - SVG: Scalable Vector Graphics
ect 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> <!-- g
rid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="105" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="105" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2="105" stroke="grey" stroke-width=".5"...
..." /> </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"> <animate attributetype="xml" attributename="width" to="25" id="third" begin="second.end" dur="2s" /> </rect> <!-- g
rid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="105" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="105" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2="105" stroke="grey" stroke-width=".5"...
... begin="startbutton.click" dur="8s" fill="freeze" /> </rect> <!-- trigger --> <rect id="startbutton" style="cursor:pointer;" x="19.5" y="62.5" rx="5" height="25" width="80" fill="#efefef" stroke="black" stroke-width="1" /> <text x="60" y="80" text-anchor="middle" style="pointer-events:none;">click me.</text> <!-- g
rid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="55" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="55" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2="55" stroke="grey" stroke-width=".5" />...
...And 2 more matches
Content Processes - Archive of obsolete content
a potential problem with the content script having access to the window object is that a malicious page could over
ride methods on the window object that it knows are being used by the add-on, in order to trick the add-on into doing something it does not expect.
... to avoid problems like this, content scripts should always see the built-in properties of the window object, even when they are over
ridden by another script.
...xray wrappers automatically wrap native objects like the window object, and only exposes their native properties, even if they have been over
ridden on the wrapped object.
... the fact that you can't over
ride the properties of the window object via a content script is sometimes inconvenient, so it is possible to circumvent this: by defining the property on window.wrappedobject, the property is defined on the underlying object, rather than the wrapper itself.
Bookmarks - Archive of obsolete content
for example, to create a new folder in the bookmarks menu: var menufolder = bmsvc.bookmarksmenufolder; // bookmarks menu folder var newfolde
rid = bmsvc.createfolder(menufolder, "folder name here", bmsvc.default_index); this code locates the bookmarks menu's folder, then creates a new folder named "folder name here" in it.
... var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var newbkmkid = bmsvc.insertbookmark(newfolde
rid, uri, bmsvc.default_index, ""); this example instantiates the nsiioservice and uses it to create an nsiuri referring to the google web site, then calls nsinavbookmarksservice.insertbookmark() to create a new bookmark to google, placing it at the end of the bookmarks folder referenced by newbkmkid.
... finding the folder containing an item if you need to know what folder contains an item (this can be especially handy after using nsinavbookmarksservice.getbookmarkidsforuri() to find bookmarks for a given uri), you can use the nsinavbookmarksservice.getfolde
ridforitem() method.
... var parentfolde
rid = bmsvc.getfolde
ridforitem(newbkmkid); observing changes to bookmarks and tags to set up an observer to listen for changes related to bookmarks, you will need to create an nsinavbookmarkobserver object and use the nsinavbookmarksservice.addobserver() and nsinavbookmarksservice.removeobserver() methods.
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
abel="horizontal2"/> </hbox> <label value="vertical layout"/> <vbox> <button label="vertical1"/> <button label="vertical2"/> </vbox> <label value="mixed"/> <hbox> <button label="mixed1"/> <vbox> <button label="mixed2"/> <button label="mixed3"/> </vbox> <button label="mixed4"/> </hbox> listing 3: horizontal and vertical boxes figure 1: output of listing 3 there is also a g
rid element, which can be used for layouts similar to those achieved using the html table element, a stack element for layering other elements, and so on.
... g
rid in the same way that the table element is used to lay out content in html, you can use the g
rid element in xul.
... the rowspan and colspan attributes available in html tables are not available in xul g
rids.
... <g
rid> <columns> <column/> <column flex="1"/> </columns> <rows> <row align="center"> <label value="user id"/> <textbox/> </row> <row align="center"> <label value="name"/> <textbox/> </row> </rows> </g
rid> listing 20: layout using the g
rid figure 16: output from listing 20 stack use the stack element to overlap multiple widgets.
An Interview With Douglas Bowman of Wired News - Archive of obsolete content
the breakdown: 1 master screen media file which imports 4 files: a base file (bulk of formatting) a file for finance/table formatting color file (over
ride colors and background images for specific color scheme) temp file (used for styles associated with temporary features and ad-related pages) 1 print media file 1 aural media file 3 master alternate style sheets which import 1 file each the 3 imported files set alternate font sizes (small, large, larger) how much did the size of a typical wired news page shrink?
...i used to p
ride myself in knowing how to reproduce any interface design down to a pixel-perfect level.
...when you get to that point, the amount of markup you have to sift through to find anything becomes
ridiculous.
...by doing this, we don't have to over
ride any of the screen styles, giving us a blank slate to start with for print styles.
XUL user interfaces - Archive of obsolete content
ext/css" href="style7.css"?> <!doctype window> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" title="css getting started - xul demonstration" onload="init();"> <script type="application/javascript" src="script7.js"/> <label class="head-1" value="xul demonstration"/> <vbox> <groupbox class="demo-group"> <caption label="day of week calculator"/> <g
rid> <columns> <column/> <column/> </columns> <rows> <row> <label class="text-prompt" value="date:" accesskey="d" control="date-text"/> <textbox id="date-text" type="timed" timeout="750" oncommand="refresh();"/> </row> <row> <label value="day:"/> <hbox id="day-box"> ...
... <label class="day" value="sunday" disabled="true"/> <label class="day" value="monday" disabled="true"/> <label class="day" value="tuesday" disabled="true"/> <label class="day" value="wednesday" disabled="true"/> <label class="day" value="thursday" disabled="true"/> <label class="day" value="f
riday" disabled="true"/> <label class="day" value="saturday" disabled="true"/> </hbox> </row> </rows> </g
rid> <hbox class="buttons"> <button id="clear" label="clear" accesskey="c" oncommand="cleardate();"/> <button id="today" label="today" accesskey="t" oncommand="settoday();"/> </hbox> </groupbox> <statusbar> <statusbarpanel id="status"/> </sta...
...copy and paste the content from here, making sure that you scroll to get all of it: /*** xul demonstration ***/ window { -moz-box-align: start; background-color: -moz-dialog; font: -moz-dialog; padding: 2em; } .head-1 { font-weight: bold; font-size: 200%; padding-left: 5px; } /* the group box */ .demo-group { padding: 1em; } .demo-group g
rid { margin-bottom: 1em; } .demo-group column { margin-right: .5em; } .demo-group row { margin-bottom: .5em; } .demo-group .buttons { -moz-box-pack: end; } /* the day-of-week labels */ .day { margin-left: 1em; } .day[disabled] { color: #777; } .day:first-child { margin-left: 4px; } /* the left column labels */ .text-prompt { padding-top: .25em; } /* the dat...
...it looks something like this: xul demonstration day of week calculator date: 6/27/2005 day: sunday monday tuesday wednesday thurdsay f
riday saturday clear today june 27, 2005 notes about this demonstration: the xul document links the stylesheet as usual, and it also links the script.
openPopup - Archive of obsolete content
« xul reference home openpopup( anchor , position , x , y , iscontextmenu, attributesover
ride, triggerevent ) return type: no return value opens the popup relative to a specified node at a specific location.
...in this case, the position and attributesover
ride arguments are ignored.
... attributesover
ride if the attributesover
ride argument is true, the position attribute on the popup node over
rides the position value argument.
... if attributesover
ride is false, the attribute is only used if the position argument is empty.
XUL element attributes - Archive of obsolete content
when multiple datasources are used, one may over
ride an assertion from another.
...when multiple datasources are used, one may over
ride an assertion from another.
...this attribute over
rides the insertbefore attribute.
...child elements may over
ride this if they specify mousethrough="never".
column - Archive of obsolete content
each child of the column element is placed in each successive cell of the g
rid.
... it is common to use columns only to define width and flexibility for the g
rid column and not place elements directly inside the column.
... example see g
rid for an example.
...es(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements g
rid, columns, rows, row ...
row - Archive of obsolete content
each child of the row element is placed in each successive cell of the g
rid.
... the row with the most child elements determines the number of columns in each row, which may be smaller or larger than the number of column elements defined in the g
rid.
... example see g
rid for an example.
...es(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements g
rid, columns, column, rows.
Flexbox - Learn web development
we'd advise against using the longhand flex properties unless you really have to (for example, to over
ride something previously set).
... you can over
ride the align-items behavior for individual flex items by applying the align-self property to them.
...next we'll have a look at another important aspect of css layouts — css g
rids.
... previous overview: css layout next in this module introduction to css layout normal flow flexbox g
rid floats positioning multiple-column layout responsive design beginner's guide to media queries legacy layout methods supporting older browsers fundamental layout comprehension assessment ...
Multiple-column layout - Learn web development
cum sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus.</p> </div> .container { column-count: 3; } change your css to use column-width as follows: .container { column-width: 200px; } the browser will now give you as many columns as it can of the size that you specify; any remaining space is then shared between the existing columns.
...cum sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus.</p> </div> .container { column-width: 200px; } styling the columns the columns created by multicol cannot be styled individually.
...cum sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus.</p> </div> something to take note of is that the rule does not take up any width of its own.
...cum sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus.</p> </div> columns and fragmentation the content of a multi-column layout is fragmented.
Practical positioning examples - Learn web development
general setup to begin with, add the following between your opening and closing <style> tags: html { font-family: sans-serif; } * { box-sizing: border-box; } body { margin: 0; } this is just some general setup to set a sans-serif font on our page, use the border-box box-sizing model, and get
rid of the default <body> margin.
... next, we'll style the horizontal tabs — the list items are all floated left to make them sit in a line together, their list-style-type is set to none to get
rid of the bullets, and their width is set to 150px so they will comfortably fit across the info-box.
...change your .info-box rule to get
rid of margin: 0 auto; (we no longer want the info-box centered), add position: fixed;, and stick it to the top of the browser viewport.
... in this module introduction to css layout normal flow flexbox g
rid floats positioning multiple-column layout responsive design beginner's guide to media queries legacy layout methods supporting older browsers fundamental layout comprehension assessment ...
Chrome registration
over
ride in some cases an extension or embedder may wish to over
ride a chrome file provided by the application or xulrunner.
... in order to allow for this, the chrome registration manifest allows for "over
ride" instructions: over
ride chrome://package/type/original-uri.whatever new-resolved-uri [flags] note: over
rides are not recursive (so over
riding chrome://foo/content/bar/ with file:///home/john/blah/ will not usually do what you want or expect it to do).
... also, the path inside over
ridden files is relative to the over
ridden path, not the original one (this can be annoying and/or useful in css files, for example).
...rlay chrome://communicator/content/pref/preftree.xul chrome://pippki/content/prefoverlay.xul content pippki jar:pippki.jar!/content/pippki/ locale pippki en-us jar:en-us.jar!/locale/pippki/ content global-platform jar:toolkit.jar!/content/global-platform/ platform skin global classic/1.0 jar:classic.jar!/skin/classic/global/ over
ride chrome://global/content/neterror.xhtml jar:embedder.jar!/global/content/neterror.xhtml content inspector jar:inspector.jar!/content/inspector/ instructions supported in bootstrapped add-ons the following instructions are supported in bootstrapped extensions: manifest content locale skin over
ride debugging a chrome manifest file the chrome list extension shows all...
PopupNotifications.jsm
method overview void locationchange(); notification getnotification(id, browser); void remove(notification); notification show(browser, id, message, ancho
rid, mainaction, secondaryactions, options); properties attribute type description ispanelopen boolean returns true if the notification panel is currently visible, false if it is not.
... notification show( browser, id, message, ancho
rid, mainaction, secondaryactions, options ); parameters browser the xul <xul:browser> element with which the notification is associated.
... ancho
rid the id of the element that should serve as the anchor for the notification popup (that is, the element the arrow on the popup should point to).
...this ancho
rid must point to an element contained inside the popupnotification object's icon box (for firefox windows, the global popupnotifications object uses the notification-popup-box element).
Power profiling overview
power estimates the next best measurements come from recent (sandy b
ridge and later) intel processors that implement the rapl (running average power limit) interface that provides msrs containing energy consumption estimates for up to four power planes or domains of a machine, as seen in the diagram above.
... hyb
rid proxy measurements these are combinations of proxy measurements.
... the combinations are semi-arbitrary, they amplify the unreliability of proxy measurements, and unlike non-hyb
rid proxy measurements, they don't have a clear physical meaning.
... the most notable example of a hyb
rid proxy measurement is the "energy impact" used by os x's activity monitor.
Manipulating bookmarks using Places
for example, to create a new folder in the bookmarks menu: var menufolder = bmsvc.bookmarksmenufolder; // bookmarks menu folder var newfolde
rid = bmsvc.createfolder(menufolder, "folder name here", bmsvc.default_index); this code locates the bookmarks menu's folder, then creates a new folder named "folder name here" in it.
... var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var newbkmkid = bmsvc.insertbookmark(newfolde
rid, uri, bmsvc.default_index, ""); this example instantiates the nsiioservice and uses it to create an nsiuri referring to the google web site, then calls nsinavbookmarksservice.insertbookmark() to create a new bookmark to google, placing it at the end of the bookmarks folder referenced by newbkmkid.
... finding the folder containing an item if you need to know what folder contains an item (this can be especially handy after using nsinavbookmarksservice.getbookmarkidsforuri() to find bookmarks for a given uri), you can use the nsinavbookmarksservice.getfolde
ridforitem() method.
... var parentfolde
rid = bmsvc.getfolde
ridforitem(newbkmkid); observing changes to bookmarks and tags to set up an observer to listen for changes related to bookmarks, you will need to create an nsinavbookmarkobserver object and use the nsinavbookmarksservice.addobserver() and nsinavbookmarksservice.removeobserver() methods.
Language bindings
an xpcom language binding is a b
ridge 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.
...in order to allow any other language to use the xpcom api, a b
ridging layer is required.
... the following b
ridging layers are currently available: components objectthe components object is the object through which xpconnect functionality is reflected into javascript.
...you can find additional information using the resource links below.xpconnectxpconnect is a b
ridge between javascript and xpcom.
nsIAccessibleRole
it is used for html:table, role="g
rid".
... role_buttondropdowng
rid 58 represents a button that drops down a g
rid.
... role_g
rid_cell 121 represents a cell within a g
rid.
... it is used for role="g
ridcell".
nsIControllers
to create an instance, use: var controllers = components.classes["@mozilla.org/xul/xul-controllers;1"] .createinstance(components.interfaces.nsicontrollers); method overview void appendcontroller(in nsicontroller controller); nsicontroller getcontrollerat(in unsigned long index); nsicontroller getcontrollerbyid(in unsigned long controlle
rid); unsigned long getcontrollercount(); nsicontroller getcontrollerforcommand(in string command); unsigned long getcontrolle
rid(in nsicontroller controller); void insertcontrollerat(in unsigned long index, in nsicontroller controller); void removecontroller(in nsicontroller controller); nsicontroller removecontrollerat(in unsigned long index); attributes attribute type description...
...nsicontroller getcontrollerbyid( in unsigned long controlle
rid ); parameters controlle
rid the id (insertion order) of a controller.
...getcontrolle
rid() returns the order of insertion of a controller.
... unsigned long getcontrolle
rid( in nsicontroller controller ); parameters controller the controller for which you want to retrieve the insertion index.
WebIDL bindings
implement a wrapobject over
ride on mozilla::dom::myinterface that just calls through to mozilla::dom::myinterface_binding::wrap.
...this should only be used for legacy code that has nsresult everywhere; we would like to get
rid of this operator at some point.
... however, with the changes in bug 1172785 you can route static methods to a c++ implementation on another object using a staticclassover
ride annotation.
... [jsimplementation="@mozilla.org/dom/foo;1"] interface foo { [staticclassover
ride="mozilla::dom::otherclass"] static promise<void> dosomething(); }; rather than calling into a method on the js implementation; calling foo.dosomething() will result in calling mozilla::dom::otherclass::dosomething().
Pinch zoom gestures - Web APIs
log("pointermove", ev); ev.target.style.border = "dashed"; // find this event in the cache and update its record with this event for (var i = 0; i < evcache.length; i++) { if (ev.pointe
rid == evcache[i].pointe
rid) { evcache[i] = ev; break; } } // if two pointers are down, check for pinch gestures if (evcache.length == 2) { // calculate the distance between the two pointers var curdiff = math.abs(evcache[0].clientx - evcache[1].clientx); if (prevdiff > 0) { if (curdiff > prevdiff) { // the distance between the two pointers has increased l...
... to prevent the browser's default touch behavior from over
riding this application's pointer handling, the touch-action property is applied to the <body> element.
... function remove_event(ev) { // remove this event from the target's cache for (var i = 0; i < evcache.length; i++) { if (evcache[i].pointe
rid == ev.pointe
rid) { evcache.splice(i, 1); break; } } } event logging these functions are used to send event activity to the application's window (to support debugging and learning about the event flow).
...false : true; } function log(prefix, ev) { if (!logevents) return; var o = document.getelementsbytagname('output')[0]; var s = prefix + ": pointe
rid = " + ev.pointe
rid + " ; pointertype = " + ev.pointertype + " ; isprimary = " + ev.isprimary; o.innerhtml += s + " "; } function clearlog(event) { var o = document.getelementsbytagname('output')[0]; o.innerhtml = ""; } ...
ARIA: table role - Accessibility
if a table maintains a selection state, has two-dimensional navigation, or allows the user to rearrange cell order use g
rid or treeg
rid instead.
... to create an interactive widget that has a tabular structure, use the g
rid pattern instead.
... if the interaction provides for the selection state of individual cells, if left to right and top to bottom navigation is provided, or if the user interface allows the rearranging of cell order or otherwise changing individual cell order such as through drag and drop, use g
rid or treeg
rid instead.
...a relevant use case for the aria table role is when css's display property over
rides the native semantics of a table, such as by display: g
rid.
Aligning Items in a Flex Container - CSS: Cascading Style Sheets
the box alignment module also includes other methods of creating space between items, such as the column-gap and row-gap feature as seen in css g
rid layout.
... my suggestion when exploring flexbox alignment in depth is to do so alongside looking at alignment in g
rid layout.
...you can see how these properties behave when working with a g
rid in the mdn article box alignment in g
rid layout, and i have also compared how alignment works in these specifications in my box alignment cheatsheet.
... see also box alignment box alignment in flexbox box alignment in g
rid layout ...
Typical use cases of Flexbox - CSS: Cascading Style Sheets
you can read more about the difference between flexbox and css g
rid layout in relationship of flexbox to other layout methods, where we discuss how flexbox fits into the overall picture of css layout.
... in reality we also often use flexbox for jobs that might be better done by g
rid layout, as a fallback for g
rid, and also in order to get alignment capabilities.
... card layout pushing footer down whether you use flexbox or css g
rid to lay out a list of card components, these layout methods only work on direct children of the flex or g
rid component.
... this means that if you have variable amounts of content, the card will stretch to the height of the g
rid area or flex container.
Basic concepts of Logical Properties and Values - CSS: Cascading Style Sheets
i have a layout using css g
rid, the g
rid container has a width applied and i am using the align-self and justify-self properties to align the items.
...the g
rid doesn't look the same however, as the width assigned to the container is a horizontal measure, a measure tied to the physical and not the logical or flow relative running of the text.
...change writing-mode from vertical-rl to horizontal-tb on .g
rid to see how the different properties change the layout.
...as we saw above, newer css layout methods such as flexbox and g
rid layout use the concepts of block and inline rather than right and left/top and bottom when aligning items.
Column layouts - CSS: Cascading Style Sheets
whether you use g
rid, flexbox or multi-column layout will depend on what you are trying to achieve, and in this recipe we explore these options.
... lining items up in rows and columns — g
rid layout if what you want is a layout where items line up in rows and columns then you should choose css g
rid layout.
... g
rid layout works on the direct children of the g
rid container in a similar way to the manner in which flexbox works on the direct children of the flex container, however with css g
rid you can line your items up in rows and columns — it is described as two-dimensional.
... download this example use g
rid: for multiple rows or columns of items.
align-content - CSS: Cascading Style Sheets
the css align-content property sets the distribution of space between and around content items along a flexbox's cross-axis or a g
rid's block axis.
... the interactive example below use g
rid layout to demonstrate some of the values of this property.
...baseline<content-distribution> = space-between | space-around | space-evenly | stretch<overflow-position> = unsafe | safe<content-position> = center | start | end | flex-start | flex-end examples css #container { height:200px; width: 240px; align-content: center; /* can be changed in the live sample */ background-color: #8c8c8c; } .flex { display: flex; flex-wrap: wrap; } .g
rid { display: g
rid; g
rid-template-columns: repeat(auto-fill, 50px); } div > div { box-sizing: border-box; border: 2px solid #8c8c8c; width: 50px; display: flex; align-items: center; justify-content: center; } #item1 { background-color: #8cffa0; min-height: 30px; } #item2 { background-color: #a0c8ff; min-height: 50px; } #item3 { background-color: #ffa08c; min-height: 4...
... font-size: 16px; } .row { margin-top: 10px; } html <div id="container" class="flex"> <div id="item1">1</div> <div id="item2">2</div> <div id="item3">3</div> <div id="item4">4</div> <div id="item5">5</div> <div id="item6">6</div> </div> <div class="row"> <label for="display">display: </label> <select id="display"> <option value="flex">flex</option> <option value="g
rid">g
rid</option> </select> </div> <div class="row"> <label for="values">align-content: </label> <select id="values"> <option value="normal">normal</option> <option value="stretch">stretch</option> <option value="flex-start">flex-start</option> <option value="flex-end">flex-end</option> <option value="center" selected>center</option> <option value="space-between">space...
align-self - CSS: Cascading Style Sheets
the align-self css property over
rides a g
rid or flex item's align-items value.
... in g
rid, it aligns the item inside the g
rid area.
... for g
rid items, this keyword leads to a behavior similar to the one of stretch, except for boxes with an aspect ratio or an intrinsic sizes where it behaves like start.
... formal definition initial valueautoapplies toflex items, g
rid items, and absolutely-positioned boxesinheritednocomputed valueauto computes to itself on absolutely-positioned elements, and to the computed value of align-items on the parent (minus any legacy keywords) on all other boxes, or start if the box has no parent.
<flex> - CSS: Cascading Style Sheets
the <flex> css data type denotes a flexible length within a g
rid container.
... it is used in g
rid-template-columns, g
rid-template-rows and other related properties.
...the fr unit represents a fraction of the leftover space in the g
rid container.
... examples 1fr /* using an integer value */ 2.5fr /* using a float value */ specifications specification status comment css g
rid layoutthe definition of '<flex>' in that specification.
place-items - CSS: Cascading Style Sheets
the align-items and justify-items properties) in a relevant layout system such as g
rid or flexbox.
... in g
rid layouts, this keyword leads to a behavior similar to the one of stretch, except for boxes with an aspect ratio or an intrinsic sizes where it behaves like start.
...{ font-size: 16px; } .row { margin-top: 10px; } html <div id="container" class="flex"> <div id="item1">1</div> <div id="item2">2</div> <div id="item3">3</div> <div id="item4">4</div> <div id="item5">5</div> <div id="item6">6</div> </div> <div class="row"> <label for="display">display: </label> <select id="display"> <option value="flex">flex</option> <option value="g
rid">g
rid</option> </select> </div> <div class="row"> <label for="values">place-items: </label> <select id="values"> <option value="start">start</option> <option value="center">center</option> <option value="end">end</option> <option value="left">left</option> <option value="right">right</option> <option value="auto center">auto center</option> <option value="normal...
..., function (evt) { container.style.placeitems = evt.target.value; }); display.addeventlistener('change', function (evt) { container.classname = evt.target.value; }); css #container { height:200px; width: 240px; place-items: center; /* you can change this value by selecting another option in the list */ background-color: #8c8c8c; } .flex { display: flex; flex-wrap: wrap; } .g
rid { display: g
rid; g
rid-template-columns: repeat(auto-fill, 50px); } result specifications specification status comment css box alignment module level 3the definition of 'place-items' in that specification.
Block formatting context - Developer guides
flex items (direct children of the element with display: flex or inline-flex) if they are neither flex nor g
rid nor table containers themselves.
... g
rid items (direct children of the element with display: g
rid or inline-g
rid) if they are neither flex nor g
rid nor table containers themselves.
... note: a flex/g
rid container(display: flex/g
rid/inline-flex/inline-g
rid) establishes a new flex/g
rid formatting context, which is similar to block formatting context except layout.
... there's no floating children avaliable inside a flex/g
rid container, but exclude external floats and suppress margin collapsing still works.
The Unicode Bidirectional Text Algorithm - Developer guides
fundamentals (base direction, character types, etc) the algorithm character level directionality directional runs (what they are, how base direction applies) handling neutral characters over
riding the algorithm content about using html and css to over
ride the default behavior of the algorithm; include info about isolating ranges etc.
... ove
riding bidi using unicode control characters unicode provides a number of special control characters that make it possible to control directionality of ranges of text.
... there are two sets of control characters; one set opens the over
ride, and another restores the original directionality.
...dir="ltr" sets the base direction to ltr but allows the embedded text to interact with the surrounding content; this risks the effect spilling over to the outer content right-to-left embedding (rle) u+202b ‫ dir="rtl" sets the base direction to rtl, but lets the embedded text interact with the surrounding content, risking spillover effects left-to-right over
ride (lro) u+202d ‭ <bdo dir="ltr"> over
rides the bidi algorithm, displaying the characters in memory order, from left to right right-to-left over
ride (rlo) u+202e ‮ <bdo dir="rtl"> over
rides the bidi algorithm and displays the embedded characters in reverse memory order, from right to left closing unicode bidi algorithm control characters ...
Browser detection using the user agent - HTTP
chromium/xyz safari safari/xyz chrome/xyz or chromium/xyz safari gives two version numbers: one technical in the safari/xyz token, and one user-friendly in a version/xyz token opera opr/xyz [1] opera/xyz [1] opera 15+ (blink-based engine) [2] opera 12- (presto-based engine) internet explorer ; msie xyz; [1] t
rident/7.0; .*rv:xyz [2] [1] internet explorer 10- [2] internet explorer 11 of course, there is absolutely no guarantee that another browser will not hijack some of these things (like chrome hijacked the safari string in the past).
... there are five major rendering engines: t
rident, gecko, presto, blink, and webkit.
... presto opera/xyz note: presto is no longer used in opera browser builds >= version 15 (see 'blink') t
rident t
rident/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.
... mozilla/5.0 (compatible; msie 9.0; windows phone os 7.5; t
rident/5.0; iemobile/9.0) edge on windows 10 mobile mobile/xyz & edge/ tokens outside the comment.
Date - JavaScript
(this time is historically known as greenwich mean time, as utc lies along the me
ridian that includes london—and nearby greenwich—in the united kingdom.) the user's device provides the local time.
...over
rides the object.prototype.tolocalestring() method.
...over
rides the object.prototype.tostring() method.
...over
rides the object.prototype.valueof() method.
<use> - SVG: Scalable Vector Graphics
most attributes (except for x, y, width, height and (xlink:)href) do not over
ride those set in the ancestor.
... most attributes on use do not over
ride those already on the element referenced by use.
... (this differs from how css style attributes over
ride those set 'earlier' in the cascade).
... only the attributes x, y, width, height and href on the use element will over
ride those set on the referenced element.
platform/xpcom - Archive of obsolete content
you can over
ride this behavior using the register and unregister options to the factory or service constructor: var xpcom = require('sdk/platform/xpcom'); var factory = xpcom.factory({ contract: contractid, component: helloworld, register: false, unregister: false, }); if you disable automatic registration in this way, you can use the register() function to register factories and services: xpcom.regi...
... by default, factories and services are registered automatically, so you should only call register() if you have over
ridden the default behavior.
...to over
ride this behavior, you can pass register and/or unregister options, set to false.
Toolbar - Archive of obsolete content
* * @param {string} toolba
rid the id of the toolbar to install to.
... * @param {string} afte
rid the id of the element to insert after.
... @optional */ function installbutton(toolba
rid, id, afte
rid) { if (!document.getelementbyid(id)) { var toolbar = document.getelementbyid(toolba
rid); // if no afte
rid is given, then append the item to the toolbar var before = null; if (afte
rid) { let elem = document.getelementbyid(afte
rid); if (elem && elem.parentnode == toolbar) before = elem.nextelementsibling; } toolbar.insertitem(id, before); toolbar.setattribute("currentset", toolbar.currentset); document.persist(toolbar.id, "currentset"); if (toolba
rid == "addon-bar") toolbar.collapsed = false; } } if (firstrun) { installbutton("nav-bar", "my-extension-navbar-button"); // the "addon-bar" is avai...
Index of archived content - Archive of obsolete content
legacy extensions for firefox for android api accounts.jsm browserapp addtab closetab deck getbrowserfordocument getbrowserforwindow gettabforbrowser gettabfo
rid gettabforwindow loaduri quit selecttab tabs helperapps.jsm home.jsm banner panels homeprovider.jsm home...
... creating a skin for mozilla faq getting started in-depth links contents.rdf toolbarbindings.xml creating a skin for seamonkey 2.x getting started chrome.manifest install.rdf creating a hyb
rid cd creating regular expressions for a microsummary generator dtrace dehydra dehydra frequently asked questions dehydra function reference dehydra object reference installing dehydra using dehydra developing new mozilla features devmo 1.0 laun...
...oconfig monitoring wifi access points no proxy for configuration notes on html reflow same-origin policy for file: uris source navigator source code directories overview using xml data islands in mozilla using content preferences visualizing an audio spectrum working with bfcache cert_over
ride.txt mozilla release faq newsgroup summaries format mozilla.dev.apps.firefox-2006-09-29 mozilla.dev.apps.firefox-2006-10-06 mozilla-dev-accessibility 2006-10-06 2006-11-10 2006-11-22 mozilla-dev-apps...
datepicker.type - Archive of obsolete content
g
rid a datepicker that displays a calendar g
rid where one month is shown at a time.
... popup a datepicker with three entry fields but an additional dropdown button, which, when pressed, will display a popup calendar g
rid.
... normal type g
rid type popup type ...
Positioning - Archive of obsolete content
when both are used, the value supplied to openpopup over
rides the attribute.
... however, if the attributesover
ride argument to openpopup (the last argument, false in the example above) was true, the attribute would over
ride the value supplied to openpopup.
...as with the position attribute, the arguments to the openpopup method over
ride unless the last argument is set to true.
Anonymous Content - Archive of obsolete content
over
ride the bound element the anonymous content is created automatically whenever a binding is attached to an element.
... if you place child elements inside the xul, they will over
ride the elements provided by the binding.
... for example, take this xul fragment, assuming it is bound to the scrollbar xbl earlier: <scrollbar/> <scrollbar> <button label="over
ridden"/> </scrollbar> the first scroll bar, because it has no content of its own, will have its content generated from a binding definition declared in an xbl file.
Commands - Archive of obsolete content
you could even over
ride the default handling of a command with careful placement of the controller.
... over
ride default controller we attach this controller to the listbox by calling the appendcontroller method of the listbox's controllers.
...this might be useful to over
ride commands.
Accessibility/XUL Accessibility Reference - Archive of obsolete content
column see g
rid columns see g
rid command see keyboard shortcut tutorial commandset see keyboard shortcut tutorial deck only the currently selected deck layer can be focused.
... g
rid although text in the g
rid can be read, jaws does not recognize g
rids as tables for table reading mode.
... <progressmeter mode="determined" value="10" /> as progress advances, jaws indicates percentage to the user radio see radiogroup radiogroup <label value='<!--radio group-->' control='radioid' /> <radiogroup id='radioid'> <radio selected="true" label='<!--option1-->' /> <radio label='<!--option2-->' /> </radiogroup> row see g
rid rows see g
rid stack all elements can be focused, even if not visible due to being hidden under something else statusbar <statusbar> <statusbarpanel label="<!--status bar-->" flex="1"/> </statusbar> read using jaws with insert+page down statusbarpanel see statusbar tab see tabbox tabbox ...
How to enable locale switching in a XULRunner application - Archive of obsolete content
normally the application locale is inherited from the os environment of the host system, however there are situations when you might want to give users the option to over
ride the default setting and choose a different locale.
...defaults/preferences/prefs.js /* don't inherit os locale */pref("intl.locale.matchos", "false");/* choose own fallback locale; later it can be over
ridden by the user */pref("general.useragent.locale", "en-gb"); note that some distributions of xulrunner or firefox don't honour the "intl.locale.matchos" setting, so in those cases you won't be able to over
ride the os locale [debian iceweasel bug #417961].
...it saves the new locale to the user application preferences (thereby over
riding the default prefs.js above) and then asks xulrunner to restart.
2006-10-20 - Archive of obsolete content
in jan vávra's case he is modifying the thunderbird installer so he needs to modify "mail/installer/windows/packages-static" announcements decommissioning sparky on f
riday on october 17th j.
... discussions sparky and comet going away on f
riday on october 19th j.
...paul reed stated that he is also going to decommission comet, the machine that performed seamonkey trunk gtk1 builds, this f
riday.
Theme changes in Firefox 4 - Archive of obsolete content
the theme can now over
ride the value by setting a special css property on the toolbar.
... default values of the iconsize attribute on browser toolbars if the theme doesn't over
ride the value of the iconsize attribute, the following defaults are used: toolbar element id default iconsize value menu bar #toolbar-menubar small navigation bar #nav-bar small or large depending on user preference.
... over
riding the default values themes can over
ride the value of the iconsize attribute on each toolbar by specifying a special value for the counter-reset css property on the toolbar itself.
Old Proxy API - Archive of obsolete content
like getownpropertynames, but should also return non-over
ridden inherited properties.
... function(name) { return !!this.getpropertydescriptor(name); } object.prototype.hasownproperty.call(proxy, name) hasown: function(name) -> boolean function(name) { return !!this.getownpropertydescriptor(name); } proxy.name (in the context of "getting the value") receiver.name (if receiver inherits from a proxy and does not over
ride name) get: function(receiver, name) -> any function(receiver, name) { var desc = this.getpropertydescriptor(name); if (desc === undefined) { return undefined; } if ('value' in desc) { return desc.value; } else { if (desc.get === undefined) { return undefined; } return desc.get.call(receiver); } } receiver is either the proxy or an obj...
... proxy.name = val (in the context of "setting the value") receiver.name = val (if receiver inherits from a proxy and does not over
ride name) set: function(receiver, name, val) -> boolean function(receiver, name, val) { var desc = this.getownpropertydescriptor(name); if (desc) { if ('writable' in desc) { if (desc.writable) { desc.value = val; this.defineproperty(name, desc); return true; } else { return false; } } else { // accessor if (desc.set) { desc.set.call(receiver, val); return true; } else { return false; } } } desc = this.getpropertydescriptor(name); if (desc) { if ('writable' in desc) { if (desc...
Explaining basic 3D theory - Game development
a pixel: a point on the screen arranged in the 2d g
rid, which holds an rgba color.
... those fragments — which are 3d projections of the 2d pixels — are aligned to the pixel g
rid, so eventually they can be printed out as pixels on a 2d screen display during the output merging stage.
... output merging during the output manipulation stage all the fragments of the primitives from the 3d space are transformed into a 2d g
rid of pixels that are then printed out on the screen display.
CSS and JavaScript accessibility best practices - Learn web development
something should definitely happen when states change, and you shouldn't get
rid of the pointer cursor or the outline — both are very important accessibility aids for those using keyboard controls.
...you could style form focus/hover states to make this behaviour more consistent across browsers or fit in better with your page design, but don't get
rid of it altogether — again, people rely on these clues to help them know what is going on.
... accept that users can over
ride styles accept that users can over
ride your styles it is possible for users to over
ride your styles with their own custom styles, for example: see sarah maddox's how to use a custom style sheet (css) with firefox for a useful guide covering how to do this manually in firefox, and how to use a custom style sheet (css) with internet explorer by adrian gordon for the equivalent ie instructions.
Organizing your CSS - Learn web development
.comment { display: g
rid; g
rid-template-columns: 1fr 3fr; } .comment img { border: 1px solid grey; } .comment .content { font-size: .8rem; } .list-item { display: g
rid; g
rid-template-columns: 1fr 3fr; border-bottom: 1px solid grey; } .list-item .content { font-size: .8rem; } in oocss, you would create one pattern called media that would have all of the common css for both patterns — a base class for ...
... .media { display: g
rid; g
rid-template-columns: 1fr 3fr; } .media .content { font-size: .8rem; } .comment img { border: 1px solid grey; } .list-item { border-bottom: 1px solid grey; } in your html the comment would need both the media and comment classes applied: <div class="media comment"> <img /> <div class="content"></div> </div> the list-item would have media and list-item applied: <ul> <li class="media list-item"> <img /> <div class="content"></div> </li> </ul> the work that nicole sullivan did in describing this approach and promoting it means that even people who are not strictly...
...you can look up properties and values, explore our css cookbook for patterns to use, and read more in some of the specific guides such as our guide to css g
rid layout.
Test Your Skills: Fundamental layout comprehension - Learn web development
the photographs should display as a two column g
rid with a 1 pixel gap between the images.
... you will not need to edit the html in order to achieve this layout and the techniques you should use are: positioning float flexbox css g
rid layout there are a few ways in which you could achieve some of these tasks, and there often isn’t a single right or wrong way to do things.
... in this module introduction to css layout normal flow flexbox g
rid floats positioning multiple-column layout responsive design beginner's guide to media queries legacy layout methods supporting older browsers fundamental layout comprehension assessment ...
Positioning - Learn web development
introducing positioning the whole idea of positioning is to allow us to over
ride the basic document flow behavior described above, to produce interesting effects.
...this is basically a hyb
rid between relative and fixed position, which allows a positioned element to act like it is relatively positioned until it is scrolled to a certain threshold point (e.g.
...cum sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus.</p> <p> lorem ipsum dolor sit amet, consectetur adipiscing elit.
Styling web forms - Learn web development
however, when you position it with for example a transform: translatey();, it moves but leaves an ugly gap in the <fieldset> border, which is not easy to get
rid of.
... url('fonts/veteran_typewriter-webfont.woff') format('woff'); font-weight: normal; font-style: normal; } body { font : 1.3rem sans-serif; padding : 0.5em; margin : 0; background : #222; } form { position : relative; width : 740px; height : 498px; margin : 0 auto; padding: 1em; box-sizing: border-box; background : #fff url(background.jpg); /* we create our g
rid */ display : g
rid; g
rid-gap : 20px; g
rid-template-columns : repeat(2, 1fr); g
rid-template-rows : 10em 1em 1em 1em; } notice that we've used some css g
rid and flexbox to lay out the form.
... using this we can easily position our elements, including the title and all the form elements: h1 { font : 1em "typewriter", monospace; align-self : end; } #message { g
rid-row: 1 / 5; } #from, #reply { display: flex; } labels and controls now we can start working on the form elements themselves.
Test your skills: Links - Learn web development
this is not strictly best practice, but we've done it here so that the page doesn't open in the embedded <iframe>, getting
rid of your example code in the process!
...this is not strictly best practice, but we've done it here so that the pages don't open in the embedded <iframe>, getting
rid of your example code in the process!
...this is not strictly best practice, but we've done it here so that the pages don't open in the embedded <iframe>, getting
rid of your example code in the process!
Introduction to automated testing - Learn web development
for automation testing through their selenium g
rid, lambdatest offers 60 minutes per month of free testing.
... choose the browser/os combination you want to test by selecting the combination in the g
rid.
... summary this was quite a
ride, but i'm sure you can start to see the benefits of using automation tools to do some of the heavy lifting in terms of testing.
Adding a new event
virtual internalfooevent* asfooevent() moz_over
ride this method should just return this.
... virtual widgetevent* duplicate() const moz_over
ride this method should create a new instance with copying its members except widget.
... don't over
ride methods of its super classes as far as possible since over
riding the method may cause harder to maintain.
A brief guide to Mozilla preferences
prefs.js is automatically generated by the application and should not be edited manually, whereas user.js is an optional file the user can create to over
ride preferences initialized by other preferences files.
... note the application never changes user.js, so on launch user.js over
rides conflicting preferences from the previous application session.
...any use of this technique by software such as firefox extension to over
ride normal user preference will result in being added to the firefox blocklist or the preferences being forcibly removed.
Index
the goal is to eventually find a certificate b (or c or ...) that has an appropriate trust assigned (e.g., because it can be found in the ckbi module and the user hasn't made any over
riding trust decisions, or it can be found in a nss database file managed by the user or by the local environment).
... if a programmer wants to influence how nss verifies certificates or how nss verifies the data presented in a ssl connection handshake, it is possible to register application-defined callback functions which will be called by nss at the appropriate point of time, and which can be used to over
ride the decisions made by nss.
... -r following certfile is raw binary der (default) -t following cert is explicitly trusted (over
rides db trust) -u usage 0=ssl client, 1=ssl server, 2=ssl stepup, 3=ssl ca, 4=email signer, 5=email recipient, 6=object signer, 9=protectedobjectsigner, 10=ocsp responder, 11=any ca -v verbose mode.
JSS
jss essentially provides a java jni b
ridge to nss c shared libraries.
...if you are planning to just use jss jce provider as a b
ridge to nss's fips validated pkcs#11 module, then the sunpkcs11 jce provider may do all that you need.
...a current limitation to the configured sunpkcs11-nss b
ridge configuration is if you add a pkcs#11 module to the nss database such as for a smartcard, you won't be able to access that smartcard through the sunpkcs11-nss b
ridge.
NSS_3.12.2_release_notes.html
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 391560: 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 op...
... bug 432260: [[@ pkix_pl_httpdefaultclient_hdrcheckcomplete - pkix_pl_memcpy] crashes when there is no content-length header in the http response bug 436599: pkix: aia extension is not used in some b
ridge ca / known certs configuration bug 437804: certutil -r for cert renewal should derive the subject from the cert if none is specified.
... bug 456854: cert_decodecertpackage does not set nspr error code upon error bug 457980: hundreds of kilobytes of useless strings in libpkix bug 457984: enable pkcs11 module logging in optimized builds bug 458905: memory leaks in pkix b
ridge certificates.
FC_GetInfo
manufacture
rid: the pkcs #11 library manufacturer, "mozilla foundation", padded with spaces to 32 characters and not null-terminated.
... examples note the use of the %.32s format string to print the manufacture
rid and librarydescription members of the ck_info structure.
... /* invoke fc_getinfo as pfunctionlist->c_getinfo */ crv = pfunctionlist->c_getinfo(&info); assert(crv == ckr_ok); printf("general information about the pkcs #11 library:\n"); printf(" pkcs #11 version: %d.%d\n", (int)info.cryptokiversion.major, (int)info.cryptokiversion.minor); printf(" manufacturer id: %.32s\n", info.manufacture
rid); printf(" flags: 0x%08lx\n", info.flags); printf(" library description: %.32s\n", info.librarydescription); printf(" library version: %d.%d\n", (int)info.libraryversion.major, (int)info.libraryversion.minor); printf("\n"); see also nsc_getinfo ...
Installing Pork
to tell mcpp which gcc installation to integrate itself with, place the selected gcc bin dir as the first element of your path: path=/bindir/of/my/gcc:$path if you want to use a gcc that has binaries named something other than "gcc" and "g++", or you use "ccache" for you main gcc installation and want mcpp to over
ride a separate installation, you need to pass the options "cc=gccxxx cxx=g++xxx" to "./configure".
...if you run simply "make install" and see file permission errors, mcpp is likely trying to over
ride your main gcc installation.
...edef_std.h - ${cxx} -e -xc++ -dm /dev/null | sort | grep -e ' *#define *[a-za-z]+' \ + ${cxx} ${cppflags} -e -xc++ -dm /dev/null | sort | grep -e ' *#define *[a-za-z]+' \ > gxx${gcc_maj_ver}${gcc_min_ver}_predef_old.h fi if test ${host_system} = sys_cygwin; then if you don't do this, mcpp will get the wrong set of automatic definitions and you'll end up with an unpleasant hyb
rid x86-64/i686 build system.
Starting WebLock
in order to be started up or notified when some event happens, the sample component has to hook into mozilla, which it can do either by over
riding an existing component or by registering for some event that will cause it to start up.
...in mozilla, javascript is the b
ridge between components and the xul-based user interface.
...this interface allows you to extend and over
ride nsifile objects registered with the directory service.
nsIAccessibleDocument
obsolete since gecko 2.0 astring getnamespaceurifo
rid(in short namespaceid); attributes attribute type description caretaccessible nsiaccessible read only.
... getnamespaceurifo
rid() the namespace for each id that is handed back.
... astring getnamespaceurifo
rid( in short namespaceid ); parameters namespaceid the id of the name space.
nsIClipboardDragDropHooks
widget/public/nsiclipboarddragdrophooks.idlscriptable interfaces for over
riding the built-in drag, drop, copy, and paste implementations in the content area and editors.
... to have these hooks made available should implement nsiclipboarddragdrophooks and use the command manager to send the appropriate commands with these parameters/settings: command: cmd_clipboarddragdrophook params value type possible values "addhook" isupports nsiclipboarddragdrophooks as nsisupports "removehook" isupports nsiclipboarddragdrophooks as nsisupports note: over
rides/hooks need to be added to each window (as appropriate).
...otherwise, false to indicate the action was not over
ridden, do built-in behavior.
nsIMsgIncomingServer
for nntp, the value is over
ridden to be false.
... performingbiff boolean port long prettyname astring pretty name - should be "use
rid on hostname" if the pref is not set.
... username acstring use
rid to log into the server.
nsIMsgMessageService
); [noscript] void copymessages(in nsmsgkeyarrayptr keys, in nsimsgfolder srcfolder, in nsistreamlistener acopylistener, in boolean amovemessage, in nsiurllistener aurllistener, in nsimsgwindow amsgwindow, out nsiuri aurl); void displaymessage(in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener, in string acharsetover
ride, out nsiuri aurl); void openattachment(in string acontenttype, in string afilename, in string aurl, in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener); void savemessagetodisk(in string amessageuri, in nsifilespec afile, in boolean ageneratedummyenvelope, in nsiurllistener aurllistener, out nsiuri aurl, in boolean ...
... void displaymessage(in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener, in string acharsetover
ride, out nsiuri aurl); parameters amessageuri a uri representing the message to display.
... amsgwindow nsimsgwindow for progress and status feedback aurllistener an nsiurllistener acharsetover
ride (optional) character set over
ride to force the message to use.
nsINavBookmarksService
obsolete since gecko 2.0 nsiuri getbookmarkuri(in long long aitemid); long long getchildfolder(in long long afolder, in astring asubfolder); obsolete since gecko 2.0 long long getfolde
ridforitem(in long long aitemid); boolean getfolderreadonly(in long long aitemid); astring getfoldertitle(in print64 folder); obsolete since gecko 1.9 nsiuri getfolderuri(in print64 folder); obsolete since gecko 1.9 long long getidforitemat(in long long aparentid, in long aindex); prtime getitemdateadded(in long long aitemid); astring getitemgu...
... getfolde
ridforitem() this method retrieves the parent folder's id for an item.
... long long getfolde
ridforitem( in long long aitemid ); parameters aitemid the item whose parent folder's id is to retrieved.
nsISyncJPAKE
1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void final(in acstring ab, in acstring agvb, in acstring arb, in acstring ahkdfinfo, out acstring aaes256key, out acstring ahmac256key); void round1(in acstring asigne
rid, out acstring agx1, out acstring agv1, out acstring ar1, out acstring agx2, out acstring agv2, out acstring ar2); void round2(in acstring apee
rid, in acstring apin, in acstring agx3, in acstring agv3, in acstring ar3, in acstring agx4, in acstring agv4, in acstring ar4, out acstring aa, out acstring agva, out acstring ara); methods final() perform the final step of the jpake exchange.
...void round1( in acstring asigne
rid, out acstring agx1, out acstring agv1, out acstring ar1, out acstring agx2, out acstring agv2, out acstring ar2 ); parameters asigne
rid string identifying the signer.
...void round2( in acstring apee
rid, in acstring apin, in acstring agx3, in acstring agv3, in acstring ar3, in acstring agx4, in acstring agv4, in acstring ar4, out acstring aa, out acstring agva, out acstring ara ); parameters apee
rid string identifying the peer.
nsIXULTemplateBuilder
method overview void rebuild(); void refresh(); void addresult(in nsixultemplateresult aresult, in nsidomnode aquerynode); void removeresult(in nsixultemplateresult aresult); void replaceresult(in nsixultemplateresult aoldresult, in nsixultemplateresult anewresult, in nsidomnode aquerynode); void resultbindingchanged(in nsixultemplateresult aresult); nsixultemplateresult getresultfo
rid(in astring aid); nsixultemplateresult getresultforcontent(in nsidomelement aelement); boolean hasgeneratedcontent(in nsirdfresource anode, in nsiatom atag); void addrulefilter(in nsidomnode arule, in nsixultemplaterulefilter afilter); [noscript] void init(in nsicontent aelement); [noscript] void createcontents(in nsicontent aelement, in boolean aforcecreation); void addlistener(in nsi...
...void resultbindingchanged( in nsixultemplateresult aresult ); parameters aresult the result to change errors throws ns_error_null_pointer if aresult is null getresultfo
rid() returns the result for a given id.
...nsixultemplateresult getresultfo
rid( in astring aid ); parameters aid the id to return the result for return value the result for the given id.
Mail composition back end
if this is not null, the body will be extracted from this object and any embedded objects or links will be sent as part of the message in mhtml nsimsgidentity *ause
ridentity, - the user identity for the person doing the send operation.
... ns_imethod sendmessagefile( nsimsgidentity *ause
ridentity, - the user identity for the person doing the send operation.
... ns_imethod sendwebpage( nsimsgidentity *ause
ridentity, - the user identity for the person doing the send operation.
Examples
js-macosx an extension that demonstrates javascript-cocoa b
ridge for mac os x.
... lightweight b
ridge for calling cocoa frameworks from javascript, js-macosx transparently handles definition of cocoa api, both c and objective-c, and provides automatic declarations for framework functions, structures, constants and enumerations, as well as allows creating and subclassing cocoa classes.
... the js-macosx b
ridge has dependency on b
ridgesupport metadata: whenever a cocoa class, function, struct or const is encountered in the javascript code, js-macosx will replace it with the corresponding js-ctypes declaration based on the b
ridgesupport file from the framework that object belongs to.
Element.hasPointerCapture() - Web APIs
syntax targetelement.haspointercapture(pointe
rid); parameters pointe
rid the pointe
rid of a pointerevent object.
... examples <html> <script> function downhandler(ev) { const el = document.getelementbyid("target"); // element 'target' will receive/capture further events el.setpointercapture(ev.pointe
rid); /* ...
... */ // check whether element still has pointer capture let pointercap = el.haspointercapture(ev.pointe
rid); if(pointercap) { // we've still got pointer capture } else { // oops, we've lost pointer capture!
Element.releasePointerCapture() - Web APIs
syntax targetelement.releasepointercapture(pointe
rid); parameters pointe
rid the pointe
rid of a pointerevent object.
... exceptions exception explanation invalidpointe
rid pointe
rid does not match any of the active pointers.
... html <div id="slider">slide me</div> css div { width: 140px; height: 50px; display: flex; align-items: center; justify-content: center; background: #fbe; } javascript function beginsliding(e) { slider.onpointermove = slide; slider.setpointercapture(e.pointe
rid); } function stopsliding(e) { slider.onpointermove = null; slider.releasepointercapture(e.pointe
rid); } function slide(e) { slider.style.transform = `translate(${e.clientx - 70}px)`; } const slider = document.getelementbyid('slider'); slider.onpointerdown = beginsliding; slider.onpointerup = stopsliding; result specifications specification status comment po...
Element.setPointerCapture() - Web APIs
syntax targetelement.setpointercapture(pointe
rid); parameters pointe
rid the pointe
rid of a pointerevent object.
... exceptions exception explanation invalidpointe
rid pointe
rid does not match any of the active pointers.
... html <div id="slider">slide me</div> css div { width: 140px; height: 50px; display: flex; align-items: center; justify-content: center; background: #fbe; } javascript function beginsliding(e) { slider.onpointermove = slide; slider.setpointercapture(e.pointe
rid); } function stopsliding(e) { slider.onpointermove = null; slider.releasepointercapture(e.pointe
rid); } function slide(e) { slider.style.transform = `translate(${e.clientx - 70}px)`; } const slider = document.getelementbyid('slider'); slider.onpointerdown = beginsliding; slider.onpointerup = stopsliding; result specifications specification status comment ...
Multi-touch interaction - Web APIs
to prevent the browser's default touch behavior from over
riding this application's pointer handling, the touch-action property is applied to the <body> element.
...target2": return evcache2; case "target3": return evcache3; default: log("error with cache handling",ev); } } function push_event(ev) { // save this event in the target's cache var cache = get_cache(ev); cache.push(ev); } function remove_event(ev) { // remove this event from the target's cache var cache = get_cache(ev); for (var i = 0; i < cache.length; i++) { if (cache[i].pointe
rid == ev.pointe
rid) { cache.splice(i, 1); break; } } } update background color the background color of the touch areas will change as follows: no active touches is white; one active touch is yellow; two simultaneous touches is ping and three or more simultaneous touches is lightblue.
...false : true; } function log(name, ev) { var o = document.getelementsbytagname('output')[0]; var s = name + ": pointe
rid = " + ev.pointe
rid + " ; pointertype = " + ev.pointertype + " ; isprimary = " + ev.isprimary; o.innerhtml += s + " "; } function clearlog(event) { var o = document.getelementsbytagname('output')[0]; o.innerhtml = ""; } ...
Pointer events - Web APIs
(all of the following properties are read only .) pointe
rid a unique identifier for the pointer causing the event.
... <html> <script> function downhandler(ev) { let el = document.getelementbyid("target"); // element 'target' will receive/capture further events el.setpointercapture(ev.pointe
rid); } function init() { let el = document.getelementbyid("target"); el.onpointerdown = downhandler; } </script> <body onload="init();"> <div id="target"> touch me ...
... <html> <script> function downhandler(ev) { let el = document.getelementbyid("target"); // element "target" will receive/capture further events el.setpointercapture(ev.pointe
rid); } function cancelhandler(ev) { let el = document.getelementbyid("target"); // release the pointer capture el.releasepointercapture(ev.pointe
rid); } function init() { let el = document.getelementbyid("target"); // register pointerdown and pointercancel handlers el.onpointerdown = downhandler; el.onpointercancel = cancelhandler; } ...
RTCIceCandidatePairStats.selected - Web APIs
that object's selectedcandidatepai
rid property indicates whether or not the specified transport is the one being used.
... example the function shown in this example identifies the currently-selected candidate pair from a statistics report by first iterating over each report, looking for a transport report; when one is found, that transport's selectedcandidatepai
rid is used to get the rtcicecandidatepair describing the connection.
... function getcurrentcandidatepair(statsresults) { statsresults.foreach(report => { if (report.type === "transport") { currentpair = statsresults.get(report.selectedcandidatepai
rid); } }); if (!currentpair) { statsresults.foreach(report => { if (report.type === "candidate-pair" && report.selected) { currentpair = report; } }); } return currentpair; } specifications not part of any specification.
Using Service Workers - Web APIs
the premise of service workers one over
riding problem that web users have suffered with for years is loss of connectivity.
...but the over
riding problem is that there still isn’t a good overall control mechanism for asset caching and custom network requests.
...this is a generally used to do stuff that would have broken the previous version while it was still running, for example getting
rid of old caches.
Using XMLHttpRequest - Web APIs
these involve utilizing the over
ridemimetype() method on the xmlhttprequest object and is a workable solution.
... var oreq = new xmlhttprequest(); oreq.open("get", url); // retrieve data unprocessed as a binary string oreq.over
ridemimetype("text/plain; charset=x-user-defined"); /* ...
... workers setting over
ridemimetype does not work from a worker.
Web accessibility for seizures and physical reactions - Accessibility
here are some highlights: inverted-colors according to the section, user preference media features , "the inverted-colors media feature indicates whether the content is displayed normally, or whether colors have been inverted." forced-colors in forced-colors-mode, the user agent enforces the user's preferred color palette on the page, over
riding the author's chosen colors.
...ovember 1, 2014 discussions problems with wcag 2.0 flash definition #553 wcag 2.1 understanding 2.3.1 - missing/vague dimension definitions #585 epilepsy and seizures shedding light on photosensitivity, one of epilepsy's most complex conditions epilepsy foundation certain individuals are born with special sensitivity to flashing lights or contrasting visual patterns, such as stripes, g
rids and checkerboards.
...benbadis, director, comprehensive epilepsy program and clinical neurophysiology laboratory at usf and tgh in tampa, flo
rida for their great, great assistance and discussions on this topic.
Linear-gradient Generator - CSS: Cascading Style Sheets
var axisid = this.getattribute('axisid') | 0; activateaxis(axisid); }); axis.addeventlistener('dragstart', function (e) { dragelem = this; e.datatransfer.setdata('axisid', this.getattribute('axisid')); }); axis.addeventlistener('dragover', allowdropevent); axis.addeventlistener('drop', function swap(e) { if (dragelem === this) return; var from = getorde
rid(e.datatransfer.getdata('axisid')); var to = getorde
rid(this.getattribute('axisid')); var swap = lg_axes[from]; lg_axes[from] = lg_axes[to]; lg_axes[to] = swap; var left = dragelem.offsetleft; dragelem.style.left = this.offsetleft + 'px'; this.style.left = left + 'px'; updatecssgradient(); }); activateaxisshortcut(axis); return axis; }; var activat...
...ut = node; }; var getnextaxisid = function getnextaxisid() { var ids = []; var idx = 0; var len = lg_axes.length; for (var i=0; i<len; !="=" &&="" (activeaxis="" (axis="==" (ids[idx]="" (idx="" (lg_axes.length="" (lg_axes[i].id="=" (var="" <="" activateaxis="function" activateaxis(axisid)="" activeaxis="" activeaxis.activate();="" activeaxis.deactivate();="" axis="lg_axes[getorde
rid(axisid)];" axis)="" axisid)="" for="" getorde
rid="function" getorde
rid(axisid)="" i="0;" i++)="" i;="" i<len;="" ids[lg_axes[i].id]="true;" idx++;="" idx;="" if="" len="lg_axes.length;" lg_axes.length)="" null)="" return="" return;="" true)="" var="" while="" {="" }="" };=""> 1) delete_axis_btn.removeattribute('data-state'); }; /* axis functions */ var updateaxisrotation = function up...
...e', 'disabled'); }); }; var setdeleteaxisbutton = function setdeleteaxisbutton() { delete_axis_btn = getelembyid('delete-axis'); delete_axis_btn.addeventlistener('click', function () { if (this.hasattribute('data-state')) return; if (lg_axes.length === 1) return; axes_menu.removechild(activeaxis.shortcut); activeaxis.deleteaxis(); lg_axes.splice(getorde
rid(activeaxis.id), 1); activeaxis = null; updatecssgradient(); var len = lg_axes.length; for (var i=0; i<len; '="" '');="" ');="" ';';="" 'both',="" 'disabled')="" 'disabled');="" 'px';="" ()="" (delete_point_btn)="" (lg_axes.length="" (this.getattribute('data-state')="==" (update_output)="" *="" **="" +="" ++i)="" 4)="" 500);="" :="" <="" activeaxis.deleteactivepoint();="" activea...
WebKit CSS extensions - CSS: Cascading Style Sheets
k-inside -webkit-column-progression -webkit-cursor-visibility d-i -webkit-dashboard-region -webkit-font-size-delta -webkit-font-smoothing -webkit-highlight -webkit-hyphenate-character -webkit-hyphenate-limit-after -webkit-hyphenate-limit-before -webkit-hyphenate-limit-lines -webkit-initial-letter l -webkit-line-align -webkit-line-box-contain -webkit-line-clamp -webkit-line-g
rid -webkit-line-snap -webkit-locale -webkit-logical-height -webkit-logical-width m -webkit-margin-after-collapse -webkit-margin-after -webkit-margin-before-collapse -webkit-margin-before -webkit-margin-bottom-collapse -webkit-margin-collapse -webkit-margin-end** -webkit-margin-start** -webkit-margin-top-collapse -webkit-marquee-direction -webkit-marquee-increment -webkit-marquee-...
...webkit-column-rule-color -webkit-column-rule-style -webkit-column-rule-width -webkit-column-span -webkit-column-width -webkit-columns f -webkit-filter -webkit-flex -webkit-flex-basis -webkit-flex-direction -webkit-flex-flow -webkit-flex-grow -webkit-flex-shrink -webkit-flex-wrap -webkit-font-feature-settings -webkit-font-kerning -webkit-font-variant-ligatures g-j -webkit-g
rid -webkit-g
rid-area -webkit-g
rid-auto-columns -webkit-g
rid-auto-flow -webkit-g
rid-auto-rows -webkit-g
rid-column -webkit-g
rid-column-end -webkit-g
rid-column-gap -webkit-g
rid-column-start -webkit-g
rid-gap -webkit-g
rid-row -webkit-g
rid-row-end -webkit-g
rid-row-gap -webkit-g
rid-row-start -webkit-g
rid-template -webkit-g
rid-template-areas -webkit-g
rid-template-columns -webkit-g
rid-templa...
... -webkit-alt* -webkit-color-correction -webkit-flow-from -webkit-flow-into -webkit-g
rid-columns (see g
rid-column) -webkit-g
rid-rows (see g
rid-row) -webkit-hyphenate-charset -webkit-image-set (see image-set()) -webkit-mask-attachment -webkit-match-nearest-mail-blockquote-color -webkit-overflow-scrolling -webkit-region-break-after -webkit-region-break-before -webkit-region-break-inside -webkit-region-fragment -webkit-shape-inside -webkit-touch-callout (see touch-action) b...
border-bottom-style - CSS: Cascading Style Sheets
syntax /* keyword values */ border-bottom-style: none; border-bottom-style: hidden; border-bottom-style: dotted; border-bottom-style: dashed; border-bottom-style: solid; border-bottom-style: double; border-bottom-style: groove; border-bottom-style:
ridge; border-bottom-style: inset; border-bottom-style: outset; /* global values */ border-bottom-style: inherit; border-bottom-style: initial; border-bottom-style: unset; the border-bottom-style property is specified as a single keyword chosen from those available for the border-style property.
...it also applies to ::first-letter.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <line-style>where <line-style> = none | hidden | dotted | dashed | solid | double | groove |
ridge | inset | outset examples demonstrating all border styles html <table> <tr> <td class="b1">none</td> <td class="b2">hidden</td> <td class="b3">dotted</td> <td class="b4">dashed</td> </tr> <tr> <td class="b5">solid</td> <td class="b6">double</td> <td class="b7">groove</td> <td class="b8">
ridge</td> </tr> <tr> <td class="b9">inset</td> <td class="b10">outset</td> </tr> </table> css /* define look of the table */ table { border-width: 3px; background-color: #52e385; } ...
...tr, td { padding: 3px; } /* border-bottom-style example classes */ .b1 {border-bottom-style: none;} .b2 {border-bottom-style: hidden;} .b3 {border-bottom-style: dotted;} .b4 {border-bottom-style: dashed;} .b5 {border-bottom-style: solid;} .b6 {border-bottom-style: double;} .b7 {border-bottom-style: groove;} .b8 {border-bottom-style:
ridge;} .b9 {border-bottom-style: inset;} .b10 {border-bottom-style: outset;} result specifications specification status comment css backgrounds and borders module level 3the definition of 'border-bottom-style' in that specification.
border-left-style - CSS: Cascading Style Sheets
syntax /* keyword values */ border-left-style: none; border-left-style: hidden; border-left-style: dotted; border-left-style: dashed; border-left-style: solid; border-left-style: double; border-left-style: groove; border-left-style:
ridge; border-left-style: inset; border-left-style: outset; /* global values */ border-left-style: inherit; border-left-style: initial; border-left-style: unset; the border-left-style property is specified as a single keyword chosen from those available for the border-style property.
...it also applies to ::first-letter.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <line-style>where <line-style> = none | hidden | dotted | dashed | solid | double | groove |
ridge | inset | outset examples html <table> <tr> <td class="b1">none</td> <td class="b2">hidden</td> <td class="b3">dotted</td> <td class="b4">dashed</td> </tr> <tr> <td class="b5">solid</td> <td class="b6">double</td> <td class="b7">groove</td> <td class="b8">
ridge</td> </tr> <tr> <td class="b9">inset</td> <td class="b10">outset</td> </tr> </table> css /* define look of the table */ table { border-width: 2px; background-color: #52e385; } tr, td { padding: 3px; } /* bo...
...rder-left-style example classes */ .b1 {border-left-style: none;} .b2 {border-left-style: hidden;} .b3 {border-left-style: dotted;} .b4 {border-left-style: dashed;} .b5 {border-left-style: solid;} .b6 {border-left-style: double;} .b7 {border-left-style: groove;} .b8 {border-left-style:
ridge;} .b9 {border-left-style: inset;} .b10 {border-left-style: outset;} result specifications specification status comment css backgrounds and borders module level 3the definition of 'border-left-style' in that specification.
border-right-style - CSS: Cascading Style Sheets
syntax /* keyword values */ border-right-style: none; border-right-style: hidden; border-right-style: dotted; border-right-style: dashed; border-right-style: solid; border-right-style: double; border-right-style: groove; border-right-style:
ridge; border-right-style: inset; border-right-style: outset; /* global values */ border-right-style: inherit; border-right-style: initial; border-right-style: unset; the border-right-style property is specified as a single keyword chosen from those available for the border-style property.
...it also applies to ::first-letter.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <line-style>where <line-style> = none | hidden | dotted | dashed | solid | double | groove |
ridge | inset | outset examples border styles html <table> <tr> <td class="b1">none</td> <td class="b2">hidden</td> <td class="b3">dotted</td> <td class="b4">dashed</td> </tr> <tr> <td class="b5">solid</td> <td class="b6">double</td> <td class="b7">groove</td> <td class="b8">
ridge</td> </tr> <tr> <td class="b9">inset</td> <td class="b10">outset</td> </tr> </table> css /* define look of the table */ table { border-width: 2px; background-color: #52e385; } tr, td { padding...
...: 3px; } /* border-right-style example classes */ .b1 {border-right-style: none;} .b2 {border-right-style: hidden;} .b3 {border-right-style: dotted;} .b4 {border-right-style: dashed;} .b5 {border-right-style: solid;} .b6 {border-right-style: double;} .b7 {border-right-style: groove;} .b8 {border-right-style:
ridge;} .b9 {border-right-style: inset;} .b10 {border-right-style: outset;} result specifications specification status comment css backgrounds and borders module level 3the definition of 'border-right-style' in that specification.
border-top-style - CSS: Cascading Style Sheets
syntax /* keyword values */ border-top-style: none; border-top-style: hidden; border-top-style: dotted; border-top-style: dashed; border-top-style: solid; border-top-style: double; border-top-style: groove; border-top-style:
ridge; border-top-style: inset; border-top-style: outset; /* global values */ border-top-style: inherit; border-top-style: initial; border-top-style: unset; the border-top-style property is specified as a single keyword chosen from those available for the border-style property.
...it also applies to ::first-letter.inheritednocomputed valueas specifiedanimation typediscrete formal syntax <line-style>where <line-style> = none | hidden | dotted | dashed | solid | double | groove |
ridge | inset | outset examples html <table> <tr> <td class="b1">none</td> <td class="b2">hidden</td> <td class="b3">dotted</td> <td class="b4">dashed</td> </tr> <tr> <td class="b5">solid</td> <td class="b6">double</td> <td class="b7">groove</td> <td class="b8">
ridge</td> </tr> <tr> <td class="b9">inset</td> <td class="b10">outset</td> </tr> </table> css /* define look of the table */ table { border-width: 2px; background-color: #52e385; } tr, td { padding: 3px; } /* bo...
...rder-top-style example classes */ .b1 {border-top-style: none;} .b2 {border-top-style: hidden;} .b3 {border-top-style: dotted;} .b4 {border-top-style: dashed;} .b5 {border-top-style: solid;} .b6 {border-top-style: double;} .b7 {border-top-style: groove;} .b8 {border-top-style:
ridge;} .b9 {border-top-style: inset;} .b10 {border-top-style: outset;} result specifications specification status comment css backgrounds and borders module level 3the definition of 'border-top-style' in that specification.
<display-inside> - CSS: Cascading Style Sheets
g
rid the element behaves like a block element and lays out its content according to the g
rid model.
... note: browsers that support the two value syntax, on finding the inner value only, such as when display: flex or display: g
rid is specified, will set their outer value to block.
... this will result in expected behavior; for example if you specify an element to be display: g
rid, you would expect that the box created on the g
rid container would be a block level box.
justify-content - CSS: Cascading Style Sheets
the css justify-content property defines how the browser distributes space between and around content items along the main-axis of a flex container, and the inline axis of a g
rid container.
... the interactive example below demonstrates some of the values using g
rid layout.
...this value behaves as stretch in g
rid and flex containers.
outline-style - CSS: Cascading Style Sheets
syntax /* keyword values */ outline-style: auto; outline-style: none; outline-style: dotted; outline-style: dashed; outline-style: solid; outline-style: double; outline-style: groove; outline-style:
ridge; outline-style: inset; outline-style: outset; /* global values */ outline-style: inherit; outline-style: initial; outline-style: unset; the outline-style property is specified as any one of the values listed below.
...
ridge the opposite of groove: the outline looks as though it were extruded from the page.
...o 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 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...
HTTP headers - HTTP
if viewport-width occurs in a message more than once, the last value over
rides all previous occurrences.
...if width occurs in a message more than once, the last value over
rides all previous occurrences conditionals last-modified the last modification date of the resource, used to compare several versions of the same resource.
...this is a hint and is not necessarily under the full control of the user: the server should always pay attention not to over
ride an explicit user choice (like selecting a language from a dropdown).
Expressions and operators - JavaScript
you can over
ride operator precedence by using parentheses.
...for example, you can over
ride multiplication and division first, then addition and subtraction to evaluate addition first.
... var a = 1; var b = 2; var c = 3; // default precedence a + b * c // 7 // evaluated by default like this a + (b * c) // 7 // now over
riding precedence // addition before multiplication (a + b) * c // 9 // which is equivalent to a * c + b * c // 9 left-hand-side expressions left values are the destination of an assignment.
BigInt - JavaScript
over
rides the object.prototype.tolocalestring() method.
...over
rides the object.prototype.tostring() method.
...over
rides the object.prototype.valueof() method.
Number - JavaScript
over
rides the object.prototype.tolocalestring() method.
...over
rides the object.prototype.tostring() method.
...over
rides the object.prototype.valueof() method.
Object.prototype.toLocaleString() - JavaScript
this method is meant to be over
ridden by derived objects for locale-specific purposes.
... objects over
riding tolocalestring array: array.prototype.tolocalestring() number: number.prototype.tolocalestring() date: date.prototype.tolocalestring() typedarray: typedarray.prototype.tolocalestring() bigint: bigint.prototype.tolocalestring() examples array tolocalestring() over
ride on array objects, tolocalestring() can be used to print array values as a string, optionally with locale-specific ide...
...ntifiers (such as currency symbols) appended to them: for example: const testarray = [4, 7, 10]; let europrices = testarray.tolocalestring('fr', { style: 'currency', currency: 'eur'}); // "4,00 €,7,00 €,10,00 €" date tolocalestring() over
ride on date objects, tolocalestring() is used to print out date displays more suitable for specific locales: for example: const testdate = new date(date.now()); // "date fri may 29 2020 18:04:24 gmt+0100 (british summer time)" let dedate = testdate.tolocalestring('de'); // "29.5.2020, 18:04:24" var frdate = testdate.tolocalestring('fr'); //"29/05/2020 à 18:04:24" number tolocalestring() over
ride on number objects, tolocalestring() is used to print out number displays more suitable for specific locales, e.g.
Object.prototype.toString() - JavaScript
if this method is not over
ridden in a custom object, tostring() returns "[object type]", where type is the object type.
... examples over
riding the default tostring method you can create a function to be called in place of the default tostring() method.
...nction dog(name, breed, color, sex) { this.name = name; this.breed = breed; this.color = color; this.sex = sex; } thedog = new dog('gabby', 'lab', 'chocolate', 'female'); if you call the tostring() method on this custom object, it returns the default value inherited from object: thedog.tostring(); // returns [object object] the following code creates and assigns dogtostring() to over
ride the default tostring() method.
Object.prototype.valueOf() - JavaScript
every built-in core object over
rides this method to return an appropriate value.
...when you create a custom object, you can over
ride object.prototype.valueof() to call a custom method instead of the default object method.
... over
riding valueof for custom objects you can create a function to be called in place of the default valueof method.
Object - JavaScript
over
ridden).
... changes to the object prototype object are seen by all objects through prototype chaining, unless the properties and methods subject to those changes are over
ridden further along the prototype chain.
... this provides a very powerful although potentially dangerous mechanism to over
ride or extend object behavior.
Symbol - JavaScript
over
rides the object.prototype.tosource() method.
...over
rides the object.prototype.tostring() method.
...over
rides the object.prototype.valueof() method.
eval() - JavaScript
but, in the code using eval(), the browser cannot assume this since what if your code looked like the following: function date(n){ return ["monday","tuesday","wednesday","thursday","f
riday","saturday","sunday"][n%7 || 0]; } function loosejsonparse(obj){ return eval("(" + obj + ")"); } console.log(loosejsonparse( "{a:(4-1), b:function(){}, c:new date()}" )) thus, in the eval() version of the code, the browser is forced to make the expensive lookup call to check to see if there are any local variables called date().
... function date(n){ return ["monday","tuesday","wednesday","thursday","f
riday","saturday","sunday"][n%7 || 0]; } function runcodewithdatefunction(obj){ return function('"use strict";return (' + obj + ')')()( date ); } console.log(runcodewithdatefunction( "function(date){ return date(5) }" )) the code above may seem inefficiently slow because of the triple nested function, but let's analyze the benefits of the above efficient method: it allows the code in the string passed to ...
... console.log(function('"use strict";return(function(a){return a(5)})')()(function(a){ return"monday tuesday wednesday thursday f
riday saturday sunday".split(" ")[a%7||0]})); there are also additional safer (and faster!) alternatives to eval() or function() for common use-cases.
Grouping operator ( ) - JavaScript
syntax ( ) description the grouping operator consists of a pair of parentheses around an expression or sub-expression to over
ride the normal operator precedence so that expressions with lower precedence can be evaluated before an expression with higher priority.
... examples using the grouping operator over
riding multiplication and division first, then addition and subtraction to evaluate addition first.
... var a = 1; var b = 2; var c = 3; // default precedence a + b * c // 7 // evaluated by default like this a + (b * c) // 7 // now over
riding precedence // addition before multiplication (a + b) * c // 9 // which is equivalent to a * c + b * c // 9 specifications specification ecmascript (ecma-262)the definition of 'the grouping operator' in that specification.
Web video codec guide - Web media technologies
the photo above shows mosquito noise in a number of places, including in the sky surrounding the b
ridge.
...these blocks are normally of a fixed size, in a g
rid, but there are forms of motion compensation that allow for variable block sizes, and even for blocks to overlap.
...prohip) 8 4:0:0 (greyscale) and 4:2:0 high 10 (hi10p) 8 to 10 4:0:0 (greyscale) and 4:2:0 high 4:2:2 (hi422p) 8 to 10 4:0:0 (greyscale), 4:2:0, and 4:2:2 high 4:4:4 predictive 8 to 14 4:0:0 (greyscale), 4:2:0, 4:2:2, and 4:4:4 hdr support yes; hyb
rid log-gamma or advanced hdr/sl-hdr; both are part of atsc variable frame rate (vfr) support yes browser compatibility feature chrome edge firefox internet explorer opera safari avc/h.264 support 4 12 35[1] 9 25 3.2 ...
color-profile - SVG: Scalable Vector Graphics
this differs from auto in that it over
rides an embedded profile inside an image.
...if a match is found, the corresponding profile over
rides an embedded profile inside an image.
...the referenced color profile over
rides an embedded profile inside the image.
end - SVG: Scalable Vector Graphics
ect 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> <!-- g
rid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="105" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="105" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2="105" stroke="grey" stroke-width=".5"...
..."endbutton.click" dur="8s" repeatcount="indefinite" fill="freeze" /> </rect> <!-- trigger --> <rect id="endbutton" style="cursor:pointer;" x="19.5" y="62.5" rx="5" height="25" width="80" fill="#efefef" stroke="black" stroke-width="1" /> <text x="60" y="80" text-anchor="middle" style="pointer-events:none;">click me.</text> <!-- g
rid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="55" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="55" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2="55" stroke="grey" stroke-width=".5" />...
...gles --> <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> <!-- g
rid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="55" stroke="grey" stroke-width=".5" /> <text x="35" y="20" text-anchor="middle">2s</text> <line x1="35" y1="25" x2="35" y2="55" stroke="grey" stroke-width=".5" /> <text x="60" y="20" text-anchor="middle">4s</text> <line x1="60" y1="25" x2="60" y2="55" stroke="grey" stroke-width=".5" />...
querystring - Archive of obsolete content
globals functions stringify(fields, separator, assignment) serializes an object containing name:value pairs into a query string: querystring.stringify({ foo: 'bar', baz: 4 }); // => 'foo=bar&baz=4' by default '&' and'=' are used as separator and assignment characters, but you can over
ride this using additional optional parameters: querystring.stringify({ foo: 'bar', baz: 4 }, ';', ':'); // => 'foo:bar;baz:4' parameters fields : object the data to convert to a query string.
... parse(querystring, separator, assignment) parse a query string into an object containing name:value pairs: querystring.parse('foo=bar&baz=bla') // => { foo: 'bar', baz: 'bla' } optionally separator and assignment arguments may be passed to over
ride default '&' and '=' characters: querystring.parse('foo:bar|baz:bla', '|', ':') // => { foo: 'bar', baz: 'bla' } parameters querystring : string the query string.
request - Archive of obsolete content
over
ridemimetype string use this string to over
ride the mime type returned by the server in the response's content-type header.
...to force the response to be interpreted as latin-1, use over
ridemimetype: var request = require("sdk/request").request; var quijote = request({ url: "http://www.latin1files.org/quijote.txt", over
ridemimetype: "text/plain; charset=latin1", oncomplete: function (response) { console.log(response.text); } }); quijote.get(); anonymous boolean if true, the request will be sent without cookies or authentication headers.
ui/button/toggle - Archive of obsolete content
more-specific states over
ride less-specific states.
...because window-specific state over
rides global state, if you try to update checked by direct assignment to the button, this will be over
ridden by the user clicking the button.
console - Archive of obsolete content
there are two system preferences that can be used to over
ride this default: extensions.sdk.console.loglevel: if set, this determines the logging level for all installed sdk-based add-ons.
...this over
rides the global preference if both preferences are set.
Scrollbar - Archive of obsolete content
example assumes a structure like this: app/chrome/chrome.manifest app/chrome/skin/global/ copy the scrollbars.css from xulrunner/chrome/classic.jar/skin/classic/global to app/chrome/skin/global/scrollbars.css open the app/chrome/chrome.manifest and add: skin app-global standard/1.0 skin/global/ over
ride chrome://global/skin/xulscrollbars.css chrome://app-global/skin/scrollbars.css xulscrollbars.css are used for windows xp, and nativescrollbars.css on osx.
... so to make this work with osx, make an extra over
ride: over
ride chrome://global/skin/nativescrollbars.css chrome://app-global/skin/scrollbars.css change some color values inside the app/chrome/skin/global/scrollbars.css to test that the css is used.
Extension Versioning, Update and Compatibility - Archive of obsolete content
over
riding compatibility checking for testing purposes you can tell the application to somewhat ignore compatibility checks when installing add-ons.
... note: before firefox 1.5 the preference app.extensions.version could be used to over
ride the version that the application believed itself to be to allow normally incompatible extensions to install.
Offering a context menu for form controls - Archive of obsolete content
this article describes how an extension can over
ride this change in a particular window, enabling context menus to work on form controls.
... as a result, all controls in the window will support a context menu when right-clicked, since we've changed the core behavior of context menus to over
ride their default behavior of doing nothing on form controls.
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
if for some reason you want to over
ride these styles (not recommended), you'll need the following rule: -moz-appearance: none; -moz-appearance can be used in many cases where you want to strip the native look out of an element.
...you'll probably still need to over
ride a couple other css rules to get a completely plain look.
Adding windows and dialogs - Archive of obsolete content
there are also subtle aspects about window size, margins and paddings that are not the same for all systems, so you should avoid making dialogs from scratch or over
riding the default dialog css styles.
...you'll see that you can choose from a wide variety of buttons, associate any action you need to them, over
ride their labels, and even add completely customized extra buttons.
The Box Model - Archive of obsolete content
flexibility an html div is as big as its contents unless you over
ride its dimensions using css.
...at any rate, it can always be over
riden using css, so your extension won't lose skinability because of it.
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
so the following piece of html defines an iframe element which is not visible to the user: <div style="visibility:hidden; position:absolute; top:-1000px; left:-1000px"> <iframe id="b
ridgeframe" src=""></iframe> </div> the javascript code located in the data loader component will be interacting with this iframe element, requesting data from the server.
...data loader component this component is a simple javascript function that sets the src attribute of the hidden iframe, causing it to load an url (i.e., by establishing a request on the server side): /* triggers the iframe to retrieve new data */ function retrievedata() { b
ridgeframe.src = dataurl; } once a web page is loaded into the iframe, the data binder will be able to get the data from the iframe's page and set the data into the main page's context.
In-Depth - Archive of obsolete content
possible are (this is probably an incomplete list): none - (!important may be needed) will over
ride the operating system default.
...a bunch of 20px x 20px icons in a g
rid format above is the source image of some icons setup to use the -moz-image-region style.
JavaScript Client API - Archive of obsolete content
in this case, it is highly recommended to use the utils.makeguid() helper to generate new guids: let newguid = utils.makeguid(); your store object must implement the following methods: itemexists(id) createrecord(id, collection) changeitemid(oldid, newid) getallids() wipe() create(record) update(record) remove(record) you may also find it useful to over
ride other methods of the base implementation, for example applyincomingbatch if the underlying storage for your data supports batch operations.
...syncengine contains a lot of code which handles logic for the core sync algorithm, but your subclass won't need to call any of this directly, unless you are over
riding part of the sync algorithm to provide custom sync behavior (an advanced technique outside the scope of this article).
Hacking wiki - Archive of obsolete content
for example: [snip] include("extensions/breadcrumbs.php"); include("extensions/titleover
ride.php"); include("extensions/abbr.php"); include("extensions/object.php"); include("extensions/kbd.php"); ?> tbd installing/configuring rss and doxygen extensions - anything special needs to be done?
... the title-over
ride / breadcrumbs extensions need an additional table created.
Table Cellmap - Archive of obsolete content
566b0 cols array orig/span-> 023566b00=2/0 1=2/0 ***** start group cell map dump ***** 023565b0 maprowcount=2 tablerowcount=2 row 0 : c0,0 c0,1 row 1 : c1,0 c1,1 c0,0=02763528(0) c0,1=0276381c(1) c1,0=02763990(0) c1,1=02763ab4(1) ***** end group cell map dump ***** ***** end table cell map dump ***** ***end table dump*** structural information one can imagine the cellmap as g
rid with equally wide rows and columns where the table cells are drawn.
... these cells can cover more than a g
rid cell if the row- or colspan attribute is different from 1.
Actionscript Acceptance Tests - Archive of obsolete content
testname.as.asc_args this file specifies additional arguments to pass to asc when compiling the test: # asc args for file # two modes are available: # over
ride| all command line arguments (except builtin.py) are ignored and replaced by these # merge| merge these args in with the current args # specifiy an arg that starts with -no will disable the arg...
... if you do not wish to have shell.as included when compiling, you must create a dir.asc_args file with an over
ride parameter: # the following line will over
ride all compile arguments and just compile a .as file with -import builtin.abc over
ride| ...
Running Tamarin acceptance tests - Archive of obsolete content
this can be over
rided with the threads flag: python ./runtests.py --threads=3 threading on cygwin / windows due to an issue with cygwin python, threading does not work, and threads will always be set to 1.
...adb 'adb' stands for android debug b
ridge.
firstdayofweek - Archive of obsolete content
« xul reference home firstdayofweek type: integer which day of the week to display as the first day in the g
rid.
...the default value is determined by the locale, so only use this attribute if you want to over
ride it.
findbar - Archive of obsolete content
for example, the standard findbar in firefox 3.5 looks like this on the mac: you may attach a findbar to a particular browser element by either setting the findbar's browse
rid attribute to the id of the browser element before the findbar element is bound, or by setting the findbar's browser property to the browser element itself.
... attributes browse
rid, findnextaccesskey, findpreviousaccesskey, highlightaccesskey, matchcaseaccesskey properties browser, findmode methods close, onfindagaincommand, open, startfind, togglehighlight example <browser type="content-primary" flex="1" id="content" src="about:blank"/> <findbar id="findtoolbar" browse
rid="content"/> attributes browse
rid type: string the id of the browser element to which the findbar is attached.
How to implement a custom XUL query processor component - Archive of obsolete content
here is an example of what our xul might look like when using a custom query processor: <?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"> <g
rid> <columns> <column flex="1"/> <column flex="3"/> <column flex="2"/> <column flex="1"/> </columns> <rows datasources="dummy" ref="." querytype="simpledata"> <template> <row uri="?"> <label value="?name"/> <label value="?age"/> <label value...
...="?hair"/> <label value="?eye"/> </row> </template> </rows> </g
rid> </window> a few things to note.
ContextMenus - Archive of obsolete content
in the example, a context menu is attached to a g
rid.
... <window id="main-window"> <popupset> <menupopup id="ins-del-menu"> <menuitem label="insert"/> <menuitem label="delete"/> </menupopup> </popupset> </window> <g
rid context="ins-del-menu"> <columns> <column/> <column flex="1"/> </columns> <rows id="rows"> <row align="center"> <label value="name:"/> <textbox/> </row> </rows> </g
rid> the same context menu can be attached to multiple elements.
OpenClose - Archive of obsolete content
the openpopup method is defined as follows: void openpopup(in domelement anchorelement, in string position, in long x, in long y, in boolean iscontextmenu, in boolean attributesover
ride); first an example: somepopup.openpopup(anchor, "after_start", 0, 0, false, false); this example will open a popup located just underneath another element referenced by 'anchor'.
... finally, the last argument to the openpopup method, attributesover
ride indicates whether attributes placed on the popup element itself over
ride the arguments supplied.
The Joy of XUL - Archive of obsolete content
they are a general mechanism for adding ui for additional components, over
riding small pieces of a xul file without having to resupply the whole ui, and reusing particular pieces of the ui.
...it uses simple xul components like boxes, g
rids, and stacks to compose views for the weeks, days, and months.
Manifest Files - Archive of obsolete content
in javascript, it is possible for a web page to over
ride built-in functions with their own code.
... if the xpcnativewrappers flag is specified, it indicates that scripts running in a privileged context don't call these over
ridden versions, but the original built-in versions instead.
Numeric Controls - Archive of obsolete content
using a value of g
rid uses a calendar g
rid, as shown in the image below.
...this type has three fields for entering the year, month and date, as well as a dropdown button for displaying a popup calendar g
rid for selecting a day.
Window icons - Archive of obsolete content
these icons will over
ride the global icon files, which are located in app_dir/browser/chrome/icons/default.
... note: the global icons over
ride does not currently work due to bug bug 543490.
XUL Reference - Archive of obsolete content
« xul reference « alphabetical list of all xul elements action arrowscrollbox assign bbox binding bindings box broadcaster broadcasterset button browser checkbox caption clicktoscroll colorpicker column columns commandset command conditions content datepicker deck description dialog dialogheader dropmarker editor g
rid grippy groupbox hbox iframe image key keyset label listbox listcell listcol listcols listhead listheader listitem member menu menubar menuitem menulist menupopup menuseparator notification notificationbox observes overlay page panel param popupset preference preferences prefpane prefwindow progressmeter query queryset radio radiogroup resizer richlistbox richlistitem row rows rule scale scr...
...tepicker menulist progressmeter radio radiogroup scale splitter textbox textbox (firefox autocomplete) textbox (mozilla autocomplete) timepicker description label image listbox listitem listcell listcol listcols listhead listheader richlistbox richlistitem tree treecell treechildren treecol treecols treeitem treerow treeseparator box hbox vbox bbox deck stack g
rid columns column rows row scrollbox action assign binding bindings conditions content member param query queryset rule template textnode triple where script commandset command broadcaster broadcasterset observes key keyset stringbundle stringbundleset arrowscrollbox dropmarker grippy scrollbar scrollcorner spinbuttons all attributes all properties all methods ...
The Implementation of the Application Object Model - Archive of obsolete content
now since the aol bookmark was specified by the remote file, the user has no way of going off to the site and changing that file just to get
rid of the button (even though the user might wish that he or she could!).
...one subtree nested inside another subtree can specify a different value for the persistent attribute, thus allowing the xul writer to specify a default for the whole window, but to still selectively over
ride it for certain subtrees.
XUL controls - Archive of obsolete content
<datepicker value="2007/03/26"/> datepicker reference <datepicker type="g
rid"> a datepicker which displays a calendar g
rid for selecting a date.
... <datepicker type="g
rid" value="2007/02/20"/> datepicker reference <datepicker type="popup" > a datepicker which displays a set of textboxes for date entry, but also has a button for displaying a popup calendar g
rid.
editor - Archive of obsolete content
this value will be over
ridden depending on the content type of the document in the editor.
...this value will be over
ridden depending on the content type of the document in the editor.
menu - Archive of obsolete content
if this value is set, it over
rides an assigned key set in the key attribute.
...if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
menuitem - Archive of obsolete content
if this value is set, it over
rides an assigned key set in the key attribute.
...if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
menuseparator - Archive of obsolete content
if this value is set, it over
rides an assigned key set in the key attribute.
...if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
tab - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
...however, if this attribute is used, this behavior is over
ridden, and the tab will always be linked to a specific panel.
toolbarbutton - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
... it over
rides the value of label, which is used if title is not set.
Application Update - Archive of obsolete content
pref("app.update.url.details", "http://yourserver.net/yourpage"); // user-settable over
ride to app.update.url for testing purposes.
... //pref("app.update.url.over
ride", ""); // interval: time between checks for a new version (in seconds) // default=1 day pref("app.update.interval", 86400); // interval: time before prompting the user to download a new version that // is available (in seconds) default=1 day pref("app.update.nagtimer.download", 86400); // interval: time before prompting the user to restart to install the latest // download (in seconds) default=30 minutes pref("app.update.nagtimer.restart", 1800); // interval: when all registered timers should be checked (in milliseconds) // default=5 seconds pref("app.update.timer", 600000); // whether or not we show a dialog box informing the user that the update was // successfully applied.
2006-10-20 - Archive of obsolete content
discussions sparky and comet going away on f
riday preed wants to get
rid of sparky and comet (both older desktop class linux boxes).
... decommissioning sparky on f
riday preed wants to get
rid of sparky (a linux build box) and wants to know if there are reasons wy not to do it.
Making sure your theme works with RTL locales - Archive of obsolete content
example toolbar[iconsize="large"][mode="icons"] #back-button { -moz-image-region: rect(0px 396px 34px 360px); } toolbar[iconsize="large"][mode="icons"] #back-button:-moz-locale-dir(rtl) { -moz-image-region: rect(0px 516px 34px 480px); } this specifies the default, left-to-right version of the button, then offers an over
ride if the user's interface is being rendered in right-to-left mode.
... toolbar[iconsize="large"][mode="icons"] #back-button { -moz-image-region: rect(0px 398px 34px 360px); } toolbar[iconsize="large"][mode="icons"] #back-button[chromedir="rtl"] { -moz-image-region: rect(0px 516px 34px 478px); } this way, if chromedir is "rtl", the second rule will over
ride the first, and the theme will work in rtl.
display-inside - Archive of obsolete content
/* keyword values */ display-inside: auto; display-inside: block; display-inside: table; display-inside: flex; display-inside: g
rid; display-inside: ruby; /* global values */ display-inside: inherit; display-inside: initial; display-inside: unset; value not found in db!
... g
rid the element lays out its contents using g
rid layout.
JSObject - Archive of obsolete content
over
rides: equals in class java.lang.object declaration public boolean equals(object obj) backward compatibility javascript 1.3.
... over
rides: tostring in class java.lang.object declaration public string tostring() ...
XForms Repeat Element - Archive of obsolete content
<head> <xbl:bindings> <xbl:binding id="g
rid"> <xbl:content> <xf:repeat xbl:inherits="bind, model, nodeset" anonid="anonidg
ridrepeat"> <xf:trigger> <xf:label>r</xf:label> <xf:delete ev:event="domactivate" at="index('anonidg
ridrepeat')" xbl:inherits="model, bind, nodeset"/> </xf:trigger> </xf:repeat> </xbl:content> </xbl:binding> </xbl:bindings...
...> <style> div.g
rid { -moz-binding: url('#g
rid'); } </style> <xf:model> <xf:instance> <data xmlns=""> <repeat> <item> <input>input1</input> </item> <item> <input>input2</input> </item> <item> <input>input3</input> </item> </repeat> </data> </xf:instance> </xf:model> </head> <body> <xf:repeat nodeset="/data/repeat/item" id="g
ridrepeat"> <xf:input ref="input"/> </xf:repeat> <br/> <div class="g
rid" nodeset="/data/repeat/item"/> </body> ...
Fixing Table Inheritance in Quirks Mode - Archive of obsolete content
overcoming legacy behavior all that is needed is a rule that over
rides the -moz-initial values with the css2 value inherit.
... /* rule to fix quirks-mode inheritance behavior */ table, caption { font-size: inherit; font-weight: inherit; font-style: inherit; font-variant: inherit; } this rule will over
ride the rule in quirk.css and thus allow the author to have reliable inheritance of font styles into tables when in "quirks" mode.
Audio for Web games - Game development
the reason often given is that the user should be in control of the volume at the os level and this shouldn't be over
ridden.
... see also web audio api on mdn <audio> on mdn developing game audio with the web audio api (html5rocks) mixing positional audio and webgl (html5rocks) songs of di
ridum: pushing the web audio api to its limits making html5 audio actually work on mobile audio sprites (and fixes for ios) ...
XInclude - MDN Web Docs Glossary: Definitions of Web-related terms
// let the request be processed below } else { if (encoding === '' || encoding === null) { // encoding has no effect on xml encoding = 'utf-8'; } request.over
ridemimetype('text/plain; charset='+encoding); //'x-user-defined' } responsetype = 'responsetext'; break; case null: case 'xml': responsetype = 'responsexml'; break; default: ...
... else { encodingtype = 'utf-8'; } // need to make a whole new request apparently since cannot convert the encoding after receiving it (to know what the encoding was) var request2 = new xmlhttprequest(); request2.over
ridemimetype('text/plain; charset='+encodingtype); request2.open('get', href, false); request2.setrequestheader('if-modified-since', 'thu, 1 jan 1970 00:00:00 gmt'); request2.setrequestheader('cache-control', 'no-cache'); request2.send(null); ...
MDN Web Docs Glossary: Definitions of Web-related terms
e (fps) ftp ftu function fuzz testing g gaia garbage collection gecko general header gif gij git global object global scope global variable glyph gonk google chrome gpl gpu graceful degradation g
rid g
rid areas g
rid axis g
rid cell g
rid column g
rid container g
rid lines g
rid row g
rid tracks guard gutters gzip compression h hash head high-level programming language hmac hoisting host hotlink houdini hpk...
...syntax error synthetic monitoring t tag tcp tcp handshake tcp slow start telnet texel thread three js time to first byte time to interactive tld tofu transmission control protocol (tcp) transport layer security (tls) tree shaking t
rident truthy ttl turn type type coercion type conversion u udp (user datagram protocol) ui undefined unicode uri url urn usenet user agent utf-8 ux v validator value variable vendor...
HTML: A good basis for accessibility - Learn web development
for example, a control button to play a video on your site could be marked up like this: <div>play video</div> but as you'll see in greater detail later on, it makes sense to use the correct element for the job: <button>play video</button> not only do html <button>s have some suitable styling applied by default (which you will probably want to over
ride), they also have built-in keyboard accessibility — users can navigate between buttons using the tab key and activate their selection using return or enter.
... sometimes you are not in the position to get
rid of lousy markup — your pages might be generated by some kind of server-side framework over which you don't have full control, or you might have third party content on your page (such as ad banners) over which you have no control.
HTML: A good basis for accessibility - Learn web development
for example, a control button to play a video on your site could be marked up like this: <div>play video</div> but as you'll see in greater detail later on, it makes sense to use the correct element for the job: <button>play video</button> not only do html <button>s have some suitable styling applied by default (which you will probably want to over
ride), they also have built-in keyboard accessibility — users can navigate between buttons using the tab key and activate their selection using return or enter.
... sometimes you are not in the position to get
rid of lousy markup — your pages might be generated by some kind of server-side framework over which you don't have full control, or you might have third party content on your page (such as ad banners) over which you have no control.
How to build custom form controls - Learn web development
if you are lost with px to em conversion, try http://
riddle.pl/emcalc/ */ font-size : 0.625em; /* this (10px) is the new font size context for em value in this context */ font-family : verdana, arial, sans-serif; box-sizing : border-box; /* we need extra room for the down arrow we will add */ padding : .1em 2.5em .2em .5em; width : 10em; /* 100px */ border : .2em solid #000; border-radius : .4em; box-shadow : 0 .1em .
...for example, the <table> element matches the role g
rid, and the <ul> element matches the role list.
Other form controls - Learn web development
this is effectively the starting width, as it can be changed by resizing the <textarea>, and over
riden using css.
...this is effectively the starting height, as it can be changed by resizing the <textarea>, and over
riden using css.
Tips for authoring fast-loading HTML pages - Learn web development
layouts utilizing floats, positioning, flexbox, or g
rids should be used instead.
... </table> </table> </table> use non-nested tables or divs as in <table>...</table> <table>...</table> <table>...</table> see also: css flexible box layout and css g
rid layout specifications.
Making asynchronous programming easier with async and await - Learn web development
since an async keyword turns a function into a promise, you could refactor your code to use a hyb
rid approach of promises and await, bringing the second half of the function out into a new block to make it more flexible: async function myfetch() { let response = await fetch('coffee.jpg'); if (!response.ok) { throw new error(`http error!
... if you wanted to use the second (refactored) version of the code that we showed above, you would be better off just continuing the hyb
rid approach and chaining a .catch() block onto the end of the .then() call, like this: async function myfetch() { let response = await fetch('coffee.jpg'); if (!response.ok) { throw new error(`http error!
Manipulating documents - Learn web development
ference to our <section> element — add the following code at the bottom of your existing script (do the same with the other lines too): const sect = document.queryselector('section'); now let's create a new paragraph using document.createelement() and give it some text content in the same way as before: const para = document.createelement('p'); para.textcontent = 'we hope you enjoyed the
ride.'; you can now append the new paragraph at the end of the section using node.appendchild(): sect.appendchild(para); finally for this part, let's add a text node to the paragraph the link sits inside, to round off the sentence nicely.
...if you look at that paragraph in your browser's page inspector/dom inspector, you'll see that these lines are indeed adding inline styles to the document: <p style="color: white; background-color: black; padding: 10px; width: 250px; text-align: center;">we hope you enjoyed the
ride.</p> note: notice how the javascript property versions of the css styles are written in lower camel case whereas the css versions are hyphenated (e.g.
Useful string methods - Learn web development
ab character).</p> <textarea id="code" class="playable-code" style="height: 285px; width: 95%"> const list = document.queryselector('.output ul'); list.innerhtml = ''; let stations = ['man675847583748sjt567654;manchester piccadilly', 'gnf576746573fhdg4737dh4;greenfield', 'liv5hg65hd737456236dch46dg4;liverpool lime street', 'syb4f65hf75f736463;stalyb
ridge', 'hud5767ghtyfyr4536dh45dg45dg3;huddersfield']; for (let i = 0; i < stations.length; i++) { let input = stations[i]; // write your code just below here let result = input; let listitem = document.createelement('li'); listitem.textcontent = result; list.appendchild(listitem); } </textarea> <div class="playable-buttons"> <input id="reset" type="button" value="res...
...solution'; } updatecode(); }); const jssolution = 'const list = document.queryselector(\'.output ul\');' + '\nlist.innerhtml = \'\';' + '\nlet stations = [\'man675847583748sjt567654;manchester piccadilly\',' + '\n \'gnf576746573fhdg4737dh4;greenfield\',' + '\n \'liv5hg65hd737456236dch46dg4;liverpool lime street\',' + '\n \'syb4f65hf75f736463;stalyb
ridge\',' + '\n \'hud5767ghtyfyr4536dh45dg45dg3;huddersfield\'];' + '\n' + '\nfor (let i = 0; i < stations.length; i++) {' + '\n let input = stations[i];' + '\n let code = input.slice(0,3);' + '\n let semic = input.indexof(\';\');' + '\n let name = input.slice(semic + 1);' + '\n let result = code + \': \' + name;' + '\n let listitem = document.createelement(\'li\');' + '\n listi...
Getting started with Ember - Learn web development
native mobile apps ember can also be used with native mobile apps with a native-mobile b
ridge to javascript, such as that provided by corber.
... finally, find app.css, located at app/styles/app.css, and paste in the following: :focus, .view label:focus, .todo-list li .toggle:focus + label, .toggle-all:focus + label { /* !important needed because todomvc styles deliberately disable the outline */ outline: #d86f95 solid !important; } this css over
rides some of the styles provided by the todomvc-app-css npm package, therefore allowing keyboard focus to be visible.
Setting up your own test automation environment - Learn web development
, create a new file called lambdatest_google_test.js give it the following contents: const webdriver = require('selenium-webdriver'); by = webdriver.by, until = webdriver.until; // username: username can be found at automation dashboard const username = '{username}'; // accesskey: accesskey can be generated from automation dashboard or profile section const key = '{accesskey}'; // g
ridurl: g
ridurl can be found at automation dashboard const g
rid_host = 'hub.lambdatest.com/wd/hub'; function searchtextongoogle() { // setup input capabilities const capabilities = { platform: 'windows 10', browsername: 'chrome', version: '67.0', resolution: '1280x800', network: true, visual: true, console: true, video: true, name: '...
...test 1', // name of the test build: 'nodejs build' // name of the build }; // url: https://{username}:{accesstoken}@hub.lambdatest.com/wd/hub const g
ridurl = 'https://' + username + ':' + key + '@' + g
rid_host; // setup and build selenium driver object const driver = new webdriver.builder() .usingserver(g
ridurl) .withcapabilities(capabilities) .build(); // navigate to a url, search for a text and get title of page driver.get('https://www.google.com/ncr').then(function() { driver.findelement(webdriver.by.name('q')).sendkeys('lambdatest\n').then(function() { driver.gettitle().then(function(title) { settimeout(function() { console.log(title); driver.quit(); }, 5000); }); ...
Mozilla’s UAAG evaluation report
, for controlling popup behavior: turn window.open off for particular sites: user_pref("capability.policy.popupsites.sites", "http://www.annoyingsite1.com http://www.popupsite2.com"); user_pref("capability.policy.popupsites.windowinternal.open", "noaccess"); or turn it off everywhere: user_pref("capability.policy.default.windowinternal.open", "noaccess"); over
ride popping up new windows on target=anything: user_pref("browser.target_new_blocked", true); over
ride popup windows at beginning of new page load (blocks most popup advertisements): user_pref("dom.disable_open_during_load", true); 5.4 selection and focus in viewport.
... 11.3 over
ride bindings.
Adding a new CSS property
if you need custom parsing code, this can be inserted at one of two different places: you can over
ride the entire property value parsing by using css_property_parse_function, which is generally the right thing to do for shorthand properties.
... or, preferably, you can still use css_property_parse_value or ..._value_list and just over
ride the value parsing by setting css_property_value_parser_function.
Command line options
-over
ride /path/to/over
ride.ini load the specified over
ride.ini file to over
ride application.ini (browser/app/application.ini).
... this can be used to suppress the migration wizard at startup by loading the following over
ride.ini.
Creating a Login Manager storage module
over
riding the built-in login manager storage consists of two tasks: implement the nsiloginmanagerstorage interface.
...ls.jsm"); function sampleloginmanagerstorage() {} sampleloginmanagerstorage.prototype = { classdescription: "sample nsiloginmanagerstorage implementation", contractid: "@example.com/login-manager/storage/sample;1", classid: components.id("{364a118c-747a-4f6d-ac63-2d2998e5a5c1}"), queryinterface: xpcomutils.generateqi([ci.nsiloginmanagerstorage]), // this registers the category for over
riding the built-in nsiloginmanagerstorage _xpcom_categories: [ { category: "login-manager-storage", entry: "nsiloginmanagerstorage" } ], // console logging service, used for debugging.
Makefile - variables
xpidl_name name of extension to build see also configure.sh variables description build_project_arg command line/environment over
ride configure_env_args command line/environment over
ride directory variable dirs a list of subdirectories to build recursively.
... module_optimize_flags additional flags for enabling or over
riding compiler optimizations(-o2).
SVG Guidelines
you can also use svg grouping to avoid duplicating those attributes avoid introducing variants of the same file (color/style variants), and use sprites instead (with class names) default style values there's usually no need to set the default style value unless you're over
riding a style.
... that cover parts of this document: mostly complete command line tool: https://github.com/svg/svgo alternatives to svgo: https://github.com/razrfalcon/svgcleaner https://github.com/scour-project/scour gui for command line tool (use with "prettify code" and "remove <title>" options on): https://jakearchibald.github.io/svgomg/ good alternative to svgo/svgomg: https://petercolling
ridge.appspot.com/svg-editor fixes the excessive number precision: https://simon.html5.org/tools/js/svg-optimizer/ converts inline styles to svg attributes: https://www.w3.org/wiki/svgtidy raphaeljs has a couple of utilities that may be useful: raphael.js ...
Displaying Places information using views
because of placestreeview's double duty, you can use it to b
ridge a query result and a tree element: var result = historyservice.executequery(query, opts); // your places query result var tree = document.getelementbyid("mytree"); // your tree element var showrootnodeintree = true; var view = new placestreeview(showrootnodeintree); // here's the b
ridge!
... the following javascript creates a new placestreeview instance but over
rides two of its nsitreeview methods to display columns not present in the built-in tree view: var view = new placestreeview(); view._getcelltext = view.getcelltext; view.getcelltext = function (arowindex, acol) { // handle our special columns.
Experimental features in Firefox
nightly 70 no developer edition 70 no beta 70 no release 70 no preference name layout.css.backdrop-filter.enabled g
rid: masonry layout adds support for a masonry style layout based on g
rid layout where one axis has a masonry layout while having normal g
rid layout on the other.
... nightly 77 no developer edition 77 no beta 77 no release 77 no preference name layout.css.g
rid-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.
Embedding Tips
embedders may wish to over
ride some of the default service implementations with their own.
...you can over
ride this default using the "general.useragent.over
ride" preference.
How Mozilla determines MIME Types
this is, however, over
ridden by the actual mime type the server sends (if any).
... (for this specific example, the server over
ride only happens in standards-compliant mode.
Extending a Protocol
class echochild final : public pechochild { friend class pechochild; // allows us to participate in reference counting ns_inline_decl_threadsafe_refcounting(echochild, final) public: explicit echochild(); protected: void actordestroy(actordestroyreason awhy) over
ride; // we get sendecho(nscstring& astring) from the superclass.
... mozilla::ipc::ipcresult recvecho(const nscstring& astring, echoparent::echoresolver&& aresolver); mozilla::ipc::ipcresult recv__delete__() over
ride; void actordestroy(actordestroyreason awhy) over
ride; private: ~echoparent() = default; bool mactoralive; }; } // end of namespace dom } // end of namespace mozilla #endif now, and add the echoparent.h to dom/ipc/moz.build, as part of the exports.mozilla.dom array.
IPDL Tutorial
note: __delete__ is a built-in construct, and is the only ipdl message which does not require an over
ridden implementation (ie.
... however, over
ridden implementations are encouraged when some action should happen on protocol destruction in lieu of using the deallocpprotocol function.
source-editor.jsm
this value is over
ridden by the user preference named by sourceeditor.prefs.expand_tab.
...this default can be over
ridden by the user preference named by sourceeditor.prefs.tab_size.
Localizing extension descriptions
the localization information provided by the em:localized property can be over
riden using a set of localized preferences as detailed below.
... metadata can be localized using this process: name description creator homepageurl localizable lists in cases where multiple values can exist, a numeric index is appended to the end of the preference name: extensions.extension_id.contributor.1=first_localized_contributor_name extensions.extension_id.contributor.2=second_localized_contributor_name extensions.extension_id.contributor.3=th
rid_localized_contributor_name pref("extensions.extension_id.contributor.1", "path_to_localization_file"); pref("extensions.extension_id.contributor.2", "path_to_localization_file"); pref("extensions.extension_id.contributor.3", "path_to_localization_file"); the following add-on metadata can be localized using this process: developer translator contributor ...
An overview of NSS Internals
the goal is to eventually find a certificate b (or c or ...) that has an appropriate trust assigned (e.g., because it can be found in the ckbi module and the user hasn't made any over
riding trust decisions, or it can be found in a nss database file managed by the user or by the local environment).
... if a programmer wants to influence how nss verifies certificates or how nss verifies the data presented in a ssl connection handshake, it is possible to register application-defined callback functions which will be called by nss at the appropriate point of time, and which can be used to over
ride the decisions made by nss.
NSS_3.12_release_notes.html
e bug 390209: pkix aia manager tries to get certs using aia url with ocsp access method bug 390233: umbrella bug for libpkix cert validation failures discovered from running vfyserv bug 390499: libpkix does not check cached cert chain for revocation bug 390502: libpkix fails cert validation when no valid crl (nist validation policy is always enforced) bug 390530: libpkix does not support time over
ride bug 390536: cert validation functions must validate leaf cert themselves bug 390554: all pkix_nullcheck_ errors are reported as pkix alloc error bug 390888: cert_verify* functions should be able to use libpkix bug 391457: libpkix does not check for object ref leak at shutdown bug 391774: pkix_shutdown is not called by nssinit.c bug 393174: memory leaks in ocspclnt/pkix.
... all new pkix code bug 300928: integrate libpkix to nss bug 303457: extensions newly supported in libpkix must be marked supported bug 331096: nss softoken must detect forks on all unix-ish platforms bug 390710: certnameconstraintstemplate is incorrect bug 416928: der decode error on this policy extension bug 375019: cache-enable pkix_ocspchecker_check bug 391454: libpkix does not honor nss's over
ride trust flags bug 403682: cert_pkixverifycert never succeeds bug 324744: add generation of policy extensions to certutil bug 390973: add long option names to secu_parsecommandline bug 161326: need api to convert dotted oid format to/from octet representation bug 376737: cert_importcerts routinely sets valid_peer or valid_ca over
ride trust flags bug 390381: libpkix rejects cert chain when root ca c...
NSS API Guidelines
destruction functions in the security library we have 3 different ways of saying 'get
rid of this data object': free, delete, and destroy.
... it turns out there are several different semantics of getting
rid of a data object too: decrement the reference count, and when the object goes to '0' free/delete/destroy it destroy it right now, this very instance, not matter what make any permanent objects associated with this data object go away a combination of 1 and 3, or 2 and 3 unfortunately, within the security library free, delete, and destroy are all used interchangeably, for all sorts of object destruction.
nss tech note6
the following applies to nss 3.8 through 3.10 : on 32-bit solaris sparc (i.e., not x86, and not 64-bit sparc) and 32-bit hp-ux pa-risc (i.e., not itanium, and not 64-bit pa-risc), there are two more .chk files: libfreebl_pure32_3.chk and libfreebl_hyb
rid_3.chk.
... specifically, do not modify libsoftokn3.so, libsoftokn3.sl, softokn3.dll, libfreebl_pure32_3.so, libfreebl_pure32_3.sl, libfreebl_hyb
rid_3.so, libfreebl_hyb
rid_3.sl, libfreebl3.so, libfreebl3.sl, freebl3.dll, libfreebl_32int64_3.so, libfreebl_32int_3.so, libfreebl_32fpu_3.so, libfreebl_64int_3.so, libfreebl_64fpu_3.so, libfreebl_32int_3.sl, libfreebl_32fpu_3.sl; or 2.
FC_GetTokenInfo
manufacture
rid: id of the device manufacturer, "mozilla foundation", padded with spaces to 32 characters and not null-terminated.
... examples note the use of the %.32s format string to print the label and manufacture
rid members of the ck_token_info structure.
JSNewEnumerateOp
this callback over
rides a portion of spidermonkey's default [[enumerate]] internal method.
...this callback over
rides a portion of spidermonkey's default [[enumerate]] internal method.
JS_GetGCParameter
jsgc_nursery_free_threshold_for_idle_collection / "nurseryfreethresholdfo
ridlecollection" collect the nursery in idle time if it has less than this many bytes of free space.
... jsgc_nursery_free_threshold_for_idle_collection_percent / "nurseryfreethresholdfo
ridlecollectionpercent" collect the nursery in idle time if it has less than this percentage of capacity free (value from 0 - 99).
SpiderMonkey 1.8.8
in the long run we anticipate removing the environment variable-based over
riding when we drop support for versions of visual studio prior to 2010.
... in the meantime moz_custom_stdint_h is intended to function as a b
ridge to always using the standard header.
SpiderMonkey 17
in the long run we anticipate removing the environment variable-based over
riding when we drop support for versions of visual studio prior to 2010.
... in the meantime moz_custom_stdint_h is intended to function as a b
ridge to always using the standard header.
SpiderMonkey 24
in the long run we anticipate removing the environment variable-based over
riding when we drop support for versions of visual studio prior to 2010.
... in the meantime moz_custom_stdint_h is intended to function as a b
ridge to always using the standard header.
Gecko object attributes
object attributes are relevant for the entire subtree of the object they are on, unless they are over
ridden by a descendent with the same object attribute.
... applied to: g
rid, heading, listitem, row, tablist exposed in aria: aria-level posinset if this item is in a group, what is the item number within the group, where the size is defined by the setsize attribute.
Using the Places livemark service
var newlvmkid = livemarkservice.createlivemark(parentfolde
rid, "livemark name", uri("http://example.com/"), uri("http://example.com/rss.xml"), -1); the first parameter is the id of the folder in which to create the livemark.
... determine whether a folder is a livemark you can use the nsilivemarkservice.islivemark() method to determine whether or not a given folder is a livemark container: if (livemarkservice.islivemark(folde
rid)) { // it's a livemark } else { // it's not a livemark } accessing the container's site uri the nsilivemarkservice.getsiteuri() method lets you obtain the nsiuri of the website associated with a livemark container.
An Overview of XPCOM
when a class inherits from another class, the inheriting class may over
ride the default behaviors of the base class without having to copy all of that class's code, in effect creating a more specific class, as in the following example: simple class inheritance class shape { private: int m_x; int m_y; public: virtual void draw() = 0; shape(); virtual ~shape(); }; class circle : public shape { private: int m_radius; public: virtual ...
...this difference between a contract id and a cid is what makes it possible to over
ride components.
Component Internals
xpcom uses the component manifest to determine which components have been over
ridden.
...it provides a b
ridge, or "glue" layer, between your component and xpcom.
PyXPCOM
pyxpcom is similar to javaxpcom (java-xpcom b
ridge) or xpconnect (javascript-xpcom b
ridge).
... getting to know pyxpcom pyxpcom is a b
ridging technology between xpcom and python.
Architecture basics
you can imagine it like a b
ridge between javascript code, and mozilla guts.
...it's an interactive interpreter -- it gives you a shell that talks straight to mozilla, via javascript's xpconnect b
ridge into it.
nsIAppShellService
can be over
ridden by the "width" tag in the xul.
...can be over
ridden by the "height" tag in the xul.
nsIDOMParser
these values are automatically determined as defined below, but if you work with domparser from privileged code, you can over
ride the defaults by providing arguments to the domparser constructor or calling parser.init().
... the first parameter is the principal to use; this over
rides the default principal normally inherited.
nsIDragDropHandler
hookupto() attaches drag handlers to a specified receiver, setting up callbacks to let built-in behaviors be over
ridden.
...if this is null, the client must handle the drop itself, either through the method provided via over
ridedrop() or by letting the event bubble up through the dom.
nsIEditor
saction(); void beginplaceholdertransaction(in nsiatom name); void endplaceholdertransaction(); boolean shouldtxnsetselection(); void setshouldtxnsetselection(in boolean should); inline spellchecking methods nsiinlinespellchecker getinlinespellchecker(in boolean autocreate); void syncrealtimespell(); void setspellcheckuserover
ride(in boolean enable); clipboard methods void cut(); boolean cancut(); void copy(); boolean cancopy(); void paste(in long aselectiontype); boolean canpaste(in long aselectiontype); selection methods void selectall(); void beginningofdocument(); void endofdocument(); drag/drop methods ...
...editorapi.outputtostring('text/html', 8); // xml: all in xml with _moz_dirty="" in new tags, html tags are in upper case // application/xhtml+xml format do the same editorapi.outputtostring('text/xml', 2); // the body is not recognized, everything is printed void outputtostream(in nsioutputstream astream, in astring formattype, in acstring charsetover
ride, in unsigned long flags); listener methods void addeditorobserver(in nsieditorobserver observer);obsolete since gecko 18 void seteditorobserver(in editactionlistener observer); void removeeditorobserver(in nsieditorobserver observer obsolete since gecko 18); void addeditactionlistener(in nsieditactionlistener listener); void removeeditactionl...
nsIHTMLEditor
example: aproperty="font", aattribute="color", avalue="0x00ffff" addinsertionlistener() add listener for insertion over
ride.
... removeinsertionlistener() remove listener for insertion over
ride.
nsIHttpServer
* * @param path * the absolute path on the server against which requests will be served * from dir (e.g., "/", "/foo/", etc.); must begin and end with a forward * slash * @param dir * the directory to be used to serve all requests for paths underneath path * (except those further over
ridden by another, deeper path registered with * another directory); if null, any current mapping for the given path is * removed * @throws ns_error_invalid_arg * if dir is non-null and does not exist or is not a directory, or if path * does not begin with and end with a forward slash */ void registerdirectory(in string path, in nsifile dir); /** * associates files w...
...*/ readonly attribute nsihttpserve
ridentity identity; /** * retrieves the string associated with the given key in this, for the given * path's saved state.
nsIIOService
if the given port is considered unsafe, then the protocol handler (corresponding to ascheme) will be asked whether it wishes to over
ride the io service's decision to block the port.
... boolean allowport( in long aport, in string ascheme ); parameters aport the port to check ascheme the scheme for the protocol handler that could over
ride the ioservice's decision.
nsILivemarkService
n long long folder, in astring name, in nsiuri siteuri, in nsiuri feeduri, in long index); nsiuri getfeeduri(in long long container); long long getlivemarkidforfeeduri(in nsiuri afeeduri); nsiuri getsiteuri(in long long container); boolean islivemark(in long long folder); void reloadalllivemarks(); void reloadlivemarkfolder(in long long folde
rid); void setfeeduri(in long long container, in nsiuri feeduri); void setsiteuri(in long long container, in nsiuri siteuri); void start(); void stopupdatelivemarks(); methods createlivemark() creates a new livemark.
... void reloadlivemarkfolder( in long long folde
rid ); parameters folde
rid the id of the folder to be reloaded.
nsIPrefService
is used, the branch will be able to easily access the preferences browser.startup.page, browser.startup.homepage, and browser.startup.homepage_over
ride by simply requesting page, homepage, or homepage_over
ride.
...is used, the branch will be able to easily access the preferences browser.startup.page, browser.startup.homepage, and browser.startup.homepage_over
ride by simply requesting page, homepage, or homepage_over
ride.
nsIUpdateTimerManager
preference the preference for the timer interval; this allows a preference to over
ride the default interval.
... this can be an empty string if the default interval should not be over
ridden.
XPIDL
over
rides native string.
...over
rides native string.
Address Book examples
in either case, you'll need: a factory object implementing nsiabdirfactory a directory object implementing nsiabdirectory if you are using c++, you can inherit from nsabdirproperty and over
ride functions for your specific implementation to save implementing all the functions on nsiabdirectory yourself.
...these can be over
ridden by calling registerphotohandler with these identifiers and a custom photo handler.
Plug-in Basics - Plugins
though the object element has no hidden attribute, you can create css rules to over
ride the sizing attributes of the object element object { visibility: visible; } object.hiddenobject { visibility: hidden !important; width: 0px !important; height: 0px !important; margin: 0px !important; padding: 0px !important; border-style: none !important; border-width: 0px !important; max-width: 0px !important; max-height: ...
...in fact, hidden over
rides those attributes if they are present.
Page inspector 3-pane mode - Firefox Developer Tools
having the css rules in their own pane is very useful because it allows you to not only inspect your html and edit the css applied to it, but also see the effect this has on css features such as computed styles and g
rids in real time.
...for example, you could edit a css g
rid property and observe the change immediately in the g
rid inspector.
BluetoothDevice - Web APIs
bluetoothdevice.vendo
ridsource read only the vendor id source field in the pnp_id characteristic in the device_information service.
... bluetoothdevice.vendo
rid read only the 16-bit vendor id field in the pnp_id characteristic in the device_information service.
Using dynamic styling information - Web APIs
also, when you set this property on an element, you over
ride any styles that have been set elsewhere for that element's particular property you are setting.
... setting the border property, for example, will over
ride settings made elsewhere for that element's border property in the head section, or external style sheets.
CanvasRenderingContext2D.setTransform() - Web APIs
the canvasrenderingcontext2d.settransform() method of the canvas 2d api resets (over
rides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.
... note: see also the transform() method; instead of over
riding the current transform matrix, it multiplies it with a given one.
Document.characterSet - Web APIs
users can over
ride the developer-specified encoding inside the content-type header or inline like <meta charset="utf-8">, such as with firefox's view → text encoding menu.
... this over
ride is provided to fix incorrect developer-specified encodings that result in garbled text.
Using files from web applications - Web APIs
loaded * 100) / e.total); self.ctrl.update(percentage); } }, false); xhr.upload.addeventlistener("load", function(e){ self.ctrl.update(100); const canvas = self.ctrl.ctx.canvas; canvas.parentnode.removechild(canvas); }, false); xhr.open("post", "http://demos.hacks.mozilla.org/paul/demos/resources/webservices/devnull.php"); xhr.over
ridemimetype('text/plain; charset=x-user-defined-binary'); reader.onload = function(evt) { xhr.send(evt.target.result); }; reader.readasbinarystring(file); } the fileupload() function shown above creates a throbber, which is used to display progress information, and then creates an xmlhttprequest to handle uploading the data.
... the mime type for the upload is set by calling the xmlhttprequest function over
ridemimetype().
GeolocationCoordinates.longitude - Web APIs
note: the zero me
ridian (also known as the prime me
ridian or the reference me
ridian) is not precisely the same as the greenwhich me
ridian that most people think of.
... it is, instead, the iers reference me
ridian, which is located 5.3 arcseconds (102 meters / 335 feet) east of the greenwich me
ridian.
Navigator.oscpu - Web APIs
of uname -s plus "i686 on x86_64" linux output of uname -sm x.y refers to the version of the operating system example function osinfo() { alert(window.navigator.oscpu); } osinfo(); // alerts "windows nt 6.0" for example usage notes unless your code is privileged (chrome or at least has the universalbrowserread privilege), it may get the value of the general.oscpu.over
ride preference instead of the true platform.
... specifications specification status comment html living standardthe definition of 'navigato
rid: oscpu' in that specification.
PasswordCredential - Web APIs
this property defaults to 'username', but may be over
ridden to match whatever the backend service expects.
...this property defaults to 'password', but may be over
ridden to match whatever the backend service expects.
PointerEvent.PointerEvent() - Web APIs
pointereventinitoptional is a pointereventinit dictionary, having the following fields: pointe
rid — optional and defaulting to 0, of type long, that sets the value of the instance's pointerevent.pointe
rid.
... example var moveevent = new pointerevent("pointermove"); var downevent = new pointerevent("pointerdown", {pointe
rid: 1, bubbles: true, cancelable: true, pointertype: "touch", width: 100, height: 100, isprimary: true }); ...
Using the Screen Capture API - Web APIs
tdisplaymedia() var displaymediaoptions = { video: { cursor: "always" }, audio: false }; // set event listeners for the start and stop buttons startelem.addeventlistener("click", function(evt) { startcapture(); }, false); stopelem.addeventlistener("click", function(evt) { stopcapture(); }, false); logging content to make logging of errors and other issues easy, this example over
rides certain console methods to output their messages to the <pre> block whose id is log.
... async function startcapture() { logelem.innerhtml = ""; try { videoelem.srcobject = await navigator.mediadevices.getdisplaymedia(displaymediaoptions); dumpoptionsinfo(); } catch(err) { console.error("error: " + err); } } after clearing the contents of the log in order to get
rid of any leftover text from the previous attempt to connect, startcapture() calls getdisplaymedia(), passing into it the constraints object defined by displaymediaoptions.
USB.requestDevice() - Web APIs
each filter object can have the following properties: vendo
rid productid classcode subclasscode protocolcode serialnumber return value a promise that resolves with an instance of usbdevice.
... const filters = [ {vendo
rid: 0x1209, productid: 0xa800}, {vendo
rid: 0x1209, productid: 0xa850} ]; navigator.usb.requestdevice({filters: filters}) .then(usbdevice => { console.log("product name: " + usbdevice.productname); }) .catch(e => { console.log("there is no device.
WebGL2RenderingContext.getActiveUniforms() - Web APIs
gl.uniform_array_st
ride: returns an array of glint indicating the st
rides between the elements.
... gl.uniform_matrix_st
ride: returns an array of glint indicating the st
rides between columns of a column-major matrix or a row-major matrix.
WebGL2RenderingContext.vertexAttribIPointer() - Web APIs
syntax void gl.vertexattribipointer(index, size, type, st
ride, offset); parameters index a gluint specifying the index of the vertex attribute that is to be modified.
... st
ride a glsizei specifying the offset in bytes between the beginning of consecutive vertex attributes.
WebGL constants - Web APIs
vertex_attrib_array_enabled 0x8622 vertex_attrib_array_size 0x8623 vertex_attrib_array_st
ride 0x8624 vertex_attrib_array_type 0x8625 vertex_attrib_array_normalized 0x886a vertex_attrib_array_pointer 0x8645 vertex_attrib_array_buffer_binding 0x889f culling constants passed to webglrenderingcontext.cullface().
...combined_vertex_uniform_components 0x8a31 max_combined_fragment_uniform_components 0x8a33 uniform_buffer_offset_alignment 0x8a34 active_uniform_blocks 0x8a36 uniform_type 0x8a37 uniform_size 0x8a38 uniform_block_index 0x8a3a uniform_offset 0x8a3b uniform_array_st
ride 0x8a3c uniform_matrix_st
ride 0x8a3d uniform_is_row_major 0x8a3e uniform_block_binding 0x8a3f uniform_block_data_size 0x8a40 uniform_block_active_uniforms 0x8a42 uniform_block_active_uniform_indices 0x8a43 uniform_block_referenced_by_vertex_shader 0x8a44 uniform_...
Adding 2D content to a WebGL context - Web APIs
{ const numcomponents = 2; // pull out 2 values per iteration const type = gl.float; // the data in the buffer is 32bit floats const normalize = false; // don't normalize const st
ride = 0; // how many bytes to get from one set of values to the next // 0 = use type and numcomponents above const offset = 0; // how many bytes inside the buffer to start from gl.bindbuffer(gl.array_buffer, buffers.position); gl.vertexattribpointer( programinfo.attriblocations.vertexposition, numcomponents, type, ...
... normalize, st
ride, offset); gl.enablevertexattribarray( programinfo.attriblocations.vertexposition); } // tell webgl to use our program when drawing gl.useprogram(programinfo.program); // set the shader uniforms gl.uniformmatrix4fv( programinfo.uniformlocations.projectionmatrix, false, projectionmatrix); gl.uniformmatrix4fv( programinfo.uniformlocations.modelviewmatrix, false, modelviewmatrix); { const offset = 0; const vertexcount = 4; gl.drawarrays(gl.triangle_strip, offset, vertexcount); } } the first step is to clear the canvas to our background color; then we establish the camera's perspective.
Movement, orientation, and motion: A WebXR example - Web APIs
atrix, modelviewmatrix); mat4.transpose(normalmatrix, normalmatrix); displaymatrix(view.projectionmatrix, 4, projectionmatrixout); displaymatrix(modelviewmatrix, 4, modelmatrixout); displaymatrix(view.transform.matrix, 4, cameramatrixout); displaymatrix(mousematrix, 4, mousematrixout); { const numcomponents = 3; const type = gl.float; const normalize = false; const st
ride = 0; const offset = 0; gl.bindbuffer(gl.array_buffer, buffers.position); gl.vertexattribpointer( programinfo.attriblocations.vertexposition, numcomponents, type, normalize, st
ride, offset); gl.enablevertexattribarray( programinfo.attriblocations.vertexposition); } { const numcomponents = 2; const type = gl.float...
...; const normalize = false; const st
ride = 0; const offset = 0; gl.bindbuffer(gl.array_buffer, buffers.texturecoord); gl.vertexattribpointer( programinfo.attriblocations.texturecoord, numcomponents, type, normalize, st
ride, offset); gl.enablevertexattribarray( programinfo.attriblocations.texturecoord); } { const numcomponents = 3; const type = gl.float; const normalize = false; const st
ride = 0; const offset = 0; gl.bindbuffer(gl.array_buffer, buffers.normal); gl.vertexattribpointer( programinfo.attriblocations.vertexnormal, numcomponents, type, normalize, st
ride, offset); gl.enablevertexattribarray( programinfo.attriblocat...
Advanced techniques: Creating and sequencing audio - Web APIs
while (nextnotetime < audioctx.currenttime + scheduleaheadtime ) { schedulenote(currentnote, nextnotetime); nextnote(); } time
rid = window.settimeout(scheduler, lookahead); } we also need a draw function to update the ui, so we can see when the beat progresses.
... this.dataset.playing = 'true'; } else { window.cleartimeout(time
rid); this.dataset.playing = 'false'; } }) }); summary we've now got an instrument inside our browser!
Background audio processing using AudioWorklet - Web APIs
lifetime of an audio worklet processor the only means by which you can influence the lifespan of your audio worklet processor is through the value returned by process(), which should be a boolean value indicating whether or not to over
ride the user agent's decision-making as to whether or not your node is still in use.
...in other words, true over
rides the api's logic and gives you control over your processor's lifetime policy, keeping the processor's owning audioworkletnode running even when it would otherwise decide to shut down the node.
XMLHttpRequest.responseXML - Web APIs
if the server doesn't specify the content-type as "text/xml" or "application/xml", you can use xmlhttprequest.over
ridemimetype() to parse it as xml anyway.
... example var xhr = new xmlhttprequest; xhr.open('get', '/server'); // if specified, responsetype must be empty string or "document" xhr.responsetype = 'document'; // force the response to be parsed as xml xhr.over
ridemimetype('text/xml'); xhr.onload = function () { if (xhr.readystate === xhr.done && xhr.status === 200) { console.log(xhr.response, xhr.responsexml); } }; xhr.send(); specifications specification status comment xmlhttprequestthe definition of 'responsexml' in that specification.
Using ARIA: Roles, states, and properties - Accessibility
roles widget roles button checkbox g
ridcell link menuitem menuitemcheckbox menuitemradio option progressbar radio scrollbar searchbox separator (when focusable) slider spinbutton switch tab tabpanel textbox treeitem composite roles the techniques below describe each composite role as well as their required and optional child roles.
... combobox g
rid (including row, g
ridcell, rowheader, columnheader roles) listbox (including option role) menu menubar radiogroup (see radio role) tablist (including tab and tabpanel roles) tree treeg
rid document structure roles application article cell columnheader definition directory document feed figure group heading img list listitem math none note presentation row rowgroup rowheader separator table term textbox toolbar tooltip landmark roles banner complementary contentinfo form main navigation region search live region roles alert log marquee status timer window roles alertdialog dialog states and properties widget attributes aria-autocomplete aria-checked aria-current aria-disabled aria-errormessag...
Web applications and ARIA FAQ - Accessibility
it also provides additional structural information, helping authors identify landmarks, regions, and g
rids on their pages.
... aria provides a b
ridge between the world of the dom and the desktop.
Multipart labels: Using ARIA for labels with embedded fields inside them - Accessibility
both aria-labelledby and aria-describedby are specified on the form element that is to be labelled, for example an <input> in both cases, the label for/label control bindings that may also exist are over
ridden by aria-labelledby.
...ter minutes <input aria-labelledby="labelshutdown shutdowntime shutdownunit" type="checkbox" /> <span id="labelshutdown">shut down computer after</span> <input aria-labelledby="labelshutdown shutdowntime shutdownunit" id="shutdowntime" type="text" value="10" /> <span id="shutdownunit"> minutes</span> a note for jaws 8 users jaws 8.0 has its own logic to find labels, causing it to always over
ride the accessiblename the textbox of an html document gets.
Keyboard-navigable JavaScript widgets - Accessibility
grouping controls for grouping widgets such as menus, tablists, g
rids, or tree views, the parent element should be in the tab order (tabindex="0"), and each descendent choice/tab/cell/row should be removed from the tab order (tabindex="-1").
... managing focus inside groups when a user tabs away from a widget and returns, focus should return to the specific element that had focus, for example, the tree item or g
rid cell.
-moz-image-rect - CSS: Cascading Style Sheets
; } html the html is quite simple: <div id="container" onclick="rotate()"> <div id="box1" style="left:0px;top:0px;">top left</div> <div id="box2" style="left:133px;top:0px;">top right</div> <div id="box3" style="left:0px;top:136px;">bottom left</div> <div id="box4" style="left:133px;top:136px;">bottom right</div> </div> this places the four segments of our image in a two-by-two box g
rid.
... function rotate() { var prevstyle = window.getcomputedstyle(document.getelementbyid("box4"), null).getpropertyvalue("background-image"); // now that we've saved the last one, start rotating for (var i=1; i<=4; i++) { var cu
rid = "box" + i; // shift the background images var curstyle = window.getcomputedstyle(document.getelementbyid(cu
rid), null).getpropertyvalue("background-image"); document.getelementbyid(cu
rid).style.backgroundimage = prevstyle; prevstyle = curstyle; } } this uses window.getcomputedstyle() to fetch the style of each element, shifting it to the following element.
::selection - CSS: Cascading Style Sheets
-selection { color: gold; background-color: red; } p::-moz-selection { color: white; background-color: blue; } /* make selected text gold on a red background */ ::selection { color: gold; background-color: red; } /* make selected text in a paragraph white on a blue background */ p::selection { color: white; background-color: blue; } result accessibility concerns don't over
ride selected text styles for purely aesthetic reasons — users can customize them to suit their needs.
... if over
ridden, it is important to ensure that the contrast ratio between the text and background colors of the selection is high enough that people experiencing low vision conditions can read it.
:where() - CSS: Cascading Style Sheets
to make selecting the links inside them simpler, but still distinct, we could use :is() or :where(), in the following manner: html { font-family: sans-serif; font-size: 150%; } :is(section.is-styling, aside.is-styling, footer.is-styling) a { color: red; } :where(section.where-styling, aside.where-styling, footer.where-styling) a { color: orange; } however, what if we later want to over
ride the color of links in the footers using a simple selector?
... however, selectors inside :where() have specificity 0, so the orange footer link will be ove
ridden by our simple selector.
prefers-color-scheme - CSS: Cascading Style Sheets
if you have set privacy.resistfingerprinting to true, prefers-color-scheme preference is over
ridden to light.
... alternately, users can create the numeric preference ui.systemusesdarktheme to over
ride the default behavior and return light (value: 0), dark (value: 1), or no-preference (value: 2).
@supports - CSS: Cascading Style Sheets
@supports (display: g
rid) { div { display: g
rid; } } @supports not (display: g
rid) { div { float: right; } } in javascript, @supports can be accessed via the css object model interface csssupportsrule.
...the following examples are both valid: @supports not (not (transform-origin: 2px)) {} @supports (display: g
rid) and (not (display: inline-g
rid)) {} note: there is no need to enclose the not operator between two parentheses at the top level.
Border-image generator - CSS: Cascading Style Sheets
"> border-image-repeat: </span> <span id="out-border-repeat" class="value"> </span> </div> <div class="css-property"> <span class="name"> border-image-source: </span> <span id="out-border-source" class="value"> </span> </div> </div> </div> </div> css content /* g
rid 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...
...======================================================================= */ .section { clear: both; padding: 0px; margin: 0px; } /* grouping * ========================================================================== */ .group:before, .group:after { content: ""; display: table; } .group:after { clear:both; } .group { zoom: 1; /* for ie 6/7 (trigger haslayout) */ } /* g
rid column setup * ========================================================================== */ .col { display: block; float:left; margin: 1% 0 1% 1.6%; } .col:first-child { margin-left: 0; } /* all browsers except ie6 and lower */ /* * ui component */ .ui-input-slider { height: 20px; font-family: "segoe ui", arial, helvetica, sans-serif; -moz-user-select: none; user-select: none; }...
Border-radius generator - CSS: Cascading Style Sheets
<div class="ui-checkbox" data-topic='top-right'></div> <div class="ui-checkbox" data-topic='bottom-right'></div> <div class="ui-checkbox" data-topic='bottom-left'></div> </div> <div id="unit-selection"> <div class="info"> select border units </div> </div> </div> </div> </div> css content /* g
rid 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...
...======================================================================= */ .section { clear: both; padding: 0px; margin: 0px; } /* grouping * ========================================================================== */ .group:before, .group:after { content: ""; display: table; } .group:after { clear:both; } .group { zoom: 1; /* for ie 6/7 (trigger haslayout) */ } /* g
rid column setup * ========================================================================== */ .col { display: block; float:left; margin: 1% 0 1% 1.6%; } .col:first-child { margin-left: 0; } /* all browsers except ie6 and lower */ /* * ui component */ .ui-input-slider-container { height: 20px; margin: 10px 0; font-family: "segoe ui", arial, helvetica, sans-serif; -moz-user-select: n...
Box alignment in Flexbox - CSS: Cascading Style Sheets
the first item over
rides the align-items values set on the group by setting align-self to center.
... reference css properties justify-content align-content place-content justify-items align-items place-items align-self row-gap column-gap gap glossary entries cross axis main axis guides alignment in flexbox external resources box alignment cheatsheet css g
rid, flexbox and box alignment thoughts on partial implementations of box alignment ...
Basic concepts of flexbox - CSS: Cascading Style Sheets
this can be contrasted with the two-dimensional model of css g
rid layout, which controls columns and rows together.
... after a while, thinking about start and end rather than left and right becomes natural, and will be useful to you when dealing with other layout methods such as css g
rid layout which follow the same patterns.
Variable fonts guide - CSS: Cascading Style Sheets
the option to provide a specific value is provided so that should it be necessary to over
ride the default — for legibility, aesthetic, or some other reason — a specific value can be applied.
...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 over
riding a single variable rather than rewriting the whole string.
CSS values and units - CSS: Cascading Style Sheets
in the css specifications, values that can be defined by the web developer, like keyframe animations, font-family names, or g
rid areas are listed as a <custom-ident>, <string>, or both.
...for example, the value of g
rid-area can be a <custom-ident>, so if we had a g
rid area named content we would use it without quotes: .item { g
rid-area: content; } in comparison, a data type that is a <string>, such as a string value of the content property, must be quoted: .item::after { content: "this is my content."; } while you can generally create any name you want, including using emojis, the identifier can't be none, uns...
Introducing the CSS Cascade - CSS: Cascading Style Sheets
user stylesheets the user (or reader) of the web site can choose to over
ride styles in many browsers using a custom user stylesheet designed to tailor the experience to the user's wishes.
... css cascading and inheritance level 3 candidate recommendation removed the over
ride cascade origin, as it was never used in a w3c standard.
Mozilla CSS extensions - CSS: Cascading Style Sheets
-moz-column-rule [prefixed version still accepted] -moz-column-rule-width [prefixed version still accepted] -moz-column-rule-style [prefixed version still accepted] -moz-column-rule-color [prefixed version still accepted] -moz-context-properties f–m filter [applying to more than svg] -moz-font-feature-settings [prefixed version still accepted] -moz-font-language-over
ride [prefixed version still accepted] -moz-hyphens [prefixed version still accepted] -moz-margin-end [superseded by the standard version margin-inline-end] -moz-margin-start [superseded by the standard version margin-inline-start] mask [applying to more than svg] o -moz-opacityobsolete since gecko 1.9.1 -moz-outlineobsolete since gecko 1.9.2 -moz-outline-colorobsolete since ge...
...htshadow -moz-mac-accentregularhighlight -moz-mac-accentregularshadow -moz-mac-chrome-active -moz-mac-chrome-inactive -moz-mac-focusring -moz-mac-menuselect -moz-mac-menushadow -moz-mac-menutextselect -moz-menuhover -moz-menuhovertext -moz-win-communicationstext -moz-win-mediatext -moz-nativehyperlinktext display -moz-box -moz-inline-block -moz-inline-box -moz-inline-g
ridobsolete since gecko 62 -moz-inline-stackobsolete since gecko 62 -moz-inline-table -moz-g
ridobsolete since gecko 62 -moz-g
rid-groupobsolete since gecko 62 -moz-g
rid-lineobsolete since gecko 62 -moz-groupbox -moz-deckobsolete since gecko 62 -moz-popupobsolete since gecko 62 -moz-stackobsolete since gecko 62 -moz-markerobsolete since gecko 62 empty-cells -moz-show-background (def...
CSS reference - CSS: Cascading Style Sheets
nabledenv()exffallback (@counter-style)filter<filter-function>:first:first-child::first-letter (:first-letter)::first-line (:first-line):first-of-typefit-content()<flex>flexflex-basisflex-directionflex-flowflex-growflex-shrinkflex-wrapfloat:focusfont@font-facefont-familyfont-family (@font-face)font-feature-settingsfont-feature-settings (@font-face)@font-feature-valuesfont-kerningfont-language-over
ridefont-optical-sizingfont-sizefont-size-adjustfont-stretchfont-stretch (@font-face)font-stylefont-style (@font-face)font-synthesisfont-variantfont-variant (@font-face)font-variant-alternatesfont-variant-capsfont-variant-east-asianfont-variant-ligaturesfont-variant-numericfont-variant-positionfont-variation-settingsfont-variation-settings (@font-face)font-weightfont-weight (@font-face)format()fr<fre...
...quency><frequency-percentage>:fullscreenggapgrad<gradient>grayscale()g
ridg
rid-areag
rid-auto-columnsg
rid-auto-flowg
rid-auto-rowsg
rid-columng
rid-column-endg
rid-column-startg
rid-rowg
rid-row-endg
rid-row-startg
rid-templateg
rid-template-areasg
rid-template-columnsg
rid-template-rowshhzhanging-punctuationheightheight (@viewport)@historical-forms:hoverhsl()hsla()hue-rotate()hyphensi<ident><image>image()image-orientationimage-renderingimage-set()@importin:in-range:indeterminateinheritinitialinline-sizeinsetinset()inset-blockinset-block-endinset-block-startinset-inlineinset-inline-endinset-inline-start<integer>:invalidinvert()isolationjjustify-contentjustify-itemsjustify-selfkkhz@keyframesl:lang:last-child:last-of-typeleader():leftleft@left-bottom<length><length-percentage>letter-spacingline-breakline-he...
Scaling of SVG backgrounds - CSS: Cascading Style Sheets
background: url(100px-wide-no-height-or-ratio.svg); background-size: 200px auto; here, the 200px specified in the css over
rides the 100px width specified in the svg, per rule 1.
... source: one specified dimension with intrinsic ratio when a dimension is specified, rule 1 applies that dimension from the svg to the rendered background unless specifically over
ridden by the css.
Shorthand properties - CSS: Cascading Style Sheets
that sounds anecdotal, but it really means that it over
rides previously set values.
... shorthand properties: animation, background, border, border-bottom, border-color, border-left, border-radius, border-right, border-style, border-top, border-width, column-rule, columns, flex, flex-flow, font, g
rid, g
rid-area, g
rid-column, g
rid-row, g
rid-template, list-style, margin, offset, outline, overflow, padding, place-content, place-items, place-self, text-decoration, transition ...
animation - CSS: Cascading Style Sheets
/* @keyframes duration | timing-function | delay | iteration-count | direction | fill-mode | play-state | name */ animation: 3s ease-in 1s 2 reverse both paused slidein; /* @keyframes name | duration | timing-function | delay */ animation: 3s linear 1s slidein; /* @keyframes name | duration */ animation: slidein 3s; <div class="g
rid"> <div class="col"> <div class="note"> given the following animation: <pre>@keyframes slidein { from { transform: scalex(0); } to { transform: scalex(1); } }</pre> </div> <div class="row"> <div class="cell"> <button class="play" title="play"></button> </div> <div class="cell flx"> <div class="overlay">animation: 3s ease-in 1s 2 rev...
...2%20d%3d%22m3%2c3%20l3%2c13%20l13%2c8%20z%22%20%2f%3e%3cpath%20id%3d%22pause%22%20d%3d%22m5%2c4%20l7%2c4%20l7%2c13%20l5%2c13%20z%20m9%2c4%20l11%2c4%20l11%2c13%20l9%2c13%20z%22%20%2f%3e%3cpath%20id%3d%22restart%22%20d%3d%22m13%2c9%20a5%2c5%2c1%2c1%2c1%2c8%2c4%20l8%2c2%20l12%2c5%20l8%2c8%20l8%2c6%20a3%2c3%2c1%2c1%2c0%2c11%2c9%20a1%2c1%2c1%2c1%2c1%2c13%2c9%20z%22%20%2f%3e%3c%2fsvg%3e#restart'); } .g
rid { width: 100%; height: 100%; display: flex; background: #eee; font: 1em monospace; } .row { display: flex; flex: 1 auto; flex-direction: row; flex-wrap: wrap; justify-content: space-between; } .col { display: flex; flex: 1 auto; flex-direction: column; } .cell { box-sizing: border-box; margin: .5em; padding: 0; background-color: #fff; overflow: hidden; tex...
border-radius - CSS: Cascading Style Sheets
note: as with any shorthand property, individual sub-properties cannot inherit, such as in border-radius:0 0 inherit inherit, which would partially over
ride existing definitions.
..., percentage or calc();border-bottom-left-radius: a length, percentage or calc(); formal syntax <length-percentage>{1,4} [ / <length-percentage>{1,4} ]?where <length-percentage> = <length> | <percentage> examples border: solid 10px; /* the border will curve into a 'd' */ border-radius: 10px 40px 40px 10px; border: groove 1em red; border-radius: 2em; background: gold; border:
ridge gold; border-radius: 13em/3em; border: none; border-radius: 40px 10px; border: none; border-radius: 50%; border: dotted; border-width: 10px 4px; border-radius: 10px 40px; border: dashed; border-width: 2px 4px; border-radius: 40px; live samples sample 1 : http://jsfiddle.net/tripad/qngkj/2/ sample 2 : http://jsfiddle.net/tripad/qngkj/3/ sample 3 : http://jsfi...
clip-path - CSS: Cascading Style Sheets
bottom ] <length-percentage> ] ]<fill-rule> = nonzero | evenodd<box> = border-box | padding-box | content-box examples comparison of html and svg <svg class="defs"> <defs> <clippath id="mypath" clippathunits="objectboundingbox"> <path d="m0.5,1 c0.5,1,0,0.7,0,0.3 a0.25,0.25,1,1,1,0.5,0.3 a0.25,0.25,1,1,1,1,0.3 c1,0.7,0.5,1,0.5,1 z" /> </clippath> </defs> </svg> <div class="g
rid"> <div class="col"> <div class="note">clip-path: none</div> <div class="row"> <div class="cell"> <span>html</span> <div class="container"> <p class="none"> i love<br><em>clipping</em> </p> </div> </div> <div class="cell"> <span>svg</span> <div class="container viewbox"> <svg viewbox="0 0 192 192"> ...
...<svg viewbox="0 0 192 192"> <g class="shape9"> <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> </div> html,body { height: 100%; box-sizing: border-box; background: #eee; } .g
rid { width: 100%; height: 100%; display: flex; font: 1em monospace; } .row { display: flex; flex: 1 auto; flex-direction: row; flex-wrap: wrap; } .col { flex: 1 auto; } .cell { margin: .5em; padding: .5em; background-color: #fff; overflow: hidden; text-align: center; flex: 1; } .note { background: #fff3d4; padding: 1em; margin: .5em .5em 0; font: .8em sans-s...
mix-blend-mode - CSS: Cascading Style Sheets
applies toall elementsinheritednocomputed valueas specifiedanimation typediscretecreates stacking contextyes formal syntax <blend-mode>where <blend-mode> = normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity examples effect of different mix-blend-mode values <div class="g
rid"> <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"> ...
...<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> </div> </div> html,body { height: 100%; box-sizing: border-box; background: #eee; } .g
rid { width: 100%; display: flex; font: 1em monospace; } .row { display: flex; flex: 1 auto; flex-direction: row; flex-wrap: wrap; height: auto; } .col { display: flex; flex: 1 auto; flex-direction: column; height: auto; } .cell { margin: .5em; padding: .5em; background-color: #fff; overflow: hidden; text-align: center; } .note { background: #fff3d4; padding:...
overflow-block - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toblock-containers, flex containers, and g
rid containersinheritednocomputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete formal syntax visible | hidden | clip | scroll | auto examples html <ul> <li><code>overflow-block:hidden</code> — hides the text outside the box <div id="div1"> lorem ipsum dolor sit amet...
... working draft initial valueautoapplies toblock-containers, flex containers, and g
rid containersinheritednocomputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete ...
overscroll-behavior - CSS: Cascading Style Sheets
you can use overscroll-behavior to get
rid of unwanted scroll chaining and the browser's facebook/twitter app-inspired "pull to refresh"-type behavior.
...this can be stopped using overscroll-behavior-y (overscroll-behavior would also work) on the chat window, like this: .messages { height: 220px; overflow: auto; overscroll-behavior-y: contain; } we also wanted to get
rid of the standard overscroll effects when the contacts are scrolled to the top or bottom (e.g.
revert - CSS: Cascading Style Sheets
this removes from the cascade all of the styles that have been over
ridden until the style being rolled back to is reached.
...it is still possible to over
ride revert value using specificity.
CSS: Cascading Style Sheets
we have covered the necessary prerequisites so we can now dive deep into css layout, looking at different display settings, modern layout tools like flexbox, css g
rid, and positioning, and some of the legacy techniques you might still want to know about.
... css key concepts: the syntax and forms of the language specificity, inheritance and the cascade css units and values box model and margin collapse the containing block stacking and block-formatting contexts initial, computed, used, and actual values css shorthand properties css flexible box layout css g
rid layout media queries animation cookbook the css layout cookbook aims to bring together recipes for common layout patterns, things you might need to implement in your sites.
Challenge solutions - Developer guides
solution change the selector of the new rule to be a tag selector using p: p { color: blue; } the rules for the other colors all have more specific selectors, so they over
ride the blue of the paragraph.
... solution add the following style declaration to the strong rule: font: 200% serif; if you use separate declarations for font-size and font-family, then the font-style setting on the first paragraph is not over
ridden.
Index - Developer guides
33 a hyb
rid approach mobile, responsive design, web development no approach is a one-size-fits-all solution.
...if you need to slightly alter the site’s message for mobile users, but want to reap the benefits of a responsive design, a hyb
rid approach may be your best bet.
<input type="file"> - HTML: Hypertext Markup Language
it is still possible (in most cases) for users to toggle an option in the file chooser that makes it possible to over
ride this and select any file they wish, and then choose incorrect file types.
... padding-left: 0; } form li, div > p { background: #eee; display: flex; justify-content: space-between; margin-bottom: 10px; list-style-type: none; border: 1px solid black; } form img { height: 64px; order: 1; } form p { line-height: 32px; padding-left: 10px; } form label, form button { background-color: #7f9ccb; padding: 5px 10px; border-radius: 5px; border: 1px
ridge black; font-size: 0.8rem; height: auto; } form label:hover, form button:hover { background-color: #2d5ba3; color: white; } form label:active, form button:active { background-color: #0d3f8f; color: white; } this is similar to what we've seen before — nothing special to comment on.
<input type="search"> - HTML: Hypertext Markup Language
if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use unicode bidirectional algorithm formatting characters to over
ride directionality within the placeholder; see over
riding bidi using unicode control characters in the unicode bidirectional text algorithm for those characters.
... results the results attribute—supported only by safari—is a numeric value that lets you over
ride the maximum number of entries to be displayed in the <input> element's natively-provided drop-down menu of previous search queries.
<input type="text"> - HTML: Hypertext Markup Language
if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use unicode bidirectional algorithm formatting characters to over
ride directionality within the placeholder; see over
riding bidi using unicode control characters in the unicode bidirectional text algorithm for those characters.
... the value returned by reading spellcheck may not reflect the actual state of spell checking within a control, if the user agent's preferences over
ride the setting.
<input type="url"> - HTML: Hypertext Markup Language
if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use unicode bidirectional algorithm formatting characters to over
ride directionality within the placeholder; see over
riding bidi using unicode control characters in the unicode bidirectional text algorithm for those characters.
... the value returned by reading spellcheck may not reflect the actual state of spell checking within a control, if the user agent's preferences over
ride the setting.
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
warning: avoid giving form elements a name that corresponds to a built-in property of the form, since you would then over
ride the predefined property or method with this reference to the corresponding input.
... orient results the results attribute—supported only by safari—is a numeric value that lets you over
ride the maximum number of entries to be displayed in the <input> element's natively-provided drop-down menu of previous search queries.
<samp>: The Sample Output element - HTML: Hypertext Markup Language
usage notes you can use a css rule to over
ride the browser's default font face for the <samp> element; however, it's possible that the browser's preferences may take precedence over any css you specify.
... the css to over
ride the default font face would look like this: samp { font-family: "courier"; } if you need an element which will serve as a container for output generated by your website or app's javascript code, you should instead use the <output> element.
<tt>: The Teletype Text element (obsolete) - HTML: Hypertext Markup Language
<p>enter the following at the telnet command prompt: <code>set localecho</code><br /> the telnet client should display: <tt>local echo is on</tt></p> result over
riding the default font you can over
ride the browser's default font—if the browser permits you to do so, which it isn't required to do—using css: css tt { font-family: "lucida console", "menlo", "monaco", "courier", monospace; } html <p>enter the following at the telnet command prompt: <code>set localecho</code><br /> the telnet client should display: <tt>local echo is on</...
...you can over
ride this using css by creating a rule using the tt selector, as seen in the example over
riding the default font above.
<var>: The Variable element - HTML: Hypertext Markup Language
this can be over
ridden 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: over
riding the default style using css, you can over
ride the default style for the <var> element.
Array - JavaScript
over
rides the object.prototype.tolocalestring() method.
...over
rides the object.prototype.tostring() method.
Boolean - JavaScript
over
rides the object.prototype.tostring() method.
...over
rides the object.prototype.valueof() method.
Intl.DateTimeFormat() constructor - JavaScript
this option over
rides the hc language tag and/or the hourcycle option in case both are present.
...this option over
rides the hc language tag, if both are present, and the hour12 option takes precedence in case both options have been specified.
Object.prototype.toSource() - JavaScript
over
riding the tosource() method it is safe for objects to over
ride the tosource() method.
...for example: var obj1 = {}; var obj2 = { a: obj1 }; obj1.b = obj2; console.log('cyclical: ' + (obj1.b.a == obj1)); var objsource = obj1.tosource(); // returns "({b:{a:{}}})" obj1 = eval(objsource); console.log('cyclical: ' + (obj1.b.a == obj1)); if a cyclical structure is employed and tosource() is needed, the object must provide an over
ride to tosource(), either using a reference to a constructor or providing an anonymous function.
String - JavaScript
over
rides the object.prototype.tostring() method.
...over
rides the object.prototype.valueof() method.
<mlabeledtr> - MathML
columnalign over
rides the horizontal alignment of cells specified by <mtable> for this row.
... rowalign over
rides the vertical alignment of cells specified by <mtable> for this row.
<mtd> - MathML
columnalign specifies the horizontal alignment of this cell and over
rides values specified by <mtable> or <mtr>.
... rowalign specifies the vertical alignment of this cell and over
rides values specified by <mtable> or <mtr>.
<mtr> - MathML
columnalign over
rides the horizontal alignment of cells specified by <mtable> for this row.
... rowalign over
rides the vertical alignment of cells specified by <mtable> for this row.
Mapping the width and height attributes of media container elements to their aspect-ratio - Web media technologies
to keep images from breaking out of their containers when the container becomes narrower than the image, developers started using css like the following: img { max-width: 100%; height: auto; } this is really useful for responsive layouts, but unfortunately it causes the jank problem to return — the above css over
rides the width and height attribute information, meaning that if the image has not loaded for some reason, its height will be set to 0.
... when the width/height of an <img> element — as set using html attributes — is ove
ridden 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.
display - SVG: Scalable Vector Graphics
ill="skyblue"></rect> <rect x="140" y="20" width="60" height="60" fill="yellow" display="none"></rect> </svg> usage notes default value inline value [ <display-outside> | <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>where <display-outside> = block | inline | run-in<display-inside> = flow | flow-root | table | flex | g
rid | ruby<display-listitem> = <display-outside>?
...&& list-item<display-internal> = table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container<display-box> = contents | none<display-legacy> = inline-block | inline-list-item | inline-table | inline-flex | inline-g
rid animatable yes for a description of the values, please refer to the css display property.
unicode-bidi - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following eleven elements: <altglyph>, <textpath>, <text>, <tref>, and <tspan> context notes value normal | embed | isolate | bidi-over
ride | isolate-over
ride | plaintext default value normal animatable no for a description of the values, please refer to the css unicode-bidi property.
... introduced isolate, isolate-over
ride, and plaintext keywords.
units-per-em - SVG: Scalable Vector Graphics
this is the size of the design g
rid on which glyphs are laid out.
... note: this value is almost always necessary as nearly every other attribute requires the definition of a design g
rid.
SVG documentation index - SVG: Scalable Vector Graphics
it also may affect the direction in which characters are positioned if the unicode-bidi property's value is either embed or bidi-over
ride.
... 379 scripting graphics, svg, scripting, default, eventlisteners, preventing, setproperty one can over
ride default browser behaviors with the evt.preventdefault( ) method, add eventlisteners to objects with the syntax element.addeventlistener(event, function, usecapture), and set element properties with syntax svgelement.style.setproperty("fill-opacity", "0.0", "").
Scripting - SVG: Scalable Vector Graphics
one can over
ride default browser behaviors with the evt.preventdefault( ) method, add eventlisteners to objects with the syntax element.addeventlistener(event, function, usecapture), and set element properties with syntax svgelement.style.setproperty("fill-opacity", "0.0", "").
...or if you want to use the backspace key in your code, you want to over
ride the browser's default behavior when the backspace key is pressed, which is to go back to the previous page.
Content Scripts - Archive of obsolete content
for example, this content script will fail with the error "themessage is not defined": var themessage = "hello from content script!"; anelement.setattribute("onclick", "alert(themessage);"); second, if you define an event listener by direct assignment to a global event handler like onclick, then the assignment might be over
ridden by the page.
Modules - Archive of obsolete content
the problem with breaking encapsulation like this is that malicious scripts can use it to get the loading script to execute arbitrary code, by over
riding one of the methods on the built-in constructors.
core/heritage - Archive of obsolete content
if two or more argument objects have own properties with the same name, the property is over
ridden, with precedence from right to left, implying, that properties of the object on the left are over
ridden by a same named property of the object on the right.
event/target - Archive of obsolete content
adding listeners eventtarget interface defines on method, that can be used to register event listeners on them for the given event type: target.on('message', function onmessage(message) { // note: `this` pseudo variable is an event `target` unless // intentionally over
ridden via `.bind()`.
Displaying annotations - Archive of obsolete content
otated').css('border', 'solid 3px yellow'); $('.annotated').bind('mouseenter', function(event) { self.port.emit('show', $(this).attr('annotation')); event.stoppropagation(); event.preventdefault(); }); $('.annotated').bind('mouseleave', function() { self.port.emit('hide'); }); }); function createanchor(annotation) { annotationanchorancestor = $('#' + annotation.ancesto
rid); annotationanchor = $(annotationanchorancestor).parent().find( ':contains(' + annotation.anchortext + ')').last(); $(annotationanchor).addclass('annotated'); $(annotationanchor).attr('annotation', annotation.annotationtext); } save this in data as matcher.js.
Storing annotations - Archive of obsolete content
ntent: function handlenewannotation(annotationtext, anchor) { var newannotation = new annotation(annotationtext, anchor); simplestorage.storage.annotations.push(newannotation); } this function calls a constructor for an annotation object, which we also need to supply: function annotation(annotationtext, anchor) { this.annotationtext = annotationtext; this.url = anchor[0]; this.ancesto
rid = anchor[1]; this.anchortext = anchor[2]; } now we need to link this code to the annotation editor, so that when the user presses the return key in the editor, we create and store the new annotation: var annotationeditor = panels.panel({ width: 220, height: 220, contenturl: data.url('editor/annotation-editor.html'), contentscriptfile: data.url('editor/annotation-editor.js'), onmessa...
Localization - Archive of obsolete content
this means that a module isn't able to over
ride a more general translation: so a module informal.js can't specify that "hello_id" occurring in its code should be localized to "hi!".
Dialogs and Prompts - Archive of obsolete content
} mydialog.xul: <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="mydialogid" title="my dialog" ondialogaccept="return onok();" onload="onload();" persist="screenx screeny width height" windowtype="mydialogwindowtype"> <script type="application/javascript" src="chrome://myext/content/mydialog.js"/> <g
rid> <columns><column/><column/></columns> <rows> <row align="center"><label value="name:"/><textbox id="name"/></row> <row align="center"><label value="description:"/><textbox id="description"/></row> <row align="center"><spacer/><checkbox id="enabled" label="check to enable"/></row> </rows> </g
rid> </dialog> mydialog.js: // called once when the dialog displays fun...
Inline options - Archive of obsolete content
me://myaddon/content/name_of_my_file_to_use_for_inline_opts.xul</em:optionsurl> <em:optionstype>2</em:optionstype> your chrome.manifest file should contain the following, otherwise the path chrome://myaddon/content/name_of_my_file_to_use_for_inline_opts.xul will not exist content myaddon ./ this method allows you to maintain compatibility with previous versions of firefox by adding an over
ride to your chrome.manifest: ...
Appendix D: Loading Scripts - Archive of obsolete content
wantxrays: false }); // get the caller's filename let file = components.caller.stack.filename; // strip off any prefixes added by the sub-script loader // and the trailing filename let directory = file.replace(/.* -> |[^\/]+$/g, ""); let scriptname = directory + name; // read the script let xmlhttp = xmlhttprequest("get", scriptname, false); xmlhttp.over
ridemimetype("text/plain"); xmlhttp.send(); let script = xmlhttp.textcontent; // evaluate the script: components.utils.evalinsandbox(script, sandbox, "1.8", scriptname, 0); } // use the current global object.
Signing an XPI - Archive of obsolete content
many issuers will not provide a software developer certificate to individuals (how
ridiculous) so you may have to search hard to find one that will, and who also has a ca root authority installed in mozilla firefox.
Promises - Archive of obsolete content
"post" : "get"; if (options.mimetype) xhr.over
ridemimetype(params.options); xhr.open(options.method || defaultmethod, url); if (options.responsetype) xhr.responsetype = options.responsetype; for (let header of object.keys(options.headers || {})) xhr.setrequestheader(header, options.headers[header]); let data = options.data; if (data && object.getprototypeof(data).constructor.nam...
Adding preferences to an extension - Archive of obsolete content
« previousnext » over
ride chrome://myaddon/content/options.xul chrome://myaddon/content/oldoptions.xul application={ec8030f7-c20a-464f-9b0e-13a3a9e97384} appversion<=6.* examples github - gist :: _ff-addon-template-bootstrapprefsskeleton - this gist here is a fully working example of a fully funcitonal preferences skeleton, it uses the observer example from above.
Creating a dynamic status bar extension - Archive of obsolete content
function inforeceived() { var samplepanel = document.getelementbyid('stockwatcher'); var output = httprequest.responsetext; if (output.length) { // remove whitespace from the end of the string; // this gets
rid of the end-of-line characters output = output.replace(/\w*$/, ''); // build the tooltip string var fieldarray = output.split(','); // assert that fieldarray[0] == 'goog' samplepanel.label = 'goog: ' + fieldarray[1]; samplepanel.tooltiptext = 'chg: ' + fieldarray[4] + ' | ' + 'open: ' + fieldarray[5] + ' | ' + 'low: ' + fieldarray[6] + ' | ' + 'hig...
JXON - Archive of obsolete content
jxontree.prototype.valueof = function () { return this.keyvalue; }; jxontree.prototype.tostring = function () { return string(this.keyvalue); }; jxontree.prototype.getitem = function (nitem) { if (nlength === 0) { return null; } var ncount = 0; for (var skey in this) { if (ncount === nitem) { return this[skey]; } ncount++; } return null; }; jxontree.prototype.getattribute = function (natt
rid) { if (nattrlen === 0 || natt
rid + 1 > nattrlen) { return null; } var nattr = 0; for (var sattrname in this.keyattributes) { if (nattr === natt
rid) { return this.keyattributes[sattrname]; } nattr++; } return null; }; jxontree.prototype.haschildren = function () { return this.keylength > 0; }; */ var myobject = new jxontree(doc); // we got our javascript object!
MMgc - Archive of obsolete content
only do this if you know for certain that there are no other references, and you want to help the gc along: // optimization: get
rid of myobject now, because we know there are no other // references, so no need to wait for gc to clean it up.
Downloading Nightly or Trunk Builds - Archive of obsolete content
these are the "tinderbox builds", also known as "hourly builds" though it usually takes more than one hour to make one; they are followed by automatic tests and their main purpose is to check that nothing is hor
ridly wrong with the latest change to the source: what they are doing is to constantly check that the current source can be built into an executable and that that executable passes a certain more-or-less fixed set of tests.
Style System Overview - Archive of obsolete content
as for other style changes, we have to “walk” the rule tree and clear all the style data coming from the old inline style nsistylerule, since there could be an !important rule that over
rides it, which would allow dynamic changes to put the style attribute in multiple places in the rule tree.
Mozilla Application Framework in Detail - Archive of obsolete content
ng and manipulating graphs, and populating xul widgets (trees, menus, etc.) with graph data; an xslt/xpath processor; scalable vector graphics (svg) rendering with support for a usable subset of the standard including all basic shapes, beziers, stroking and filling with opacity, and much of the dom; mathml rendering; an ecma-262 edition 3-compliant javascript engine; java integration with a b
ridge to xpcom, a java dom api, the open jvm integration (oji) facility, a java webclient api, and java plug-ins; nspr, a runtime engine that provides platform-independence (across over a dozen platforms) for non-gui operating system facilities with support for threads, thread synchronization, normal file and network i/o, interval timing and calendar time, basic memory management (malloc and free) a...
FAQ - Archive of obsolete content
it is one of the experiments being conducted by mozilla labs to b
ridge the divide in the user experience between web applications and desktop apps.
Elements - Archive of obsolete content
an explicit encoding declarations may be present to over
ride the default, for example <?xml version="1.0" encoding="iso-8859-1"?> uri in namespace declarations is an opaque string used to uniquely identify the namespace.
Creating a Wizard - Archive of obsolete content
e-window" title="select a dog wizard" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <wizardpage> <description> this wizard will help you select the type of dog that is best for you." </description> <label value="why do you want a dog?"/> <menulist> <menupopup> <menuitem label="to scare people away"/> <menuitem label="to get
rid of a cat"/> <menuitem label="i need a best friend"/> </menupopup> </menulist> </wizardpage> <wizardpage description="dog details"> <label value="provide additional details about the dog you would like:"/> <radiogroup> <caption label="size"/> <radio value="small" label="small"/> <radio value="large" label="large"/> </radiogroup> <radiogroup>...
Skinning XUL Files by Hand - Archive of obsolete content
when you reload the xul file you have been working on, the box element you have used to create the navigation area in the xul file appear as follows: the skinned browser is not much to look at right now -- and you may note that this basic skin has transgressed upon some of the skinning guidelines because it over
rides color information, but you can get a sense of what the possibilities are with the combination of the xul structure and the style rules of css.
XUL Tutorial - Archive of obsolete content
nifest files simple elements creating a window adding buttons adding labels and images input controls numeric controls list controls progress meters adding html elements using spacers more button features the box model the box model element positioning box model details groupboxes adding more elements more layout elements stacks and decks stack positioning tabboxes g
rids content panels splitters toolbars and menus toolbars simple menu bars more menu features popup menus scrolling menus events and scripts adding event handlers more event handlers keyboard shortcuts focus and selection commands updating commands broadcasters and observers document object model document object model modifying a xul interface manipulating lists box obje...
button - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
caption - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
checkbox - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
colorpicker - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a palette of colors from which a user may select by clicking on one of the g
rid cells.
description - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
dialogheader - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
elements - Archive of obsolete content
a action arrowscrollbox b bbox binding bindings box broadcaster broadcasterset button browser c checkbox caption colorpicker column columns commandset command conditions content d deck description dialog dialogheader e editor g
rid grippy groupbox h hbox i iframe image k key keyset l label listbox listcell listcol listcols listhead listheader listitem m member menu menubar menuitem menulist menupopup menuseparator o observes overlay p page popup popupset preference preferences prefpane prefwindow progressmeter r radio radiogroup resizer richlistbox richlistitem resizer row rows rule s script scrollbar scrollbox scrollcorn...
label - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
listcell - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
listitem - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
menulist - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
prefwindow - Archive of obsolete content
this one can be safely omitted in xulrunner-based applications but you can over
ride the default behavior (true for mac os x and false for other platforms) setting it.
radio - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
<statusbarpanel> - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
treecol - Archive of obsolete content
if you wish to use the value none and the displayed text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to over
ride this size.
What XULRunner Provides - Archive of obsolete content
domparser, etc.) web services (soap) auto-update support (not yet complete) type ahead find toolbar history implementation (the places implementation in the 1.9 cycle) accessibility support ipc services for communication between gecko-based apps (not yet complete) storage/sqlite interfaces user interface features the following user interface is supplied by xulrunner, and may be over
ridden by embedders under certain circumstances: apis and user interface for installing, uninstalling, and upgrading xul applications.
Mozprocess - Archive of obsolete content
cwd=none, # working directory for cmd; defaults to none env={}, # environment to use for the process; defaults to os.environ ) exit_code = process.waitforfinish(timeout=60) # seconds see an example in https://github.com/mozilla/mozbase/b...profilepath.py processhandler may be subclassed to handle process timeouts (by over
riding the ontimeout() method), process completion (by over
riding onfinish()), and to process the command output (by over
riding processoutputline()).
Format - Archive of obsolete content
summary: mozilla.dev.planning - july 17-23, 2006 announcements firefox 2/gecko 1.8.1 bug approvals starting on f
riday july 21 at 10:00a pdt the release triage team will no longer be accepting bugs unless they meet one of the posted criteria.
2006-10-06 - Archive of obsolete content
other links of interest: roadmap for accessible rich internet applications (wai-aria roadmap) roles for accessible rich internet applications (wai-aria roles) states and properties module for accessible rich internet applications (wai-aria states and properties) making ajax work with screen readers meetings accessibility hackfest 2006 - october 10-12 in camb
ridge, ma (more details) participants include the mozilla foundation, ibm, sun and novell to name a few.
2006-11-10 - Archive of obsolete content
important dates: technical submissions: monday 19th feb 2007 technical paper notification: f
riday 16th march 2007 communication submissions: monday 26th march 2007 communication paper notification: f
riday 06th april 2007 all camera ready due: monday 16th april 2007 conference dates: monday 07th and tuesday 08th may 2007 notable keynotes representatives from w3c, ibm, university of manchester, uk and oxford brookes university, uk.
mozilla-dev-apps-firefox - Archive of obsolete content
weekly summaries f
riday september 29, 2006 f
riday october 6, 2006 f
riday october 13, 2006 f
riday october 20, 2006 f
riday november 3, 2006 f
riday november 10, 2006 f
riday november 17, 2006 f
riday november 24, 2006 f
riday december 1, 2006 ...
2006-10-27 - Archive of obsolete content
discussions effect of eudora/thunderbird re-write joes is voicing a concern about the recent announcement regarding the eudora/thunderbird rewrite: "is thunderbird destined to become a hyb
rid of the existing code and eudora?".
2006-07-17 - Archive of obsolete content
announcements sfirefox 2/gecko 1.8.1 bug approvals starting on f
riday july 21 at 10:00a pdt the release triage team will no longer be accepting bugs unless they meet one of the posted criteria.
2006-10-06 - Archive of obsolete content
discussions none for this week meetings community test day - on f
riday october 6th, 2006 in irc chat room #testday there will be a test day focusing on safe browsing between 7am to 5pm pdt.
2006-11-03 - Archive of obsolete content
discussions none meetings community test day - on f
riday, november 3, 2006 another community test day focusing on security and stability release, and you can help by verifying bugs, and by running the litmus test cases under the ffts or the bfts.
CSS - Archive of obsolete content
tainer in the document that accepts the content flow from the data source.-ms-flow-intothe -ms-flow-into css property is a microsoft extension that gets or sets a value identifying an iframe container in the document that serves as the region's data source.-ms-high-contrast-adjustthe -ms-high-contrast-adjust css property is a microsoft extension that gets or sets a value indicating whether to over
ride any css properties that would have been set in high contrast mode.-ms-hyphenate-limit-charsthe -ms-hyphenate-limit-chars css property is a microsoft extension that specifies one to three values indicating the minimum number of characters in a hyphenated word.
Array comprehensions - Archive of obsolete content
mbers.filter(function (i) { return i < 3 }); numbers.filter(i => i < 3); [for (i of numbers) if (i < 3) i]; // all are [1, 2] array comprehensions with two arrays using two for-of iterations to work with two arrays: var numbers = [1, 2, 3]; var letters = ['a', 'b', 'c']; var cross = [for (i of numbers) for (j of letters) i + j]; // ["1a", "1b", "1c", "2a", "2b", "2c", "3a", "3b", "3c"] var g
rid = [for (i of numbers) [for (j of letters) i + j]]; // [ // ["1a", "1b", "1c"], // ["2a", "2b", "2c"], // ["3a", "3b", "3c"] // ] [for (i of numbers) if (i > 1) for (j of letters) if(j > 'a') i + j] // ["2b", "2c", "3b", "3c"], the same as below: [for (i of numbers) for (j of letters) if (i > 1) if(j > 'a') i + j] // ["2b", "2c", "3b", "3c"] [for (i of numbers) if (i > 1) [for (j of letters)...
LiveConnect - Archive of obsolete content
older versions of gecko included special support for the java<->javascript b
ridge (such as the java and packages global objects), but as of mozilla 16 (firefox 16 / thunderbird 16 / seamonkey 2.13) liveconnect functionality is provided solely by the oracle's java plugin.
Archive of obsolete content
it brings a lot of long-awaited novelties, like rounded corners, shadows, gradients, transitions or animations, as well as new layouts like multi-columns, flexible box or g
rid layouts.
Community - Extensions
mozillazine extensions & themes forum #extdev channel on moznet irc network — extension development questions #addons channel on moznet irc network — questions about http://addons.mozilla.org mozdev project owners mailing list mozillazine knowledge base allyou
rideas — ideas for extensions ((really needs a unique captcha)) babelzilla — a community for developers and translators of extension for mozilla applications ...
Index - Game development
you can play the full version of the hungry f
ridge game directly in your browser, install it from the firefox marketplace or check the source code of the demo along with all the other resources on the gamepad api content kit.
Game distribution - Game development
this can range from low-end smartphones or tablets, through laptops and desktop computers, to smart tvs, watches or even a f
ridge if it can handle a modern enough browser.
Efficient animation for web games - Game development
puzzowl uses it to drive all the drawing updates and transitions, by over
riding its requestanimationframe function with a custom version that makes the request, and appending the game’s drawing function onto the end of the callback like so: animator.requestanimationframe = function(callback) { requestanimationframe(function(t) { callback(t); redraw(); }); }; the game’s redraw function does all drawing, and the animation callbacks just update st...
Visual typescript game engine - Game development
features come with broadcaster: multiplatform video chat works with other hyb
rid frameworks or custom implementation throw the native mobile application web control (chrome implementation usually tested).
About Scriptable Interfaces - Interfaces
python there's an extension extensions/python that b
ridges the gap between xpcom and python, allowing scriptable interfaces to be used/implemented from/in python scripts.
The box model - Learn web development
when you move on to learn about css layout in more detail, you will encounter flex, and various other inner values that your boxes can have, for example g
rid.
Normal Flow - Learn web development
previous overview: css layout next in this module introduction to css layout normal flow flexbox g
rid floats positioning multiple-column layout responsive design beginner's guide to media queries legacy layout methods supporting older browsers fundamental layout comprehension assessment ...
Styling links - Learn web development
the third rule uses the a selector to get
rid of the default text underline and focus outline (which varies across browsers anyway), and adds a tiny amount of padding to each link — all of this will become clear later on.
Learn to style HTML using CSS - Learn web development
we have covered the necessary prerequisites so we can now dive deep into css layout, looking at different display settings, modern layout tools like flexbox, css g
rid, and positioning, and some of the legacy techniques you might still want to know about.
Package management basics - Learn web development
you could manage your own package registry — products like microsoft azure allow you to create proxies to the npm registry (so you can over
ride or lock certain packages), github also offers a package registry service, and there will be likely more options appearing as time goes on.
Embedding API for Accessibility
pupsites.sites", "http://www.annoyingsite1.com http://www.popupsite2.com"); user_pref("capability.policy.popupsites.windowinternal.open","noaccess"); // or turn it off everywhere: user_pref("capability.policy.default.windowinternal.open","noaccess"); // over
ride popping up new windows on target=anything user_pref("browser.block.target_new_window", true); // over
ride popup windows at beginning of new page load (blocks most popup advertisements) user_pref("dom.disable_open_during_load", true); moz 0.8 client side redirects ...
A bird's-eye view of the Mozilla framework
const rdf = components.classes["@mozilla.org/rdf/rdf-service;1"].getservice(components.interfaces.nsirdfservice); the components object is made available to javascript via xpconnect; it serves as a b
ridge connecting javascript and xpcom.
Building Firefox with Debug Symbols
this value takes precedence over the flags set in moz_debug_flags note that this will over
ride the values provided for cflags and cxxflags.
How Mozilla's build system works
$(dist)/lib/$(lib_prefix)gkhtmltable_s.$(lib_suffix) \ $(dist)/lib/$(lib_prefix)gkxulbase_s.$(lib_suffix) \ $(dist)/lib/$(lib_prefix)gkbase_s.$(lib_suffix) \ $(dist)/lib/$(lib_prefix)gkconshared_s.$(lib_suffix) \ $(dist)/lib/$(lib_prefix)gkxultree_s.$(lib_suffix) \ $(dist)/lib/$(lib_prefix)gkxulg
rid_s.$(lib_suffix) \ $(null) include $(topsrcdir)/config/rules.mk shared_library_libs is set to a list of static libraries, which should be linked into this shared library.
Creating Custom Events That Can Pass Data
use nsdomevent.h's ns_forward_to_nsdomevent macro so that you don't have to forward manually (unless you plan on over
riding one of nsdomevent's original functions).
Eclipse CDT Manual Setup
(note that the format settings under "general > editors > text editors" have no effect in c/c++ views, since the c/c++ settings are more specific and over
ride those settings.
Tracking Protection
sometimes users won’t notice at all, if the page g
rid works such that other page elements slide in to fill holes left by blocked elements.
Firefox and the "about" protocol
isplays the configuration and platform used to build firefox about:cache displays information about the memory, disk, and appcache about:checkerboard switches to the checkerboarding measurement page, which allows to detect checkerboarding issues about:config provides a way to inspect and change firefox preferences and settings about:compat lists over
riding site compatability fixes, linked to specific bug issues.
Using the Browser API
if searchactive is true, meaning that a search has been done, we want to disable the search as we hide the search options — we disable the buttons, make searchactive false, clear the entered search value, and run htmliframeelement.clearmatch(), which gets
rid of any stored/highlighted search results from the browser.
CSS <display-xul> component
firefox supports the following -moz- prefixed xul display values: syntax -moz-box obsolete since gecko 64 xul box, mostly equivalent to flex -moz-inline-box obsolete since gecko 64 xul inline box, mostly equivalent to inline-flex -moz-g
rid obsolete since gecko 62 xul g
rid -moz-inline-g
rid obsolete since gecko 62 xul inline g
rid -moz-g
rid-group obsolete since gecko 62 xul g
rid group -moz-g
rid-line obsolete since gecko 62 xul g
rid line -moz-stack obsolete since gecko 62 xul stack -moz-inline-stack obsolete since gecko 62 xul inline stack -moz-deck obsolete since gecko 62 xul deck -moz-popup obsolete since gecko 62 xul popup all xul display values, with the exception of -moz-box and -moz-inline-box, have been removed in bug 1288572.
Getting Started with Chat
mozilla's channels are most active between 9am and 7pm pst monday to f
riday, excluding us holidays.
How to investigate Disconnect failures
an example of such a failure disconnect failures happens when one side is closing the connection and mozmill is unable to send the information over the b
ridge or when firefox crashes.
Glossary
actor b
ridge channel child compressed message message nullable parent protocol state ...
AddonManager
autoupdatedefault boolean whether add-ons should auto-update by default (over
rideable per add-on).
Assert.jsm
this report method only throws errors on assertion failures, as per spec, but consumers of this module (think: xpcshell-test, mochitest) may want to over
ride this default implementation.
Http.jsm
to achieve this, you can obtain an xhr object by calling httprequest and then call its over
ridemimetype() with a preferred mime-type.
Services.jsm
for example, to obtain a reference to the preferences service: var prefsservice = services.prefs; provided service getters service accessor service interface service name androidb
ridge nsiandroidb
ridge 1 appinfo nsixulappinfo nsixulruntime application information service appshell nsiappshellservice application shell service blocklist nsiblocklistservice blocklist service cache nsicacheservice cache service cache2 nsicachestorageservice cache storage service clipboard nsiclipboard...
WebRequest.jsm
eaders this code changes the user agent header so the browser identifies itself as ie 11, but only when visiting pages under "http://useragentstring.com/": let {webrequest} = cu.import("resource://gre/modules/webrequest.jsm", {}); cu.import("resource://gre/modules/matchpattern.jsm"); let pattern = new matchpattern("http://useragentstring.com/*"); let ua = "mozilla/5.0 (windows nt 6.1; wow64; t
rident/7.0; as; rv:11.0) like gecko"; webrequest.onbeforesendheaders.addlistener(changeuseragent, { urls: pattern }, ["blocking", "requestheaders"]); function changeuseragent(e) { for (let header of e.requestheaders) { if...
Webapps.jsm
eactivitiestoregister: function(amanifest, aapp, aentrypoint, arunupdate) _registeractivitiesforapps: function(aappstoregister, arunupdate) _registeractivities: function(amanifest, aapp, arunupdate) _createactivitiestounregister: function(amanifest, aapp, aentrypoint) _unregisteractivitiesforapps: function(aappstounregister) _unregisteractivities: function(amanifest, aapp) _processmanifestfo
rids: function(aids, arunupdate) observe: function(asubject, atopic, adata) addmessagelistener: function(amsgnames, aapp, amm) removemessagelistener: function(amsgnames, amm) formatmessage: function(adata) receivemessage: function(amessage) getappinfo: function getappinfo(aappid) broadcastmessage: function broadcastmessage(amsgname, acontent) registerupdatehandler: function(ahandler) unregis...
Test
you should see a g
rid with perfectly straight black lines.
Mozilla Style System Documentation
the output of css selector matching as defined by the css specification is an ordered list of rules, where the order determines which declarations over
ride other declarations.
BloatView
| 472 472| 1 1| 79 |condvar | 24 48| 3086 2| 279 |messagepump | 8 8| 30 1| 285 |mutex | 20 60| 89987 3| 302 |pcompositorchild | 412 412| 1 1| 308 |pimageb
ridgechild | 416 416| 1 1| the first line tells you the pid of the leaking process, along with the type of process.
GC and CC logs
on desktop firefox you can over
ride the default location of the log files by setting the moz_cc_log_directory environment variable.
Leak-hunting strategies and tips
destructors that should have been virtual: if you expect to over
ride an object's destructor (which includes giving a derived class of it an nscomptr member variable) and delete that object through a pointer to the base class using delete, its destructor better be virtual.
browser.pagethumbnails.capturing_disabled
the preference browser.pagethumbnails.capturing_disabled controls whether the application creates screenshots of visited pages which will be shown if the web page is shown in the g
rid of the "new tab page" (about:newtab) which offers the most often visited pages for fast navigation.
Preference reference
if set to true, the data is stored as content preference.browser.pagethumbnails.capturing_disabledthe preference browser.pagethumbnails.capturing_disabled controls whether the application creates screenshots of visited pages which will be shown if the web page is shown in the g
rid of the "new tab page" (about:newtab) which offers the most often visited pages for fast navigation.browser.search.context.loadinbackgroundbrowser.search.context.loadinbackground controls whether 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 b...
Leak And Bloat Tests
m"); user_pref("mail.server.server2.type", "pop3"); user_pref("mail.server.server2.username", "tinderbox"); user_pref("mail.smtp.defaultserver", "smtp1"); user_pref("mail.smtpserver.smtp1.hostname", "tinderbox"); user_pref("mail.smtpserver.smtp1.username", "tinderbox"); user_pref("mail.smtpservers", "smtp1"); user_pref("mail.startup.enabledmailcheckonce", true); user_pref("mailnews.start_page_over
ride.mstone", "1.9pre"); user_pref("mail.shell.checkdefaultclient", false); // ensure os x and outlook/oe books are disabled user_pref("ldap_2.servers.osx.position", 0); user_pref("ldap_2.servers.oe.position", 0); preferences in generated profile, but not set: user_pref("mail.root.none", "/home/moztest/.thunderbird/t7i1txfw.minimum/mail"); user_pref("mail.root.pop3", "/home/moztest/.thunderbird/t7i1...
Optimizing Applications For NSPR
the only exception to this rule is the <tt>select()</tt> and <tt>poll()</tt> system calls on unix, both of which nspr has over
ridden to make sure they are aware of the nspr local threads.
Process Forking in NSPR
nspr does not over
ride the fork function and so, when fork is called from the nspr thread the results are different on the various platforms.
I/O Functions
for example, the following lines of code are equivalent: rv = pr_pushiolayer(stack, pr_top_io_layer, my_layer); rv = pr_pushiolayer(stack, pr_getlayersidentity(stack), my_layer); pr_getuniqueidentity pr_getnamefo
ridentity pr_getlayersidentity pr_getidentitieslayer pr_getdefaultiomethods pr_createiolayerstub pr_pushiolayer pr_popiolayer ...
PRDescIdentity
the string is copied by the runtime, and pr_getnamefo
ridentity returns a reference to that copy.
PR_CreateIOLayerStub
the caller should over
ride appropriate contents of the file descriptor returned before pushing it onto the protocol stack.
Building NSS
remove the use_64=1 over
ride if using a 32-bit build.
Introduction to Network Security Services
platform for 32-bit cpus for 64-bit cpus solaris/sparc libfreebl_pure32_3.so libfreebl_hyb
rid_3.so hpux/parisc libfreebl_pure32_3.sl libfreebl_hyb
rid_3.sl aix (planned for a future release) libfreebl_pure32_3_shr.a libfreebl_hyb
rid_3_shr.a an application should not link against these libraries, because they are dynamically loaded by nss at run time.
NSS_3.12.1_release_notes.html
p bug 434808: certutil -b deadlock when importing two or more roots bug 434860: coverity 1150 - dead code in ocsp_createcertid bug 436428: remove unneeded assert from sec_pkcs7encryptlength bug 436430: make nss public headers compilable with no_nspr_10_support defined bug 436577: uninitialized variable in sec_pkcs5createalgorithmid bug 438685: libpkix doesn't try all the issuers in a b
ridge with multiple certs bug 438876: signtool is still using static libraries.
NSS 3.12.4 release notes
: modify fipstest.c to support cavs 7.1 drbg testing bug 486304: cert7.db/cert8.db corruption when importing a large certificate (>64k) bug 486405: allocator mismatches in pk12util.c bug 486537: disable execstack in freebl x86_64 builds on linux bug 486698: facilitate the building of major components independently and in a chain manner by downstream distributions bug 486999: calling ssl_setsockpee
rid a second time leaks the previous value bug 487007: make lib/jar conform to nss coding style bug 487162: ckfw/capi build failure on windows bug 487239: nssutil.rc doesn't compile on wince bug 487254: sftkmod.c uses posix file io functions on wince bug 487255: sdb.c uses posix file io functions on wince bug 487487: cert_nametoascii reports !invalid ava!
NSS 3.12.6 release notes
bug 527759: add multiple roots to nss (single patch) bug 528741: pkix_hash throws a null-argument exception on empty strings bug 530907: the pee
rid argument to ssl_setsockpee
rid should be declared const bug 531188: decompression failure with https://livechat.merlin.pl/ bug 532417: build problem with spaces in path names bug 534943: clean up the makefiles in lib/ckfw/builtins bug 534945: lib/dev does not need to include headers from lib/ckfw bug 535669: move common makefile code in if and else to t...
NSS 3.14.1 release notes
new functions in ocspt.h cert_createocspsingleresponsegood cert_createocspsingleresponseunknown cert_createocspsingleresponserevoked cert_createencodedocspsuccessresponse cert_createencodedocsperrorresponse new types in ocspt.h ​certocspresponde
ridtype notable changes in nss 3.14.1 windows ce support has been removed from the code base.
NSS 3.15 release notes
applications that use ssl_authcertificatehook to over
ride the default handler should add appropriate calls to ssl_peerstapledocspresponse and cert_cacheocspresponsefromsidechannel.
NSS 3.18 release notes
nss 3.18 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_18_rtm/src/ new in nss 3.18 new functionality when importing certificates and keys from a pkcs#12 source, it's now possible to over
ride the nicknames, prior to importing them into the nss database, using new api sec_pkcs12decoderrenamecertnicknames.
NSS 3.19 release notes
it is possible to over
ride the directory (sqlite_lib_dir) in which the nss build system will look for the sqlite library.
NSS 3.28 release notes
in order to prepare for this future change, we'd like to encourage all users of nss to over
ride the standard nss 3.28 build configuration, by defining nss_enable_tls_1_3=1 at build time.
nss tech note3
otherwise it is not (except that trust flags may over
ride this, see discussion of trust flags farther below).
Python binding for NSS
many methods/functions provide sane default (keyword) parameters freeing the python programmer from having to specify all parameters yet allowing them to be over
riden when necessary.
FC_Initialize
which initializes nss with no databases: "configdir='' certprefix='' keyprefix='' secmod='' flags=readonly,nocertdb,nomod db,forceopen,optimizespace " mozilla firefox initializes nss with this string (on windows): "configdir='c:\\documents and settings\\wtc\\application data\\mozilla\\firefox\\profiles\\default.7tt' certprefix='' keyprefix='' secmod='secmod.db' flags=optimizespace manufacture
rid='mozilla.org' librarydescription='psm internal crypto services' cryptotokendescription='generic crypto services' dbtokendescription='software security device' cryptoslotdescription='psm internal cryptographic services' dbslotdescription='psm private keys' fipsslotdescription='psm internal fips-140-1 cryptographic services' fipstokendescription='psm fips-140-1 user private key services' minps=0" ...
NSS functions
ssl_restarthandshakeafterservercert mxr 3.2 and later ssl_revealcert mxr 3.2 and later ssl_revealpinarg mxr 3.2 and later ssl_revealurl mxr 3.2 and later ssl_securitystatus mxr 3.2 and later ssl_setmaxservercachelocks mxr 3.4 and later ssl_setpkcs11pinarg mxr 3.2 and later ssl_setsockpee
rid mxr 3.2 and later ssl_seturl mxr 3.2 and later ssl_shutdownserversessionidcache mxr 3.7.4 and later deprecated ssl functions the following ssl functions have been replaced with newer versions.
NSS tools : vfychain
-r following certfile is raw binary der (default) -t following cert is explicitly trusted (over
rides db trust) -u usage 0=ssl client, 1=ssl server, 2=ssl stepup, 3=ssl ca, 4=email signer, 5=email recipient, 6=object signer, 9=protectedobjectsigner, 10=ocsp responder, 11=any ca -v verbose mode.
NSS reference
should a particular page require the use of an underscore, please see the documentation for the title over
ride extension.
OLD SSL Reference
ssl_getclientauthdatahook nss_getclientauthdata ssl_handshakecallback ssl communication functions ssl_invalidatesession ssl_datapending ssl_securitystatus ssl_getsessionid ssl_setsockpee
rid ssl functions used by callbacks ssl_peercertificate ssl_revealurl ssl_revealpinarg ssl handshake functions ssl_forcehandshake ssl_rehandshake ssl_resethandshake nss shutdown function ...
sslerr.html
that callback function returned secfailure, and the bad certificate callback function either was not configured or did not choose to over
ride the error code returned by the certificate authentication callback function.
SSL functions
ssl_restarthandshakeafterservercert mxr 3.2 and later ssl_revealcert mxr 3.2 and later ssl_revealpinarg mxr 3.2 and later ssl_revealurl mxr 3.2 and later ssl_securitystatus mxr 3.2 and later ssl_setmaxservercachelocks mxr 3.4 and later ssl_setpkcs11pinarg mxr 3.2 and later ssl_setsockpee
rid mxr 3.2 and later ssl_seturl mxr 3.2 and later ssl_shutdownserversessionidcache mxr 3.7.4 and later ...
NSS_3.12.3_release_notes.html
coverity: uninitialized variable used in sec_pkcs5createalgorithmid bug 469944: when built with microsoft compilers bug 470351: crlutil build fails on windows because it calls undeclared isatty bug 471539: stop honoring digital signatures in certificates and crls based on weak hashes bug 471665: nss reports incorrect sizes for (aes) symmetric keys bug 471715: add cert to nssckbi to over
ride rogue md5-collision ca cert bug 472291: crash in libpkix object leak tests due to null pointer dereferencing in pkix_build.c:3218.
NSS tools : vfychain
-r following certfile is raw binary der (default) -t following cert is explicitly trusted (over
rides db trust) -u usage 0=ssl client, 1=ssl server, 2=ssl stepup, 3=ssl ca, 4=email signer, 5=email recipient, 6=object signer, 9=protectedobjectsigner, 10=ocsp responder, 11=any ca -v verbose mode.
Rhino downloads archive
(pre-java 1.5 users can use dom3 using java's endorsed standards over
ride mechanism if they have a dom3-capable xml parser.) if neither xmlbeans nor dom3 are present, e4x is not available.
Rhino JavaScript compiler
each global function in the source file is made a method of the generated class, over
riding any methods in the base class by the same name.
SpiderMonkey Build Documentation
you can over
ride this by passing options to the configure script: what it is where it gets put configure option executables, shell scripts /usr/local/bin --bindir libraries, data /usr/local/lib --libdir architecture-independent data /usr/local/share --sharedir c header files /usr/local/include --includedir for convenience, you can...
GC Rooting Guide
type autorooter class js::value[] autoarrayrooter js::vector<js::value> autovaluevector js::vector<jsid> autoidvector js::vector<jsobject*> autoobjectvector js::vector<jsscript*> autoscriptvector if your case is not covered by one of these, it is possible to write your own by deriving from js::customautorooter and over
riding the virtual trace() method.
Hacking Tips
e, double, double, nsastring_internal const&, unsigned int, mozilla::errorresult&)' cont break 'presshell::renderdocument(nsrect const&, unsigned int, unsigned int, gfxcontext*)' set print object on set $x = <your x value> set $y = <your y value> print &((cairo_image_surface_t*)athebescontext->mdt.mrawptr->msurface).data[$y * ((cairo_image_surface_t*)athebescontext->mdt.mrawptr->msurface).st
ride + $x * ((cairo_image_surface_t*)athebescontext->mdt.mrawptr->msurface).depth / 8] watch *(char*)<address of previous command> (note: if you set a watch on the previous expression gdb will watch the expression and run out of watchpoint) rr with emacs within emacs, do m-x gud-gdb and replace the command line with rr replay.
Index
this callback over
rides a portion of spidermonkey's default [[enumerate]] internal method.
JSAPI Cookbook
jsapi code can over
ride this by creating the error object directly and passing additional arguments to the constructor: // javascript throw new error(message, filename, lineno); /* jsapi */ bool throwerror(jscontext *cx, jsobject *global, const char *message, const char *filename, int32 lineno) { jsstring *messagestr; jsstring *filenamestr; js::value args[3]; js::value exc; messa...
JS_NewObject
the jsclass may be used to over
ride low-level object behavior, including such details as the physical memory layout of the object and how property lookups are done.
JS_ValueToNumber
(this behavior is implemented by v's jsobjectops.defaultvalue hook, so host objects can over
ride it all.) first, the object's jsclass.convert callback is called.
JS_ValueToString
(this behavior is implemented by v's jsobjectops.defaultvalue method, so host objects can over
ride it all.) if v.tostring() is a function, it is called.
Shell global objects
note that this sets an object metadata callback that will over
ride any other object metadata callback that may be set.
Mozinfo
mozinfo is a b
ridge interface, making the underlying (complex) plethora of os and architecture combinations conform to a subset of values of relevance to mozilla software.
Redis Tips
in the case where you want to do something akin to a join, like, say, associate an email and a remote url to store a browse
rid assertion, just make a new key.
Signing Mozilla apps for Mac OS X
you can find it by running this command in the terminal: openssl x509 -text -noout -inform der -in devlope
rid_application.cer | grep subject putting it all together, you'll wind up using a command similar to the one below to sign your app.
ROLE_CELL
interfaces nsiaccessible nsisupports nsiaccessibletext nsiaccessiblehypertext nsiaccessibleeditabletext nsiaccessiblehyperlink nsiaccessibleselectable nsiaccessiblevalue nsiaccessnode mapped to at-spi: atk_role_table_cell atk: atk_role_list_item ua: nsaccessibilitygrouprole msaa/ia2: role_system_cell used by aria: g
ridcell xul: <listcell/> html: <td> ...
ROLE_TABLE
mapped to at-spi: role_table atk: atk_role_table ua: nsaccessibilitygrouprole msaa/ia2: role_system_table used by aria: g
rid html: <table> xul: <listbox/> ...
Gecko Roles
role_buttondropdowng
rid represents a button that drops down a g
rid.
Using the Places history service
this will cause the transition type of the next visit of the url to be marked as "bookmark." nsinavhistoryservice.setpageusertitle: sets the user-defined title for the page, which will over
ride the actual page title when displayed in the ui.
Preferences API
it is relatively easy to use, while providing a number of useful user and developer features, including support for default preferences, user over
rides via user.js, and locking.
Aggregating the In-Memory Datasource
when it won't work although this magic is terribly convenient to use, it won't work in the case that you want to "over
ride" some of the in-memory datasource's methods.
Making cross-thread calls using runnables
so we declare an asynchronous version of the same function: typedef void (*picallback)(const nscstring& result); // callback function void calculatepiasynchronously(int digits, picallback callback); creating a runnable nsrunnable is a helper class: it already implements threadsafe refcounting, so all you need to do is over
ride the run() function.
Development
bugs all javaxpcom bugs are tracked in bugzilla, using the "core" product and "java to xpcom b
ridge" component.
Other Resources
other resources embedding mozilla xpconnect - javascript-xpcom b
ridge blackconnect - java-xpcom b
ridge (no longer supported) xpidl to java types - from blackconnect ...
JavaXPCOM
javaxpcom is very similar to xpconnect (javascript-xpcom b
ridge), and uses xpidl.
XPConnect
xpconnect is a b
ridge between javascript and xpcom.
XPCOM glue classes
ns convertasciitoutf16 externalclass declarationns convertutf16toutf8 externalclass declarationns convertutf8toutf16 externalclass declarationns lossyconvertutf16toascii externalclass declarationns_convertasciitoutf16class declarationns_convertutf16toutf8class declarationns_convertutf8toutf16class declarationns_lossyconvertutf16toasciiclass declarationns_over
ridens_over
ride is a macro which allows c++ code in mozilla to specify that a method is intended to over
ride a base class method.
IAccessibleHyperlink
for example, for a text link this method could return the substring of the containing string where the substring is over
ridden with link behavior, and for an image link this method could return an iunknown variant for iaccessibleimage.
nsIAsyncInputStream
method overview void asyncwait(in nsiinputstreamcallback acallback, in unsigned long aflags, in unsigned long arequestedcount, in nsieventtarget aeventtarget); void closewithstatus(in nsresult astatus); constants constant value description wait_closure_only (1<<0) if passed to asyncwait(), this flag over
rides the default behavior, causing the oninputstreamready notification to be suppressed until the stream becomes closed (either as a result of closewithstatus()/close being called on the stream or possibly due to some error in the underlying stream).
nsIAsyncOutputStream
method overview void asyncwait(in nsioutputstreamcallback acallback, in unsigned long aflags, in unsigned long arequestedcount, in nsieventtarget aeventtarget); void closewithstatus(in nsresult reason); constants constant value description wait_closure_only (1<<0) if passed to asyncwait(), this flag over
rides the default behavior, causing the onoutputstreamready notification to be suppressed until the stream becomes closed (either as a result of closewithstatus()/close being called on the stream or possibly due to some error in the underlying stream).
nsIAuthPromptWrapper
the nsiauthpromptwrapper interface is an over
ride of nsiauthprompt which performs some action on the data going through nsiauthprompt methods.
nsIChannel
setting contenttype after onstartrequest has been fired or after open() is called will over
ride the type determined by the channel.
nsIContentPrefService2
as a consumer of this interface, you might choose to let a global preference over
ride all non- global preferences of the same name, for example, for whatever definition of "over
ride" is appropriate for your use case.
getFile
c constant string value notes ns_os_home_dir "home" ns_os_temp_dir "tmpd" ns_os_current_working_dir "curworkd" ns_os_desktop_dir "desk" otherwise same as home ns_os_current_process_dir "curprocd" ns_xpcom_current_process_dir "xcurprocd" can be over
riden by passing a "bin directory" to ns_initxpcom2().
nsILoginManagerStorage
initwithfile() implement this method to initialize the component, over
riding the default filename locations with those specified.
nsIMimeConverter
string encodemimepartiistr(in string header, in boolean structured, in string mailcharset, in long fieldnamelen, in long encodedwordsize); string encodemimepartiistr_utf8(in autf8string header, in boolean structured, in string mailcharset, in long fieldnamelen, in long encodedwordsize); string decodemimeheadertocharptr(in string header, in string default_charset, in boolean over
ride_charset, in boolean eatcontinuations); astring decodemimeheader(in string header, in string default_charset, in boolean over
ride_charset, in boolean eatcontinuations); mimeencoderdata *b64encoderinit(in mimeconverteroutputcallback output_fn, in void *closure); mimeencoderdata *qpencoderinit(in mimeconverteroutputcallback output_fn, in void *closure); void enco...
Building an Account Manager Extension
function onpreinit(account, accountvalues) { } function oninit(pageid, serve
rid) { } function onaccepteditor() { } function onsave() { } function updatepage() {} step5: putting it all together // todo build an demo extension for this tutorial...
nsIMsgFolder
charsetover
ride boolean biffstate unsigned long locked boolean readonly flags unsigned long direct access to the set/get all the flags at once.
nsIMsgIdentity
bccothers boolean bcclist astring dobcc boolean dobcclist astring draftfolder astring stationeryfolder astring showsavemsgdlg boolean directoryserver astring over
rideglobalpref boolean autocompletetomydomain boolean if this is false, don't append the user's domain to an autocomplete address with no matches.
nsIMsgSearchTerm
attribute acstring customid; beginsgrouping attribute boolean beginsgrouping; endsgrouping attribute boolean endsgrouping; methods matchrfc822string boolean matchrfc822string(in string astring, in string charset, in boolean charsetover
ride); matchrfc2047string boolean matchrfc2047string(in string astring, in string charset, in boolean charsetover
ride); matchdate boolean matchdate(in prtime atime); matchstatus boolean matchstatus(in unsigned long astatus); matchpriority boolean matchpriority(in nsmsgpriorityvalue priority); matchage boolean matchage(in prtime days); matchsize boolean matchsize(in unsigned long siz...
nsIMsgWindow
charsetover
ride boolean remember the message's charset was over
ridden, so it can be inherited (e.g for quoting).
nsIPipe
as a result, the pipe is an ideal mechanism to b
ridge data exchange between two threads.
Component; nsIPrefBranch
for example, if this object is created with the root "browser.startup.", the preferences "browser.startup.page", "browser.startup.homepage", and "browser.startup.homepage_over
ride" can be accessed by simply passing "page", "homepage", or "homepage_over
ride" to the various get/set methods.
nsIPrincipal
note: other policies might over
ride this, such as the access-control specification.
nsITransport
nsitransport implementations may over
ride these status codes with their own more specific status codes (for example, see nsisockettransport).
nsIUpdate
this over
rides the default setting to download the update in the background.
nsIWebBrowser
the embedder may set this property to their own implementation if they intend to over
ride or prevent how certain kinds of content are loaded.
nsIXPConnect
false by default, although any value set in the moz_report_all_js_exceptions environment variable will over
ride the value passed here.
nsIXULTemplateResult
this property identifies only the default handling and may be over
ridden by syntax used in the template.
nsIZipWriter
dentryfile where in the zip it should create it, and because zip is a copy of the directory cu.reporterror('+' + relpath); //makes it relative to directory the parent dir (dir[0]) so it can succesfully populate files with same names but different folders in this parent dir, needed because recursviely going through all dirs var saveinzipas = relpath.substr(1); //need to get
ride of the first '\' forward slash at start otherwise it puts every file added in a folder of its own.
XPCOM Interface Reference
imageservicensiselectionprivatensiserversocketnsiserversocketlistenernsiservicemanagernsisessionstartupnsisessionstorensisimpleenumeratornsismsdatabaseservicensismsrequestmanagernsismsservicensisocketprovidernsisocketproviderservicensisockettransportnsisockettransportservicensisoundnsispeculativeconnectnsistackframensistandardurlnsistreamconverternsistreamlistenernsistringbundlensistringbundleover
ridensistringbundleservicensistringenumeratornsistructuredclonecontainernsistylesheetservicensisupportsnsisupports proxiesnsisupportsarraynsisupportscstringnsisupportscharnsisupportsdoublensisupportsfloatnsisupportsidnsisupportsinterfacepointernsisupportsprboolnsisupportsprint16nsisupportsprint32nsisupportsprint64nsisupportsprtimensisupportspruint8nsisupportspruint16nsisupportspruint32nsisupportsprui...
Xptcall Porting Guide
the stubs forward calls to a platform specific method that uses the interface information supplied by the over
ridden getinterfaceinfo to extract the parameters and build an array of platform independent nsxptcminivariant structs which are in turn passed on to the over
ridden callmethod.
Xptcall Porting Status
i have had someone look over this code at b
ridge.com (the entry point to compaq/gem compiler team) and this code was given the ok.
XPCOM
if you have a class that you think is involved in a cyclical-ownership leak, this page is for you.introduction to xpcom for the domwarning: this document has not yet been reviewed by the dom gurus, it might contain some errors.language bindingsan xpcom language binding is a b
ridge 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.monitoring http activitygecko includes the nsihttpactivityobserver interface, which you can implement in your code to monitor http transactions in real time, receiving a callb...
XUL Overlays
overlays provide a general mechanism for: adding ui for additional components, as described in the example above over
riding small pieces of a xul file without having to resupply the whole ui reusing particular pieces of the ui xul files and overlays work together to describe a single master document.
The libmime module
any methods or class variables which this class does not wish to over
ride will be automatically inherited from the parent class (by virtue of its class-initialization function having been run first.) each class object will only be initialized once.
Using Objective-C from js-ctypes
ctypes.int32_t }, { invoke: ctypes.voidptr_t }, { descriptor: block_descriptor_1.ptr } ]); var block_const = { block_has_copy_dispose: 1 << 25, block_has_ctor: 1 << 26, block_is_global: 1 << 28, block_has_stret: 1 << 29, block_has_signature: 1 << 30 }; // based on work from here: https://github.com/trueinteractions/tint2/blob/f6ce18b16ada165b98b07869314dad1d7bee0252/modules/b
ridge/core.js#l370-l394 var bl = block_literal_1(); // set the class of the instance bl.isa = _nsconcreteglobalblock; // global flags bl.flags = block_const.block_has_stret; bl.reserved = 0; bl.invoke = afunctypeptr; // create descriptor var desc = block_descriptor_1(); desc.reserved = 0; desc.size = block_literal_1.size; // set descriptor into block literal bl.descriptor = desc.addr...
Standard OS Libraries
id, sel, "..."); // loc = [nsevent mouselocation] let nsevent = objc_getclass("nsevent"); let mouselocation = sel_registername("mouselocation"); let loc = objc_msgsend_nspoint(nsevent, mouselocation); components.utils.reporterror(loc); objc.close(); resources for cocoa googlecode :: js-macosx - lightweight b
ridge for calling cocoa frameworks from mozilla javascript unmht blog :: js-ctypes and objc - blog entries on using objective-c from js-ctypes githubgists :: noitidart / search · objc - objective-c js-ctypes snippets that can be copied and pasted to scratchpad android android runs on java and can be used by js-ctypes through the jni libraries.
Index - Firefox Developer Tools
57 css g
rid inspector: examine g
rid layouts guide, inspector, tools the g
rid inspector allows you to examine css g
rid layouts using the firefox devtools, discovering g
rids present on a page, examining and modifying them, debugging layout issues, and more.
Edit fonts - Firefox Developer Tools
note: font characteristics set using font-variation-settings will always over
ride those set using the corresponding basic font properties, e.g.
How to - Firefox Developer Tools
css flexbox inspector: examine flexbox layoutscss g
rid inspector: examine g
rid layoutsedit css filtersedit shape paths in cssedit fontsexamine event listenersexamine and edit cssexamine and edit htmlexamine and edit the box modelinspect and select colorsopen the inspectorreposition elements in the pageselect an elementselect and highlight elementsuse the inspector apiuse the inspector from the web consoleview background imagesvisualize transformswork with animations ...
UI Tour - Firefox Developer Tools
if the page includes any sections using either the flexbox display model or css g
rids, this view shows the flexbox or g
rid settings used on the page.
Page Inspector - Firefox Developer Tools
es: open the inspector examine and edit html examine and edit the box model inspect and select colors reposition elements in the page edit fonts visualize transforms use the inspector api select an element examine and edit css examine event listeners work with animations edit css filters edit css shapes view background images use the inspector from the web console examine css g
rid layouts examine css flexbox layouts reference keyboard shortcuts settings ...
Web Console remoting - Firefox Developer Tools
"pageerror", "consoleapi", "networkactivity", "fileactivity" ] } the reply is: { "startedlisteners": [ "pageerror", "consoleapi", "networkactivity", "fileactivity" ], "nativeconsoleapi": true, "from": "conn0.console9" } the reply tells which listeners were started and it includes a flag nativeconsoleapi which tells if the window.console object was over
ridden by the scripts in the page or not.
Animation - Web APIs
for this reason, modern browsers have implemented the part of the web animations spec that automatically removes over
riding forward filling animations, unless the developer explicitly specifies to keep them.
CanvasRenderingContext2D.fillStyle - Web APIs
html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.fillstyle = 'blue'; ctx.fillrect(10, 10, 100, 100); result creating multiple fill colors using loops in this example, we use two for loops to draw a g
rid of rectangles, each having a different fill color.
CanvasRenderingContext2D.strokeStyle - Web APIs
html <canvas id="canvas"></canvas> javascript var canvas = document.getelementbyid('canvas'); var ctx = canvas.getcontext('2d'); ctx.strokestyle = 'blue'; ctx.strokerect(10, 10, 100, 100); result creating multiple stroke colors using loops in this example, we use two for loops and the arc() method to draw a g
rid of circles, each having a different stroke color.
CanvasRenderingContext2D.translate() - Web APIs
syntax void ctx.translate(x, y); the translate() method adds a translation transformation to the current matrix by moving the canvas and its origin x units horizontally and y units vertically on the g
rid.
CanvasRenderingContext2D - Web APIs
canvasrenderingcontext2d.translate() adds a translation transformation by moving the canvas and its origin x horzontally and y vertically on the g
rid.
CrashReportBody - Web APIs
some sample json might look like this: { "type": "crash", "age": 42, "url": "https://example.com/", "user_agent": "mozilla/5.0 (x11; linux x86_64; rv:60.0) gecko/20100101 firefox/60.0", "body": { "reason": "oom" } } note: crash reports are always delivered to the endpoint group named default; there is currently no way to over
ride this.
Document: DOMContentLoaded event - Web APIs
document.addeventlistener('domcontentloaded', dosomething); } else { // `domcontentloaded` has already fired dosomething(); } live example html <div class="controls"> <button id="reload" type="button">reload</button> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> css body { display: g
rid; g
rid-template-areas: "control log"; } .controls { g
rid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { g
rid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } #reload { height: 2rem; } js const log = document.queryselector('.event-log-contents'); const reload = document.queryselector('#reloa...
Document: gotpointercapture event - Web APIs
const para = document.queryselector('p'); document.addeventlistener('gotpointercapture', () => { console.log('i\'ve been captured!') }); para.addeventlistener('pointerdown', (event) => { para.setpointercapture(event.pointe
rid); }); the same example, using the ongotpointercapture event handler property: const para = document.queryselector('p'); document.ongotpointercapture = () => { console.log('i\'ve been captured!') }; para.addeventlistener('pointerdown', (event) => { para.setpointercapture(event.pointe
rid); }); specifications specification status pointer events obsolete ...
Document: lostpointercapture event - Web APIs
const para = document.queryselector('p'); document.addeventlistener('lostpointercapture', () => { console.log('i\'ve been released!') }); para.addeventlistener('pointerdown', (event) => { para.setpointercapture(event.pointe
rid); }); the same example, but using the onlostpointercapture event handler property: const para = document.queryselector('p'); document.onlostpointercapture = () => { console.log('i\'ve been released!') }; para.addeventlistener('pointerdown', (event) => { para.setpointercapture(event.pointe
rid); }); specifications specification status pointer events obsolete ...
Document: readystatechange event - Web APIs
s no cancelable no interface event event handler property onreadystatechange examples live example html <div class="controls"> <button id="reload" type="button">reload</button> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> css body { display: g
rid; g
rid-template-areas: "control log"; } .controls { g
rid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { g
rid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } #reload { height: 2rem; } js const log = document.queryselector('.event-log-contents'); const reload = document.queryselector('#reloa...
EffectTiming.fill - Web APIs
when used to persist the effect of an animation indefinitely, however, they have a number of drawbacks: the forwards fill of an animation (or backwards fill if the animation is playing in reverse) will continue to over
ride any changes to specified style indefinitely which can lead to confusing behavior.
Element.animate() - Web APIs
for instance with transform, a translatex(-200px) would not over
ride an earlier rotate(20deg) value but result in translatex(-200px) rotate(20deg).
Element: compositionend event - Web APIs
me">on macos, click in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> <input type="text" id="example" name="example"> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">clear</button> </div> css body { padding: .2rem; display: g
rid; g
rid-template-areas: "control log"; } .control { g
rid-area: control; } .event-log { g
rid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } input[type="text"] { margin: .5rem 0; } kbd { border-radius: 3px; padding: 1px 2px 0; border: 1px solid black; } js const inputelement = document.queryselector('input[type="text"]'); const log = ...
Element: compositionstart event - Web APIs
me">on macos, click in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> <input type="text" id="example" name="example"> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">clear</button> </div> css body { padding: .2rem; display: g
rid; g
rid-template-areas: "control log"; } .control { g
rid-area: control; } .event-log { g
rid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } input[type="text"] { margin: .5rem 0; } kbd { border-radius: 3px; padding: 1px 2px 0; border: 1px solid black; } js const inputelement = document.queryselector('input[type="text"]'); const log = ...
Element: compositionupdate event - Web APIs
me">on macos, click in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> <input type="text" id="example" name="example"> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">clear</button> </div> css body { padding: .2rem; display: g
rid; g
rid-template-areas: "control log"; } .control { g
rid-area: control; } .event-log { g
rid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } input[type="text"] { margin: .5rem 0; } kbd { border-radius: 3px; padding: 1px 2px 0; border: 1px solid black; } js const inputelement = document.queryselector('input[type="text"]'); const log = ...
Element: error event - Web APIs
examples live example html <div class="controls"> <button id="img-error" type="button">generate image error</button> <img class="bad-img" /> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> css body { display: g
rid; g
rid-template-areas: "control log"; } .controls { g
rid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { g
rid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } button { height: 2rem; margin: .5rem; } img { width: 0; height: 0; } js const log = document.queryselector('.event-log-contents...
Element: paste event - Web APIs
to over
ride the default behavior (for example to insert some different data or a transformation of the clipboard contents) an event handler must cancel the default action using event.preventdefault(), and then insert its desired data manually.
ElementCSSInlineStyle.style - Web APIs
for adding specific styles to an element without altering other style values, it is preferred to use the individual properties of style (as in elt.style.color = '...') as using elt.style.csstext = '...' or elt.setattribute('style', '...') sets the complete inline style for the element by over
riding the existing inline styles.
EventTarget.addEventListener() - Web APIs
you can over
ride this behavior by explicitly setting the value of passive to false, as shown here: /* feature detection */ let passiveifsupported = false; try { window.addeventlistener("test", null, object.defineproperty( {}, "passive", { get: function() { passiveifsupported = { passive: false }; } } ) ); } catch(err) {} window.addeventlistener('scroll', function(ev...
FileReader: abort event - Web APIs
<img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { margin: 1rem 0; } .event-log-contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: g
rid; g
rid-template-areas: "select log" "preview log"; } .file-select { g
rid-area: select; } .preview { g
rid-area: preview; } .event-log { g
rid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } js const fileinput = document.queryselector('input[type="file"]'); const preview = document.queryselector('img.preview'); c...
FileReader: load event - Web APIs
<img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { margin: 1rem 0; } .event-log-contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: g
rid; g
rid-template-areas: "select log" "preview log"; } .file-select { g
rid-area: select; } .preview { g
rid-area: preview; } .event-log { g
rid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } js const fileinput = document.queryselector('input[type="file"]'); const preview = document.queryselector('img.preview'); c...
FileReader: loadend event - Web APIs
<img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { margin: 1rem 0; } .event-log-contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: g
rid; g
rid-template-areas: "select log" "preview log"; } .file-select { g
rid-area: select; } .preview { g
rid-area: preview; } .event-log { g
rid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } js const fileinput = document.queryselector('input[type="file"]'); const preview = document.queryselector('img.preview'); c...
FileReader: loadstart event - Web APIs
<img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { margin: 1rem 0; } .event-log-contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: g
rid; g
rid-template-areas: "select log" "preview log"; } .file-select { g
rid-area: select; } .preview { g
rid-area: preview; } .event-log { g
rid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } js const fileinput = document.queryselector('input[type="file"]'); const preview = document.queryselector('img.preview'); c...
FileReader: progress event - Web APIs
<img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { margin: 1rem 0; } .event-log-contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: g
rid; g
rid-template-areas: "select log" "preview log"; } .file-select { g
rid-area: select; } .preview { g
rid-area: preview; } .event-log { g
rid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } js const fileinput = document.queryselector('input[type="file"]'); const preview = document.queryselector('img.preview'); c...
Using FormData Objects - Web APIs
simply include an <input> element of type file in your <form>: <form enctype="multipart/form-data" method="post" name="fileinfo"> <label>your email address:</label> <input type="email" autocomplete="on" autofocus name="use
rid" placeholder="email" required size="32" maxlength="64" /><br /> <label>custom file label:</label> <input type="text" name="filelabel" size="12" maxlength="32" /><br /> <label>file to stash:</label> <input type="file" name="file" required /> <input type="submit" value="stash the file!" /> </form> <div></div> then you can send it using code like the following: var form = document.forms...
GlobalEventHandlers.onerror - Web APIs
instead the error reported is simply "script error." this behavior can be over
riden in some browsers using the crossorigin attribute on <script> and having the server send the appropriate cors http response headers.
HTMLElement: change event - Web APIs
examples <select> element html <label>choose an ice cream flavor: <select class="ice-cream" name="ice-cream"> <option value="">select one …</option> <option value="chocolate">chocolate</option> <option value="sardine">sardine</option> <option value="vanilla">vanilla</option> </select> </label> <div class="result"></div> body { display: g
rid; g
rid-template-areas: "select result"; } select { g
rid-area: select; } .result { g
rid-area: result; } javascript const selectelement = document.queryselector('.ice-cream'); selectelement.addeventlistener('change', (event) => { const result = document.queryselector('.result'); result.textcontent = `you like ${event.target.value}`; }); result text input element for some elem...
HTMLElement: gotpointercapture event - Web APIs
const para = document.queryselector('p'); para.addeventlistener('gotpointercapture', () => { console.log('i\'ve been captured!') }); para.addeventlistener('pointerdown', (event) => { para.setpointercapture(event.pointe
rid); }); the same example, using the ongotpointercapture event handler property: const para = document.queryselector('p'); para.ongotpointercapture = () => { console.log('i\'ve been captured!') }; para.addeventlistener('pointerdown', (event) => { para.setpointercapture(event.pointe
rid); }); specifications specification status pointer events obsolete ...
HTMLElement: lostpointercapture event - Web APIs
const para = document.queryselector('p'); para.addeventlistener('lostpointercapture', () => { console.log('i\'ve been released!') }); para.addeventlistener('pointerdown', (event) => { para.setpointercapture(event.pointe
rid); }); the same example, but using the onlostpointercapture event handler property: const para = document.queryselector('p'); para.onlostpointercapture = () => { console.log('i\'ve been released!') }; para.addeventlistener('pointerdown', (event) => { para.setpointercapture(event.pointe
rid); }); specifications specification status pointer events obsolete ...
HTMLFormElement.name - Web APIs
if your <form> element contains an element named name then that element over
rides the form.name property, so that you can't access it.
HTMLImageElement.x - Web APIs
<table id="userinfo"> <colgroup> <col span="2" class="group1"> <col> </colgroup> <tr> <th>use
rid</th> <th>name</th> <th>avatar</th> </tr> <tr> <td>12345678</td> <td>johnny rocket</td> <td><img src="https://udn.realityripple.com/samples/d6/7ab36d79bb.jpg"</td> </th> </table> <pre id="log"> </pre> javascript the javascript code that fetches the image from the table and looks up its x and y values is below.
HTMLImageElement.y - Web APIs
<table id="userinfo"> <colgroup> <col span="2" class="group1"> <col> </colgroup> <tr> <th>use
rid</th> <th>name</th> <th>avatar</th> </tr> <tr> <td>12345678</td> <td>johnny rocket</td> <td><img src="https://udn.realityripple.com/samples/d6/7ab36d79bb.jpg"</td> </th> </table> <pre id="log"> </pre> javascript the javascript code that fetches the image from the table and looks up its x and y values is below.
HTMLMediaElement.autoplay - Web APIs
note: some browsers offer users the ability to over
ride autoplay in order to prevent disruptive audio or video from playing without permission or in the background.
HTMLMediaElement: loadstart event - Web APIs
ass="example"> <button type="button">load video</button> <video controls width="250"></video> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css .event-log-contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: g
rid; g
rid-template-areas: "button log" "video log"; } button { g
rid-area: button; width: 10rem; margin: .5rem 0; } video { g
rid-area: video; } .event-log { g
rid-area: log; } .event-log>label { display: block; } js const loadvideo = document.queryselector('button'); const video = document.queryselector('video'); const eventlog = document.queryselector...
HTMLMediaElement: progress event - Web APIs
ass="example"> <button type="button">load video</button> <video controls width="250"></video> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css .event-log-contents { width: 18rem; height: 5rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .example { display: g
rid; g
rid-template-areas: "button log" "video log"; } button { g
rid-area: button; width: 10rem; margin: .5rem 0; } video { g
rid-area: video; } .event-log { g
rid-area: log; } .event-log>label { display: block; } javascript const loadvideo = document.queryselector('button'); const video = document.queryselector('video'); const eventlog = document.query...
HTMLSelectElement.autofocus - Web APIs
the htmlselectelement.autofocus property is a boolean that reflects the autofocus html attribute, which indicates whether the associated <select> element will get input focus when the page loads, unless the user over
rides it.
HTMLSelectElement - Web APIs
htmlselectelement.autofocus a boolean reflecting the autofocus html attribute, which indicates whether the control should have input focus when the page loads, unless the user over
rides it, for example by typing in a different control.
Drag Operations - Web APIs
you can modify the dropeffect property to over
ride the user effect, and enforce a specific drop operation to occur.
Ajax navigation example - Web APIs
mi4waweaaaah/hpdcmvhdgvkihdpdgggywphegxvywquaw5mbwah+qqjcgaaacwaaaaaeaaqaaadmwi63p4wyklre2mioggznadomgyjrbexwroumcg2lmdewnhqlvsyod2mbzkydadka+diaaah+qqjcgaaacwaaaaaeaaqaaadnai63p5ojcegg4qmu7dmikrxqlfuydezigbmrvsaqhwctxxf7weyb4ag1xjihkmzsiukkhiaifkecqoaaaasaaaaabaaeaaaazyiujijk8pbyjdmlfyvbovjha70gu7xsujhmktwhpakzlo9hmaokwjz7rf8aypddzkpzbqfvwqaifkecqoaaaasaaaaabaaeaaaazmiumilk8oyhphsnfzfhyumcyuhdaqx
ridhhbgqrokw0r8dyljd8z0fmdgsgo/iphi5taaaifkecqoaaaasaaaaabaaeaaaaziiunink0rnzbtwgpnmgqwmdsngxgjuliweur5owuipz8paeame6twfwyysgo/ipfksaaah+qqjcgaaacwaaaaaeaaqaaadmwi6imkqorfjdoe82p4wgccc4ceuqradylesojembgsuc2g7sdx3lqgbmlajibufbslkaaah+qqjcgaaacwaaaaaeaaqaaadmgi63p7wcrhznfvdmghu2nfwlwci3wgc3tswhufgxtaukgcbtgenbmjaejsxgmlwzpeaach5bakkaaaalaaaaaaqabaaaamyclrc/jdksatlqtsckdcecajdii7hcq4emtcpyrcuubjcyrghvtq...
KeyframeEffect.iterationComposite - Web APIs
the iterationcomposite property of a keyframeeffect resolves how the animation's property value changes accumulate or over
ride each other upon each of the animation's iterations.
KeyframeEffectOptions - Web APIs
for instance with transform, a translatex(-200px) would not over
ride an earlier rotate(20deg) value but result in translatex(-200px) rotate(20deg).
Long Tasks API - Web APIs
for tasks that don't occur within the top level page, the containe
rid, containername and containersrc fields may provide information as to the source of the task.
MediaDevices.getUserMedia() - Web APIs
the following expresses a preference for 1280x720 camera resolution: { audio: true, video: { width: 1280, height: 720 } } the browser will try to honour this, but may return other resolutions if an exact match is not available, or the user over
rides it.
MediaRecorder.onerror - Web APIs
this also happens when a mediastreamtrack within the stream is marked as isolated due to the pee
ridentity constraint on the source stream.
MediaRecorder.start() - Web APIs
this also happens when a mediastreamtrack within the stream is marked as isolated due to the pee
ridentity constraint on the source stream.
Navigator.productSub - Web APIs
specifications specification status comment html living standardthe definition of 'navigato
rid: productsub' in that specification.
Navigator.vendor - Web APIs
specifications specification status comment html living standardthe definition of 'navigato
rid: vendor' in that specification.
Navigator.vendorSub - Web APIs
syntax vensub = window.navigator.vendorsub value the empty string specifications specification status comment html living standardthe definition of 'navigato
rid: vendorsub' in that specification.
Notification.Notification() - Web APIs
it defaults to auto, which just adopts the browser's language setting behavior, but you can over
ride that behaviour by setting values of ltr and rtl (although most browsers seem to ignore these settings.) lang: the notification's language, as specified using a domstring representing a bcp 47 language tag.
SpeechSynthesisUtterance.volume - Web APIs
syntax var myvolume = speechsynthesisutteranceinstance.volume; speechsynthesisutteranceinstance.volume = 0.5; value a float that represents the volume value, between 0 (lowest) and 1 (highest.) if ssml is used, this value will be over
ridden by prosody tags in the markup.
Using readable streams - Web APIs
if you wanted to completely get
rid of the stream and discard any enqueued chunks, you'd use readablestream.cancel() or readablestreamdefaultreader.cancel().
TouchEvent - Web APIs
to over
ride this behavior, you need to set the passive option to false, after which calling preventdefault() will work as specified.
WebGL2RenderingContext.compressedTexSubImage3D() - Web APIs
syntax // read from the buffer bound to gl.pixel_unpack_buffer void gl.compressedtexsubimage3d(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imagesize, offset); void gl.compressedtexsubimage3d(target, level, xoffset, yoffset, zoffset, width, height, depth, format, arraybufferview srcdata, optional srcoffset, optional srclengthover
ride); parameters target a glenum specifying the binding point (target) of the active texture.
WebGLRenderingContext.compressedTexImage[23]D() - Web APIs
pixels); // additionally available in webgl 2: // read from buffer bound to gl.pixel_unpack_buffer void gl.compressedteximage2d(target, level, internalformat, width, height, border, glsizei imagesize, glintptr offset); void gl.compressedteximage2d(target, level, internalformat, width, height, border, arraybufferview srcdata, optional srcoffset, optional srclengthover
ride); // read from buffer bound to gl.pixel_unpack_buffer void gl.compressedteximage3d(target, level, internalformat, width, height, depth, border, glsizei imagesize, glintptr offset); void gl.compressedteximage3d(target, level, internalformat, width, height, depth, border, arraybufferview srcdata, optional srcoffset, optional srclengthover
ride); parameters target ...
WebGLRenderingContext.compressedTexSubImage2D() - Web APIs
pixels); // additionally available in webgl 2: void gl.compressedtexsubimage2d(target, level, xoffset, yoffset, width, height, format, imagesize, offset); void gl.compressedtexsubimage2d(target, level, xoffset, yoffset, width, height, format, arraybufferview srcdata, optional srcoffset, optional srclengthover
ride); parameters target a glenum specifying the binding point (target) of the active compressed texture.
Scissor animation - Web APIs
position[1] -= velocity; // when the sqaure hits the bottom of the drawing buffer, // we over
ride it with new square of different color and // velocity.
Creating 3D objects using WebGL - Web APIs
gl.vertexattribpointer( programinfo.attriblocations.vertexposition, numcomponents, type, normalize, st
ride, offset); gl.enablevertexattribarray( programinfo.attriblocations.vertexposition); } define the vertices' colors we also need to build an array of colors for each of the 24 vertices.
Lighting in WebGL - Web APIs
{ const numcomponents = 3; const type = gl.float; const normalize = false; const st
ride = 0; const offset = 0; gl.bindbuffer(gl.array_buffer, buffers.normal); gl.vertexattribpointer( programinfo.attriblocations.vertexnormal, numcomponents, type, normalize, st
ride, offset); gl.enablevertexattribarray( programinfo.attriblocations.vertexnormal); } finally, we need to update the code that builds the uniform mat...
Using shaders to apply color in WebGL - Web APIs
{ const numcomponents = 4; const type = gl.float; const normalize = false; const st
ride = 0; const offset = 0; gl.bindbuffer(gl.array_buffer, buffers.color); gl.vertexattribpointer( programinfo.attriblocations.vertexcolor, numcomponents, type, normalize, st
ride, offset); gl.enablevertexattribarray( programinfo.attriblocations.vertexcolor); } view the complete code | open this demo on a new page « p...
Using textures in WebGL - Web APIs
first, the code to specify the colors buffer is gone, replaced with this: // tell webgl how to pull out the texture coordinates from buffer { const num = 2; // every coordinate composed of 2 values const type = gl.float; // the data in the buffer is 32 bit float const normalize = false; // don't normalize const st
ride = 0; // how many bytes to get from one set to the next const offset = 0; // how many bytes inside the buffer to start from gl.bindbuffer(gl.array_buffer, buffers.texturecoord); gl.vertexattribpointer(programinfo.attriblocations.texturecoord, num, type, normalize, st
ride, offset); gl.enablevertexattribarray(programinfo.attriblocations.texturecoord); } then add code to specify th...
WebRTC API - Web APIs
see also mediadevices mediastreamevent mediastreamconstraints mediastreamtrack messageevent mediastream media capture and streams api firefox multistream and renegotiation for jitsi videob
ridge peering through the webrtc fog with socketpeer inside the party bus: building a web app with multiple live video streams + interactive graphics web media technologies ...
Web Audio API best practices - Web APIs
if for example, you want the gain value to be raised to 1 in 2 seconds time, you can do this: gainnode.gain.setvalueattime(1, audioctx.currenttime + 2); it will over
ride the previous example (as it should), even if it were to come later in your code.
Window: error event - Web APIs
examples live example html <div class="controls"> <button id="script-error" type="button">generate script error</button> <img class="bad-img" /> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> css body { display: g
rid; g
rid-template-areas: "control log"; } .controls { g
rid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { g
rid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } button { height: 2rem; margin: .5rem; } img { width: 0; height: 0; } js const log = document.queryselector('.event-log-contents...
Window: load event - Web APIs
); the same, but using the onload event handler property: window.onload = (event) => { console.log('page is fully loaded'); }; live example html <div class="controls"> <button id="reload" type="button">reload</button> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> css body { display: g
rid; g
rid-template-areas: "control log"; } .controls { g
rid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { g
rid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } #reload { height: 2rem; } js const log = document.queryselector('.event-log-contents'); const reload = document.queryselector('#reload...
Window.navigator - Web APIs
m-g955f build/ppr1.180610.011) applewebkit/537.36 (khtml, like gecko) samsungbrowser/9.4 chrome/67.0.3396.87 mobile safari/537.36 } else if (susrag.indexof("opera") > -1 || susrag.indexof("opr") > -1) { sbrowser = "opera"; // "mozilla/5.0 (macintosh; intel mac os x 10_14_0) applewebkit/537.36 (khtml, like gecko) chrome/70.0.3538.102 safari/537.36 opr/57.0.3098.106" } else if (susrag.indexof("t
rident") > -1) { sbrowser = "microsoft internet explorer"; // "mozilla/5.0 (windows nt 10.0; wow64; t
rident/7.0; .net4.0c; .net4.0e; zoom 3.6.0; wbx 1.0.0; rv:11.0) like gecko" } else if (susrag.indexof("edge") > -1) { sbrowser = "microsoft edge"; // "mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/58.0.3029.110 safari/537.36 edge/16.16299" } else if (s...
Window.open() - Web APIs
tip: note that in some browsers, users can over
ride the windowfeatures settings and enable (or prevent the disabling of) features position and size features windowfeatures parameter can specify the position and size of the new window.
Window.openDialog() - Web APIs
these can be over
ridden (so "menubar=no,all" turns on all chrome except the menubar.) this feature is explicitly ignored by window.open().
Window - Web APIs
for over
riding the prototype of built-in elements) are listed in a separate section below.
WindowEventHandlers.onhashchange - Web APIs
function hashhandler() { console.log('the hash has changed!'); } window.addeventlistener('hashchange', hashhandler, false); over
riding the hash this function sets a new hash dynamically, setting it randomly to one of two values.
Sending and Receiving Binary Data - Web APIs
function load_binary_resource(url) { var req = new xmlhttprequest(); req.open('get', url, false); //xhr binary charset opt by marcus granado 2006 [http://mgran.blogspot.com] req.over
ridemimetype('text\/plain; charset=x-user-defined'); req.send(null); if (req.status != 200) return ''; return req.responsetext; } the magic happens in line 5, which over
rides the mime type, forcing the browser to treat it as plain text, using a user-defined character set.
Web APIs
cksupportedconstraints merchantvalidationevent messagechannel messageevent messageport metadata mimetype mimetypearray mouseevent mousescrollevent mousewheelevent mutationevent mutationobserver mutationobserverinit mutationrecord n ndefmessage ndefreader ndefreadingevent ndefrecord ndefwriter namelist namednodemap navigationpreloadmanager navigator navigatorconcurrenthardware navigato
rid navigatorlanguage navigatoronline navigatorplugins navigatorstorage networkinformation node nodefilter nodeiterator nodelist nondocumenttypechildnode notation notification notificationaction notificationevent notifyaudioavailableevent o oes_element_index_uint oes_fbo_render_mipmap oes_standard_derivatives oes_texture_float oes_texture_float_linear oes_texture_half_float oes_texture_h...
Using the aria-required attribute - Accessibility
text" aria-required="true" /> <br/> <label for="lastname">last name:</label> <input id="lastname" type="text" aria-required="true" /> <br/> <label for="streetaddress">street address:</label> <input id="streetaddress" type="text" /> </form> working examples: tooltip example (includes the use of the aria-required attribute) notes used in aria roles combobox g
ridcell listbox radiogroup spinbutton textbox tree related aria techniques using the aria-invalid attribute compatibility tbd: add support information for common ua and at product combinations additional resources wai-aria specification for aria-required wai-aria authoring practices for forms constraint validation in html5 ...
Using the slider role - Accessibility
day-handle" class="day-slider-handle" role="slider" aria-labelledby="day-label" aria-valuemin="1" aria-valuemax="7" aria-valuenow="2" aria-valuetext="monday"> </div> </div> the code snippet below shows a function that responds to user input and updates the aria-valuenow and aria-valuetext attributes: var daynames = ["sunday", "monday", "tuesday", "wednesday", "thursday", "f
riday", "saturday"]; var updateslider = function (newvalue) { var handle = document.getelementbyid("day-handle"); handle.setattribute("aria-valuenow", newvalue.tostring()); handle.setattribute("aria-valuetext", daynames[newvalue]); }; working examples: slider example notes aria attributes used aria-valuemin aria-valuemax aria-valuenow aria-valuetext aria-orientation ...
x-ms-aria-flowfrom - Accessibility
the x-ms-aria-flowfrom property specifies the id of the previous element in an alternative reading order, allowing assistive technology to over
ride the general default of reading in document source order.
overview - Accessibility
bility with wai-aria roles and states, from the yui blog enhancing the jquery ui tabs accordingly to wcag 2.0 and aria tab panel example here on codetalks lightbox wcag 2.0 and aria-conformant lightbox application http://majx-js.digissime.net/js/popin/ form validation wcag 2.0 and aria-conformant live form validation tables german tutorial on creating an accessible form simple g
rid example at codetalks date picker g
rid at codetalks wcag 2.0 and aria-conformant sortable tables ...
Accessibility: What users can do to browse more safely - Accessibility
use reader mode on browsers enable content blockers; gets
rid of ads, reduces and/or removes distractions enables text-to-speech in certain browsers, enable fonts by choice enable page zoom turn off animated gifs in the browser browsers offer much power to their users; it's just a matter of knowing where to go.
Operable - Accessibility
this is usually a dotted or blue outline by default (depending on browser, platform, etc.), but this can be ove
ridden by css.
:-webkit-autofill - CSS: Cascading Style Sheets
note: the user agent style sheets of many browsers use !important in their :-webkit-autofill style declarations, making them non-over
rideable by webpages without resorting to javascript hacks.
::-webkit-meter-optimum-value - CSS: Cascading Style Sheets
html <meter min="0" max="10" value="6">score out of 10</meter> css meter::-webkit-meter-bar { /* required to get
rid of the default background property */ background : none; background-color : whitesmoke; box-shadow : 0 5px 5px -5px #333 inset; } meter::-webkit-meter-optimum-value { box-shadow: 0 5px 5px -5px #999 inset; } result ...
::first-letter (:first-letter) - CSS: Cascading Style Sheets
allowable properties only a small subset of css properties can be used with the ::first-letter pseudo-element: all font properties : font, font-style, font-feature-settings, font-kerning, font-language-over
ride, font-stretch, font-synthesis, font-variant, font-variant-alternates, font-variant-caps, font-variant-east-asian, font-variant-ligatures, font-variant-numeric, font-variant-position, font-weight, font-size, font-size-adjust, line-height and font-family all background properties : background, background-color, background-image, background-clip, background-origin, background-position, background-...
::first-line (:first-line) - CSS: Cascading Style Sheets
allowable properties only a small subset of css properties can be used with the ::first-line pseudo-element: all font-related properties: font, font-kerning, font-style, font-variant, font-variant-numeric, font-variant-position, font-variant-east-asian, font-variant-caps, font-variant-alternates, font-variant-ligatures, font-synthesis, font-feature-settings, font-language-over
ride, font-weight, font-size, font-size-adjust, font-stretch, and font-family all background-related properties: background-color, background-clip, background-image, background-origin, background-position, background-repeat, background-size, background-attachment, and background-blend-mode the color property word-spacing, letter-spacing, text-decoration, text-transform, and line-height text-shad...
:active - CSS: Cascading Style Sheets
styles defined by the :active pseudo-class will be over
ridden by any subsequent link-related pseudo-class (:link, :hover, or :visited) that has at least equal specificity.
:hover - CSS: Cascading Style Sheets
/* selects any <a> element when "hovered" */ a:hover { color: orange; } styles defined by the :active pseudo-class will be over
ridden by any subsequent link-related pseudo-class (:link, :visited, or :active) that has at least equal specificity.
:link - CSS: Cascading Style Sheets
/* selects any <a> that has not been visited yet */ a:link { color: red; } styles defined by the :link pseudo-class will be over
ridden by any subsequent link-related pseudo-class (:active, :hover, or :visited) that has at least equal specificity.
:visited - CSS: Cascading Style Sheets
/* selects any <a> that has been visited */ a:visited { color: green; } styles defined by the :visited pseudo-class will be over
ridden by any subsequent link-related pseudo-class (:link, :hover, or :active) that has at least equal specificity.
aspect-ratio - CSS: Cascading Style Sheets
</div> css /* minimum aspect ratio */ @media (min-aspect-ratio: 8/5) { div { background: #9af; /* blue */ } } /* maximum aspect ratio */ @media (max-aspect-ratio: 3/2) { div { background: #9ff; /* cyan */ } } /* exact aspect ratio, put it at the bottom to avoid over
ride*/ @media (aspect-ratio: 1/1) { div { background: #f9a; /* red */ } } _example used iframe and dataurl to enable this iframe could resize html <label id="wf" for="w">width:165</label> <input id="w" name="w" type="range" min="100" max="250" step="5" value="165"> <label id="hf" for="w">height:165</label> <input id="h" name="h" type="range" min="100" max="250" step="5" value="165"> <i...
@viewport - CSS: Cascading Style Sheets
@viewport { width: 100vw; /*sets the width of the actual viewport to the device width*/ } note: the use of <meta name="viewport"> tag over
rides @viewport syntax the at-rule contains a set of nested descriptors in a css block that is delimited by curly braces.
CSS Display - CSS: Cascading Style Sheets
rmatting contexts explained in flow and out of flow display: flex basic concepts of flexbox aligning items in a flex container controlling ratios of flex items along the main axis cross-browser flexbox mixins mastering wrapping of flex items ordering flex items relationship of flexbox to other layout methods backwards compatibility of flexbox typical use cases of flexbox display: g
rid basic concepts of g
rid layout relationship to other layout methods line-based placement g
rid template areas layout using named g
rid lines auto-placement in g
rid layout box alignment in g
rid layout g
rids, logical values and writing modes css g
rid layout and accessibility css g
rid layout and progressive enhancement realizing common layouts using g
rids specifications specifi...
Block and inline layout in normal flow - CSS: Cascading Style Sheets
this concept of the outer and inner display type is important as this tells us that a container using a layout method such as flexbox (display: flex) and g
rid layout (display: g
rid) is still participating in block and inline layout, due to the outer display type of those methods being block.
Introduction to formatting contexts - CSS: Cascading Style Sheets
y: inline-block table cells or elements with display: table-cell, including anonymous table cells created when using the display: table-* properties table captions or elements with display: table-caption block elements where overflow has a value other than visible elements with display: flow-root or display: flow-root list-item elements with contain: layout, content, or strict flex items g
rid items multicol containers elements with column-span set to all this is useful because a new bfc will behave much like the outermost document in that it becomes a mini-layout inside the main layout.
CSS Fonts - CSS: Cascading Style Sheets
reference properties font font-family font-feature-settings font-kerning font-language-over
ride font-optical-sizing font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-variation-settings font-weight line-height at-rules @font-face font-family font-feature-settings font-style font-variant fon...
CSS selectors - CSS: Cascading Style Sheets
specifications specification status comment selectors level 4 working draft added the || column combinator, g
rid structural selectors, logical combinators, location, time-demensional, resource state, linguistic and ui pseudo-classes, modifier for ascii case-sensitive and case-insensitive attribute value selection.
Using CSS transforms - CSS: Cascading Style Sheets
196, 0.7); transform: rotatey(-90deg) translatez(50px); } .top { background: rgba(196, 196, 0, 0.7); transform: rotatex(90deg) translatez(50px); } .bottom { background: rgba(196, 0, 196, 0.7); transform: rotatex(-90deg) translatez(50px); } /* make the layout a little nicer */ section { background-color: #eee; padding: 10px; font-family: sans-serif; text-align: left; display: g
rid; g
rid-template-columns: repeat(3, 1fr); } result once you have done this, you can work on the element in the 3d space.
Animatable CSS properties - CSS: Cascading Style Sheets
bottom box-shadow caret-color clip clip-path color column-count column-gap column-rule column-rule-color column-rule-width column-width columns filter flex flex-basis flex-grow flex-shrink font font-size font-size-adjust font-stretch font-variation-settings font-weight gap g
rid-column-gap g
rid-gap g
rid-row-gap g
rid-template-columns g
rid-template-rows height inline-size inset inset-block inset-block-end inset-block-start inset-inline inset-inline-end inset-inline-start left letter-spacing line-clamp line-height margin margin-block-end margin-block-start margin-bottom ...
Layout and the containing block - CSS: Cascading Style Sheets
ning block depends entirely on the value of the element's position property: if the position property is static, relative, or sticky, the containing block is formed by the edge of the content box of the nearest ancestor element that is either a block container (such as an inline-block, block, or list-item element) or establishes a formatting context (such as a table container, flex container, g
rid container, or the block container itself).
Questions about CSS - CSS: Cascading Style Sheets
an imported style sheet, using the css @import notation to automatically import and merge an external style sheet with the current style sheet style attributes specified by the viewer to the browser the default style sheet assumed by the browser in general, the web page creator's style sheet takes precedence, but it's recommended that browsers provide ways for the viewer to over
ride the style attributes in some respects.
border-bottom - CSS: Cascading Style Sheets
hiddenborder-bottom-style: as specifiedborder-bottom-color: computed coloranimation typeas each of the properties of the shorthand:border-bottom-color: a colorborder-bottom-style: discreteborder-bottom-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove |
ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-left - CSS: Cascading Style Sheets
is none or hiddenborder-left-style: as specifiedborder-left-color: computed coloranimation typeas each of the properties of the shorthand:border-left-color: a colorborder-left-style: discreteborder-left-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove |
ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-right - CSS: Cascading Style Sheets
ne or hiddenborder-right-style: as specifiedborder-right-color: computed coloranimation typeas each of the properties of the shorthand:border-right-color: a colorborder-right-style: discreteborder-right-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove |
ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-top - CSS: Cascading Style Sheets
tyle is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typeas each of the properties of the shorthand:border-top-color: a colorborder-top-style: discreteborder-top-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove |
ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-width - CSS: Cascading Style Sheets
id="sval"> one value: 6px wide border on all 4 sides</p> <p id="bival"> two different values: 2px wide top and bottom border, 10px wide right and left border</p> <p id="treval"> three different values: 0.3em top, 9px bottom, and zero width right and left</p> <p id="fourval"> four different values: "thin" top, "medium" right, "thick" bottom, and 1em left</p> css #sval { border:
ridge #ccc; border-width: 6px; } #bival { border: solid red; border-width: 2px 10px; } #treval { border: dotted orange; border-width: 0.3em 0 9px; } #fourval { border: solid lightgreen; border-width: thin medium thick 1em; } p { width: auto; margin: 0.25em; padding: 0.25em; } result specifications specification status comment css backgrounds and bo...
border - CSS: Cascading Style Sheets
olorborder-top-color: a colorborder-style: discreteborder-width: as each of the properties of the shorthand:border-bottom-width: a lengthborder-left-width: a lengthborder-right-width: a lengthborder-top-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove |
ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
column-rule-style - CSS: Cascading Style Sheets
syntax /* <'border-style'> values */ column-rule-style: none; column-rule-style: hidden; column-rule-style: dotted; column-rule-style: dashed; column-rule-style: solid; column-rule-style: double; column-rule-style: groove; column-rule-style:
ridge; column-rule-style: inset; column-rule-style: outset; /* global values */ column-rule-style: inherit; column-rule-style: initial; column-rule-style: unset; the column-rule-style property is specified as a single <'border-style'> value.
column-rule - CSS: Cascading Style Sheets
note: as with all shorthand properties, any individual value that is not specified is set to its corresponding initial value (possibly over
riding values previously set using non-shorthand properties).
counter-increment - CSS: Cascading Style Sheets
syntax /* increment "my-counter" by 1 */ counter-increment: my-counter; /* decrement "my-counter" by 1 */ counter-increment: my-counter -1; /* increment "counter1" by 1, and decrement "counter2" by 4 */ counter-increment: counter1 counter2 -4; /* do not increment/decrement anything: used to over
ride less specific rules */ counter-increment: none; /* global values */ counter-increment: inherit; counter-increment: initial; counter-increment: unset; the counter-increment property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
float - CSS: Cascading Style Sheets
inline block inline-block block inline-table table table-row block table-row-group block table-column block table-column-group block table-cell block table-caption block table-header-group block table-footer-group block inline-flex flex inline-g
rid g
rid other unchanged note: if you're referring to this property from javascript as a member of the htmlelement.style object, modern browsers support float, but in older browsers you have to spell it as cssfloat, with internet explorer versions 8 and older using stylefloat.
font - CSS: Cascading Style Sheets
as with any shorthand property, any individual value that is not specified is set to its corresponding initial value (possibly over
riding values previously set using non-shorthand properties).
hyphens - CSS: Cascading Style Sheets
however, suggested line break opportunities (see suggesting line break opportunities below) will over
ride automatic break point selection when present.
line-height-step - CSS: Cascading Style Sheets
:root { font-size: 12pt; --my-g
rid: 18pt; line-height-step: var(--my-g
rid); } h1 { font-size: 20pt; margin-top: calc(2 * var(--my-g
rid)); } the result of these rules is shown below in the following screenshot: specifications specification status comment css rhythmic sizingthe definition of 'line-height-step' in that specification.
mask-type - CSS: Cascading Style Sheets
/* keyword values */ mask-type: luminance; mask-type: alpha; /* global values */ mask-type: inherit; mask-type: initial; mask-type: unset; this property may be over
ridden by the mask-mode property, which has the same effect but applies to the element where the mask is used.
mask - CSS: Cascading Style Sheets
it is therefore recommended to use the mask shorthand rather than other shorthands or the individual properties to over
ride any mask settings earlier in the cascade.
overflow-inline - CSS: Cascading Style Sheets
formal definition initial valueautoapplies toblock-containers, flex containers, and g
rid containersinheritednocomputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete formal syntax visible | hidden | clip | scroll | auto examples setting inline overflow behavior html <ul> <li><code>overflow-inline:hidden</code> — hides the text outside the box <div id="...
overflow-x - CSS: Cascading Style Sheets
formal definition initial valuevisibleapplies toblock-containers, flex containers, and g
rid containersinheritednocomputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete formal syntax visible | hidden | clip | scroll | auto examples html <ul> <li><code>overflow-x:hidden</code> — hides the text outside the box <div id="div1"> abcdefghijklmopqrstuvwxyza...
overflow-y - CSS: Cascading Style Sheets
formal definition initial valuevisibleapplies toblock-containers, flex containers, and g
rid containersinheritednocomputed valueas specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete formal syntax visible | hidden | clip | scroll | auto examples setting overflow-y behavior html <ul> <li><code>overflow-y:hidden</code> — hides the text outside the box <div id="div1"> lo...
overflow - CSS: Cascading Style Sheets
formal definition initial valuevisibleapplies toblock-containers, flex containers, and g
rid containersinheritednocomputed valueas each of the properties of the shorthand:overflow-x: as specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipoverflow-y: as specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscr...
perspective-origin - CSS: Cascading Style Sheets
196, 0.7); transform: rotatey(-90deg) translatez(50px); } .top { background: rgba(196, 196, 0, 0.7); transform: rotatex(90deg) translatez(50px); } .bottom { background: rgba(196, 0, 196, 0.7); transform: rotatex(-90deg) translatez(50px); } /* make the layout a little nicer */ section { background-color: #eee; padding: 10px; font-family: sans-serif; text-align: left; display: g
rid; g
rid-template-columns: repeat(3, 1fr); } result specifications specification status comment css transforms level 2the definition of 'perspective-origin' in that specification.
position - CSS: Cascading Style Sheets
</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 hyb
rid of relative and fixed positioning.
Mobile-friendliness - Developer guides
separate sites responsive design a hyb
rid approach original document information originally published on 4 may, 2011 on the mozilla webdev blog as "approaches to mobile web development part 1 - what is mobile friendliness?", by jason grlicky.
Separate sites for mobile and desktop - Developer guides
responsive design a hyb
rid approach original document information this article was originally published on 13 may 2011, on the mozilla webdev blog as "approaches to mobile web development part 2 – separate sites", by jason grlicky.
<input type="email"> - HTML: Hypertext Markup Language
if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use unicode bidirectional algorithm formatting characters to over
ride directionality within the placeholder; see over
riding bidi using unicode control characters in the unicode bidirectional text algorithm for those characters.
<input type="number"> - HTML: Hypertext Markup Language
if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use unicode bidirectional algorithm formatting characters to over
ride directionality within the placeholder; see over
riding bidi using unicode control characters in the unicode bidirectional text algorithm for those characters.
<input type="password"> - HTML: Hypertext Markup Language
if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use unicode bidirectional algorithm formatting characters to over
ride directionality within the placeholder; see over
riding bidi using unicode control characters in the unicode bidirectional text algorithm for those characters.
<input type="tel"> - HTML: Hypertext Markup Language
if the control's content has one directionality (ltr or rtl) but needs to present the placeholder in the opposite directionality, you can use unicode bidirectional algorithm formatting characters to over
ride directionality within the placeholder; see over
riding bidi using unicode control characters in the unicode bidirectional text algorithm for those characters.
<keygen> - HTML: Hypertext Markup Language
autofocus this boolean attribute lets you specify that the control should have input focus when the page loads, unless the user over
rides it, for example by typing in a different control.
<li> - HTML: Hypertext Markup Language
type this character attribute indicates the numbering type: a: lowercase letters a: uppercase letters i: lowercase roman numerals i: uppercase roman numerals 1: numbers this type over
rides the one used by its parent <ol> element, if any.
<script>: The Script element - HTML: Hypertext Markup Language
<!-- generated by the server --> <script id="data" type="application/json">{"use
rid":1234,"username":"john doe","membersince":"2000-01-01t00:00:00.000z"}</script> <!-- static --> <script> const userinfo = json.parse(document.getelementbyid("data").text); console.log("user information: %o", userinfo); </script> specifications specification status comments html living standardthe definition of '<script>' in that specification.
<style>: The Style Information element - HTML: Hypertext Markup Language
a simple stylesheet in the following example, we apply a very simple stylesheet to a document: <!doctype html> <html> <head> <style> p { color: red; } </style> </head> <body> <p>this is my paragraph.</p> </body> </html> multiple style elements in this example we've included two <style> elements — notice how the conflicting declarations in the later <style> element over
ride those in the earlier one, if they have equal specificity.
dir - HTML: Hypertext Markup Language
this attribute can be over
ridden by the css properties direction and unicode-bidi, if a css page is active and the element supports these properties.
itemprop - HTML: Hypertext Markup Language
a meter element <div itemscope itemtype="http://schema.org/product"> <span itemprop="name">panasonic white 60l refrigerator</span> <img src="panasonic-f
ridge-60l-white.jpg" alt=""> <div itemprop="aggregaterating" itemscope itemtype="http://schema.org/aggregaterating"> <meter itemprop="ratingvalue" min=0 value=3.5 max=5>rated 3.5/5</meter> (based on <span itemprop="reviewcount">11</span> customer reviews) </div> </div> similarly, for date- and time-related data, the time element and its datetime attribute can b...
HTML documentation index - HTML: Hypertext Markup Language
68 <bdo>: the bidirectional text over
ride element bidi, bidirectional text, element, html, html text-level semantics, html:flow content, html:palpable content, html:phrasing content, left to right, reference, right to left, text, text direction, text rendering, web, ltr, rtl the html bidirectional text over
ride element (<bdo>) over
rides the current directionality of text, so that the text within is rendered in a different dire...
Resource URLs - HTTP
for example: http://searchfox.org/mozilla-central/rev/48ea452803907f2575d81021e8678634e8067fc2/browser/app/profile/firefox.js#575 web sites can easily collect firefox default preferences by over
riding this pref() function and using the script resource:///defaults/preferences/firefox.js.
Content negotiation - HTTP
once a user has over
ridden the server-chosen language, a site should no longer use language detection and should stick with the explicitly-chosen language.
Alt-Svc - HTTP
<alt-authority> the quoted string specifying the alternative authority which consists of an optional host over
ride, a colon, and a mandatory port number.
Cache-Control - HTTP
s-maxage=<seconds> over
rides max-age or the expires header, but only for shared caches (e.g., proxies).
Expect-CT - HTTP
expect-ct: max-age=86400, enforce, report-uri="https://foo.example/report" notes root cas manually added to the trust store over
ride and suppress expect-ct reports/enforcement.
Feature-Policy - HTTP
navigation-over
ride controls the availability of mechanisms that enables the page author to take control over the behavior of spatial navigation, or to cancel it outright.
If-Match - HTTP
it can check if the modification of a resource that the user wants to upload will not over
ride another change that has been done since the original resource was fetched.
User-Agent - HTTP
examples mozilla/5.0 (iphone; cpu iphone os 13_5_1 like mac os x) applewebkit/605.1.15 (khtml, like gecko) version/13.1.1 mobile/15e148 safari/604.1 internet explorer ua string examples mozilla/5.0 (compatible; msie 9.0; windows phone os 7.5; t
rident/5.0; iemobile/9.0) crawler and bot ua strings examples googlebot/2.1 (+http://www.google.com/bot.html) specifications specification title rfc 7231, section 5.5.3: user-agent hypertext transfer protocol (http/1.1): semantics and content rfc 2616, section 14.43: user-agent hypertext transfer protocol -- http/1.1 ...
Proxy Auto-Configuration (PAC) file - HTTP
examples weekdayrange("mon", "fri"); // returns true monday through f
riday (local timezone) weekdayrange("mon", "fri", "gmt"); // returns true monday through f
riday (gmt timezone) weekdayrange("sat"); // returns true on saturdays local time weekdayrange("sat", "gmt"); // returns true on saturdays gmt time weekdayrange("fri", "mon"); // returns true f
riday and monday only (note, order does matter!) daterange() syntax daterange(<day> | <mo...
CSS Houdini
with houdini you could invent your own masonry, g
rid, or regions implementation, but doing so is not necessarily the best idea.
Functions - JavaScript
(the inner scope variable "over
rides" the outer one, until the program exits the inner scope.) var createpet = function(name) { // the outer function defines a variable called "name".
SyntaxError: missing } after function body - JavaScript
examples forgotten closing curly bracket oftentimes, there is a missing curly bracket in your function code: var charge = function() { if (sunny) { usesolarcells(); } else { promptbike
ride(); }; correct would be: var charge = function() { if (sunny) { usesolarcells(); } else { promptbike
ride(); } }; it can be more obscure when using iife, closures, or other constructs that use a lot of different parenthesis and curly brackets, for example.
Error.prototype.message - JavaScript
by default, the message property is an empty string, but this behavior can be over
ridden for an instance by specifying a message as the first argument to the error constructor.
Function.prototype.apply() - JavaScript
if your value array might grow into the tens of thousands, use a hyb
rid strategy: apply your function to chunks of the array at a time: function minofarray(arr) { let min = infinity; let quantum = 32768; for (var i = 0, len = arr.length; i < len; i += quantum) { var submin = math.min.apply(null, arr.slice(i, math.min(i+quantum, len))); min = math.min(submin, min); } return min; } let min = minofarray([5, 6, 2, 3, ...
Intl.Locale.prototype.baseName - JavaScript
log(myloc.basename); // prints out "fr-latn-ca" example with options in the input string // sets language to japanese, region to japan, // calendar to gregorian, hour cycle to 24 hours let japan = new intl.locale("ja-jp-u-ca-gregory-hc-24"); console.log(japan.tostring()); // prints out "ja-jp-u-ca-gregory-hc-h24" console.log(japan.basename); // prints out "ja-jp" example with options that over
ride input string // input string indicates language as dutch and region as belgium, // but options object over
rides the region and sets it to the netherlands let dutch = new intl.locale("nl-latn-be", {region: "nl"}); console.log(dutch.basename); // prints out "nl-latn-nl" specifications specification ecmascript internationalization api (ecma-402) ...
Intl.Locale.prototype.language - JavaScript
let langstr = new intl.locale("en-latn-us"); console.log(langstr.language); // prints "en" over
riding language via the configuration object while the language subtag must be specified, the locale constructor takes a configuration object, which can over
ride the language subtag.
Promise.prototype.catch() - JavaScript
demonstration of the internal call: // over
riding original promise.prototype.then/catch just to add some logs (function(promise){ var originalthen = promise.prototype.then; var originalcatch = promise.prototype.catch; promise.prototype.then = function(){ console.log('> > > > > > called .then on %o with arguments: %o', this, arguments); return originalthen.apply(this, arguments); }; promise.prototype.catch ...
RegExp.prototype[@@match]() - JavaScript
let re = /[0-9]+/g; let str = '2016-01-02'; let result = re[symbol.match](str); console.log(result); // ["2016", "01", "02"] using @@match in subclasses subclasses of regexp can over
ride the [@@match]() method to modify the default behavior.
RegExp.prototype[@@matchAll]() - JavaScript
let re = /[0-9]+/g; let str = '2016-01-02'; let result = re[symbol.matchall](str); console.log(array.from(result, x => x[0])); // ["2016", "01", "02"] using @@matchall in subclasses subclasses of regexp can over
ride the [@@matchall]() method to modify the default behavior.
RegExp.prototype[@@replace]() - JavaScript
var re = /-/g; var str = '2016-01-01'; var newstr = re[symbol.replace](str, '.'); console.log(newstr); // 2016.01.01 using @@replace in subclasses subclasses of regexp can over
ride the [@@replace]() method to modify the default behavior.
RegExp.prototype[@@search]() - JavaScript
var re = /-/g; var str = '2016-01-02'; var result = re[symbol.search](str); console.log(result); // 4 using @@search in subclasses subclass of regexp can over
ride [@@search]() method to modify the behavior.
RegExp.prototype[@@split]() - JavaScript
let re = /-/g; let str = '2016-01-02'; let result = re[symbol.split](str); console.log(result); // ["2016", "01", "02"] using @@split in subclasses subclasses of regexp can over
ride the [@@split]() method to modify the default behavior.
Symbol.species - JavaScript
description the species accessor property allows subclasses to over
ride the default constructor for objects.
undefined - JavaScript
(even when this is not the case, avoid over
riding it.) a variable that has not been assigned a value is of type undefined.
Destructuring assignment - JavaScript
const {a: aa = 10, b: bb = 5} = {a: 3}; console.log(aa); // 3 console.log(bb); // 5 unpacking fields from objects passed as function parameter const user = { id: 42, displayname: 'jdoe', fullname: { firstname: 'john', lastname: 'doe' } }; function use
rid({id}) { return id; } function whois({displayname, fullname: {firstname: name}}) { return `${displayname} is ${name}`; } console.log(use
rid(user)); // 42 console.log(whois(user)); // "jdoe is john" this unpacks the id, displayname and firstname from the user object and prints them.
new operator - JavaScript
(normally constructors don't return a value, but they can choose to do so if they want to over
ride the normal object creation process.) you can always add a property to a previously defined object.
this - JavaScript
sometimes it is useful to over
ride this behavior so that this within classes always refers to the class instance.
Strict mode - JavaScript
strict mode makes great st
rides toward treating eval and arguments as keywords, although full fixes will not come until a future edition of ecmascript.
Authoring MathML - MathML
note that ua string sniffing is not the most reliable method and might break from version to version: var ua = navigator.useragent; var isgecko = ua.indexof("gecko") > -1 && ua.indexof("khtml") === -1 && ua.indexof('t
rident') === -1; var iswebkit = ua.indexof('applewebkit') > -1 && ua.indexof('chrome') === -1; mathematical fonts in order to get a good layout or to allow different style, it's important to have mathematical fonts available.
Lazy loading - Web Performance
it is possible to over
ride the default behaviour and preload web font resources using <link rel="preload">, the css font-display property, and the font loading api.
Progressive web app structure - Progressive web apps (PWAs)
there are so many varied devices with browsers — it's important to prepare your website so it works on different screen sizes, viewports or pixel densities, using technologies like viewport meta tag, css media queries, flexbox, and css g
rid.
<feConvolveMatrix> - SVG: Scalable Vector Graphics
assuming the simplest case (where the input image's pixel g
rid aligns perfectly with the kernel's pixel g
rid) and assuming default values for attributes ‘divisor’, ‘targetx’ and ‘targety’, then resulting color value will be: (9* 0 + 8* 20 + 7* 40 + 6*100 + 5*120 + 4*140 + 3*200 + 2*220 + 1*240) / (9+8+7+6+5+4+3+2+1) usage context categoriesfilter primitive elementpermitted contentany number of the following elements, in any order:<animate>,...
<symbol> - SVG: Scalable Vector Graphics
html,body,svg { height:100% } <svg viewbox="0 0 80 20" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- our symbol in its own coordinate system --> <symbol id="mydot" width="10" height="10" viewbox="0 0 2 2"> <circle cx="1" cy="1" r="1" /> </symbol> <!-- a g
rid to materialize our symbol positioning --> <path d="m0,10 h80 m10,0 v20 m25,0 v20 m40,0 v20 m55,0 v20 m70,0 v20" fill="none" stroke="pink" /> <!-- all instances of our symbol --> <use xlink:href="#mydot" x="5" y="5" style="opacity:1.0" /> <use xlink:href="#mydot" x="20" y="5" style="opacity:0.8" /> <use xlink:href="#mydot" x="35" y="5" style="opacity:0.6" /> <use xlink:href="#mydot"...
Filter effects - SVG: Scalable Vector Graphics
step 4 <fecomposite in="specout" in2="sourcealpha" operator="in" result="specout"/> the first <fecomposite> takes in "specout" and "sourcealpha", masks out the result of "specout" so that the result is not bigger than "sourcealpha" (the original source graphic), and over
rides the result "specout".
Tutorials
fluid g
rids design layouts that fluidly resize with the browser window, while still using a typographic g
rid.