Path: blob/main/files/en-us/mdn/kitchensink/index.md
6581 views
------{{MDNSidebar}}
Warning: Don't delete this page. It's used by mdn/yari for its automation.
About this page
The kitchensink is a page that attempts to incorporate every possible content element and Yari macro.
This page attempts to be the complete intersection of every other page. Not in terms of the text but in terms of the styles and macros. Let's start with some notes…
Text that uses the <kbd> tag: Shift
Note: Here's a block indicator note.
Warning: Here's a block indicator warning.
Prev/Next buttons
{{PreviousMenuNext("Games/Techniques/Control_mechanisms/Desktop_with_mouse_and_keyboard", "Games/Techniques/Control_mechanisms/Other", "Games/Techniques/Control_mechanisms")}}
Another one…
{{PreviousNext("Games/Workflows/2D_Breakout_game_Phaser/Extra_lives", "Games/Workflows/2D_Breakout_game_Phaser/Buttons")}}
Code snippets
Plain text
HTML
JavaScript
CSS
WebAssembly
Rust
Python
Formal syntax
The formal syntax must be taken from the spec and added to the MDN data repository. It is an important tool to get precise syntax information for advanced users.
{{CSSSyntax("font-stretch")}}
Interactive Examples
{{EmbedInteractiveExample("pages/tabbed/abbr.html", "tabbed-shorter")}} {{EmbedInteractiveExample("pages/css/order.html")}} {{EmbedInteractiveExample("pages/js/regexp-assertions.html", "taller")}}
Tables
Markdown table
| Constant name | Value | Description |
|---|---|---|
QUERY_COUNTER_BITS_EXT | 0x8864 | The number of bits used to hold the query result for the given target. |
CURRENT_QUERY_EXT | 0x8865 | The currently active query. |
QUERY_RESULT_EXT | 0x8866 | The query result. |
QUERY_RESULT_AVAILABLE_EXT | 0x8867 | A Boolean indicating whether a query result is available. |
TIME_ELAPSED_EXT | 0x88BF | Elapsed time (in nanoseconds). |
TIMESTAMP_EXT | 0x8E28 | The current time. |
GPU_DISJOINT_EXT | 0x8FBB | A Boolean indicating whether the GPU performed any disjoint operation. |
HTML table
| Content categories | Flow content, phrasing content, palpable content. |
|---|---|
| Permitted content | Phrasing content. |
| Tag omission | {{no_tag_omission}} |
| Permitted parents | Any element that accepts phrasing content. |
| Implicit ARIA role | No corresponding role |
| Permitted ARIA roles | Any |
| DOM interface | {{domxref("HTMLElement")}} |
| Value | Possible subvalues | Description |
|---|---|---|
width |
A positive integer number, or the text device-width |
Defines the pixel width of the viewport that you want the website to be rendered at. |
user-scalable {{ReadOnlyInline}} |
yes or no |
If set to no, the user is not able to zoom in the webpage.
The default is yes. Browser settings can ignore this rule,
and iOS10+ ignores it by default.
|
viewport-fit |
auto, contain or cover |
The
The
The |
Every macro under the sun
Well, almost every macro. Hopefully only the ones that are in active use.
An {{Glossary("HTTP")}} error code meaning "Bad Gateway".
A {{Glossary("Server", "server")}} can act as a gateway or proxy (go-between) between a client (like your Web browser) and another, upstream server. When you request to access a {{Glossary("URL")}}, the gateway server can relay your request to the upstream server. "502" means that the upstream server has returned an invalid response.
JavaScript {{jsxref("Array")}} on MDN
Listening for mouse movement is even easier than listening for key presses: all we need is the listener for the {{domxref("Element/mousemove_event", "mousemove")}} event.
Browser compatibility
{{Compat}}
Axis-Aligned Bounding Box
One of the simpler forms of collision detection is between two rectangles that are axis aligned — meaning no rotation. The algorithm works by ensuring there is no gap between any of the 4 sides of the rectangles. Any gap means a collision does not exist.
Rect code
{{EmbedLiveSample('Rect_code', '700', '300') }}
{{APIRef("Bluetooth API")}}{{SeeCompatTable}}
{{WebExtAPIRef("tabs.mutedInfo")}}
Obsolete CSSOM interfaces {{deprecated_inline}}
{{InheritanceDiagram}}
{{EmbedGHLiveSample("web-tech-games/index.html", '100%', 820)}}
Web accessibility on Wikipedia
The AvailableInWorkers macro inserts a localized note box indicating that a feature is available in a Web worker context.
{{AvailableInWorkers}}
Create a {{htmlelement("canvas")}} element and set its
widthandheightattributes to the original, smaller resolution.Set its CSS {{cssxref("width")}} and {{cssxref("height")}} properties to be 2x or 4x the value of the HTML
widthandheight. If the canvas was created with a 128 pixel width, for example, we would set the CSSwidthto512pxif we wanted a 4x scale.Set the {{htmlelement("canvas")}} element's
image-renderingCSS property to some value that does not make the image blurry. Eithercrisp-edgesorpixelatedwill work. Check out the {{cssxref("image-rendering")}} article for more information on the differences between these values, and which prefixes to use depending on the browser.
{{Glossary("XMLHttpRequest", "XHR")}}
AJAX on Wikipedia
{{DOMxRef("XMLHttpRequest")}}
{{DOMxRef("Fetch API")}}
{{SVGElement("feGaussianBlur")}}
{{SVGAttr("keySplines")}} SVG attribute
{{htmlattrxref("dir")}}
{{htmlattrxref("lang")}}
{{cssxref(":dir")}}
{{cssxref("direction")}}
Types
{{WebExtAPIRef("alarms.Alarm")}}
: Information about a particular alarm.
