file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
css/reference/properties/border-style/index.md
CSS - Properties - border-style - Examples - All property values - HTML: Example: <pre class="b1">none</pre> <pre class="b2">hidden</pre> <pre class="b3">dotted</pre> <pre class="b4">dashed</pre> <pre class="b5">solid</pre> <pre class="b6">double</pre> <pre class="b7">groove</pre> <pre class="b8">ridge</pre> <pre cla...
[ -1.5885002613067627, 0.36054062843322754, -0.19372381269931793, -0.33554914593696594, 0.300356388092041, -0.9700450301170349, 0.44618919491767883, 1.4996635913848877, -0.6787683963775635, -0.4450996220111847, -0.2749098539352417, 0.01668623834848404, -0.5041705369949341, -0.252554237842559...
css/reference/properties/border-style/index.md
CSS - Properties - border-style - Examples - All property values - CSS: Example: pre { height: 80px; width: 120px; margin: 20px; padding: 20px; display: inline-block; background-color: palegreen; border-width: 5px; box-sizing: border-box; } /* border-style example classes */ .b1 { border-style: non...
[ -0.20584723353385925, 0.3155594766139984, -1.1216484308242798, -0.6537949442863464, 0.5090300440788269, -0.06352010369300842, -0.19715607166290283, 1.8814122676849365, -0.38396739959716797, -0.37850797176361084, -0.061879828572273254, 0.652190089225769, -0.10826832056045532, 0.123637437820...
css/reference/properties/text-wrap-mode/index.md
CSS - Properties - text-wrap-mode: The `text-wrap-mode` CSS property controls whether the text inside an element is wrapped. Example: text-wrap-mode: wrap; Example: text-wrap-mode: nowrap; Example: <section class="default-example" id="default-example"> <div class="whole-content-wrapper"> <p>Edit the text i...
[ -1.5767362117767334, -0.010450487025082111, 0.33811870217323303, -0.3257982134819031, 0.4227170944213867, -1.751120686531067, -0.21105022728443146, 1.1447227001190186, -0.3622906804084778, 0.45984458923339844, -0.0007958784699440002, -0.2902052402496338, -0.18781621754169464, 0.30635303258...
css/reference/properties/text-wrap-mode/index.md
CSS - Properties - text-wrap-mode - Syntax: Example: /* Keyword values */ text-wrap-mode: wrap; text-wrap-mode: nowrap; /* Global values */ text-wrap-mode: inherit; text-wrap-mode: initial; text-wrap-mode: revert; text-wrap-mode: revert-layer; text-wrap-mode: unset;
[ -1.2761797904968262, 0.755672812461853, -0.18777815997600555, 0.41247236728668213, 0.45047682523727417, -1.4565746784210205, -0.5299070477485657, 1.8662208318710327, -0.3946964740753174, 0.23332348465919495, -0.583781361579895, -0.1833873689174652, -0.3386384844779968, 0.17787809669971466,...
css/reference/properties/text-wrap-mode/index.md
CSS - Properties - text-wrap-mode - Values: The `text-wrap-mode` property is specified as one of the following keyword values: - `wrap`: Text is wrapped across lines at appropriate characters (for example spaces, in languages like English that use space separators) to minimize overflow. This is the default value. - `...
[ -1.3357993364334106, -0.32092785835266113, -0.2758426070213318, -0.019249189645051956, 0.10083813965320587, -1.4084136486053467, 0.43008050322532654, 1.6486214399337769, 0.15617021918296814, -0.3504607677459717, -0.7109004259109497, -0.15691663324832916, -0.5404551029205322, -0.61313629150...
css/reference/properties/text-wrap-mode/index.md
CSS - Properties - text-wrap-mode - Description: The `text-wrap-mode` property can be used to control text wrapping inside an element. The different values provide alternate ways of wrapping the content of a block element, specifying whether lines may wrap at unforced soft wrap opportunities (`wrap`), or not (`nowrap`...
[ -0.6948652267456055, 0.08975273370742798, 0.1263611912727356, 0.33149242401123047, 0.763374388217926, -0.6736547350883484, -0.19474497437477112, 2.115410804748535, 0.2211795151233673, 0.4939342737197876, -0.3231951594352722, -0.09573596715927124, -0.23077458143234253, -0.028511861339211464...
css/reference/properties/text-wrap-mode/index.md
CSS - Properties - text-wrap-mode - Examples - Basic usage: In this example, we compare the effect of the `text-wrap-mode` property's two values.
[ -0.9458951950073242, 0.37655603885650635, -0.6275420784950256, 0.1965610384941101, -0.9432616233825684, -0.5731807351112366, 0.7611449360847473, 2.5354228019714355, 1.07829749584198, -0.2305561602115631, -0.7837488055229187, -0.539292573928833, -0.7367237210273743, -1.0254783630371094, 0...
css/reference/properties/text-wrap-mode/index.md
CSS - Properties - text-wrap-mode - Examples - Basic usage - HTML: We include two `div` elements that are the same except for their class names. Example: <div class="wrap">CSS IS AWESOME</div> <div class="nowrap">CSS IS AWESOME</div>
[ -0.9559627175331116, -0.23902669548988342, -0.3384661078453064, 0.4693426489830017, -0.4437459409236908, -1.2121596336364746, 0.5218356847763062, 1.0754780769348145, 0.22547340393066406, 0.5302025079727173, -0.1802932322025299, -0.1779579222202301, -0.571398138999939, -0.507491409778595, ...
css/reference/properties/text-wrap-mode/index.md
CSS - Properties - text-wrap-mode - Examples - Basic usage - CSS: We apply the same styles to both containers, limiting their width. Example: div { font-family: "Arial", sans-serif; font-weight: bold; font-size: 4rem; box-sizing: border-box; border: 0.25rem solid black; padding: 0 4px; width: 14rem; ...
[ -1.769083023071289, 0.14395582675933838, -0.13480472564697266, -0.15447929501533508, -0.05827942118048668, -0.45384323596954346, 0.6619414687156677, 1.8076515197753906, 0.04035307466983795, 0.13986849784851074, -0.2165766805410385, -0.16158083081245422, -0.9371730089187622, -0.398679792881...
css/reference/properties/container-type/index.md
CSS - Properties - container-type: The container-type CSS property specifies the type of container context used in a container query.
[ -1.157024621963501, -0.48571959137916565, -1.530911922454834, 0.7033465504646301, -0.43186643719673157, -0.9742141366004944, -0.4727725684642792, 1.8765321969985962, 0.004670530557632446, 0.09588239341974258, 0.37158486247062683, 0.1971881091594696, -0.26801353693008423, -0.013736210763454...
css/reference/properties/container-type/index.md
CSS - Properties - container-type - Syntax: Example: /* Keyword values */ container-type: normal; container-type: size; container-type: inline-size; container-type: scroll-state; container-type: anchored; /* Two values */ container-type: size scroll-state; /* Global Values */ container-type: inherit; container-type...
[ -1.5166159868240356, -0.5996541976928711, -0.5035650730133057, 0.0847565084695816, -0.39857321977615356, -0.7786266803741455, -0.5767737627029419, 2.3420305252075195, -0.11620578169822693, -0.0010024840012192726, -0.08684079349040985, 0.4987797141075134, -0.18850846588611603, -0.2585622370...
css/reference/properties/container-type/index.md
CSS - Properties - container-type - Syntax - Values: The `container-type` property can take a single value from the list below, or two values. In the two-value case, one must be `scroll-state` and the other can be `inline-size` or `size`. - `anchored`: Establishes a query container for anchored container queries on t...
[ -0.8604658246040344, -0.14296415448188782, -0.7800930142402649, -0.14055748283863068, 0.4202563166618347, -0.7046908140182495, -0.6291624307632446, 1.8676468133926392, 0.12426109611988068, -0.16361907124519348, 0.12072078883647919, 0.4930359125137329, -0.29161325097084045, -0.5153879523277...
css/reference/properties/container-type/index.md
CSS - Properties - container-type - Description: Container queries allow you to selectively apply styles inside a container based on conditional queries performed on the container. The `@container` at-rule is used to specify the tests performed on a container, and the rules that will apply to the container's contents ...
[ -0.540916383266449, -0.019135963171720505, -1.4041564464569092, 0.22515416145324707, 0.47491323947906494, -0.5855231881141663, -0.9477103352546692, 2.20997953414917, -0.4943605959415436, 0.3327261507511139, 0.4638243019580841, 0.27212485671043396, -0.4439989924430847, 0.20978376269340515, ...
css/reference/properties/container-type/index.md
CSS - Properties - container-type - Description - Container size queries: Container size queries allow you to selectively apply CSS rules to a container's descendants based on a size condition such as a maximum or minimum dimension, aspect ratio, or orientation. Size containers additionally have size containment appl...
[ -0.9151286482810974, 0.10560725629329681, -1.7983512878417969, 0.29997169971466064, -0.5042518377304077, -0.9790586233139038, -0.0040069688111543655, 0.7542167901992798, -1.063650131225586, 0.01946055144071579, 0.09671595692634583, 0.1327797770500183, -1.379062533378601, 0.5008174777030945...
css/reference/properties/container-type/index.md
CSS - Properties - container-type - Description - Container scroll-state queries: Container scroll-state queries allow you to selectively apply CSS rules to a container's children based on a scroll-state condition such as: - Whether the container's contents are partially scrolled. - Whether the container is a snap ta...
[ -1.8116496801376343, -0.6771297454833984, -1.2716048955917358, 0.17602023482322693, -0.08952711522579193, -0.8776892423629761, -0.024352796375751495, 1.9017027616500854, -0.9432007670402527, 0.7449893951416016, 0.2204969823360443, -0.05292792618274689, -0.8695460557937622, 0.81071746349334...
css/reference/properties/container-type/index.md
CSS - Properties - container-type - Description - Anchored container queries: Anchored container queries allow you to selectively apply CSS rules to the descendants of an anchor-positioned container when it has a position-try fallback active on it, as specified via the `position-try-fallbacks` property. For example, ...
[ -1.0401567220687866, -0.60052090883255, -0.7007027864456177, 0.5355262160301208, 0.22893112897872925, -1.1200968027114868, 0.48874032497406006, 1.685694694519043, -0.6967684626579285, 0.9375491142272949, 0.2752054035663605, -0.31159448623657227, -0.4839254319667816, 1.271507978439331, -0...
css/reference/properties/container-type/index.md
CSS - Properties - container-type - Examples - Establishing inline size containment: Given the following HTML example which is a card component with an image, a title, and some text: Example: <div class="container"> <div class="card"> <h3>Normal card</h3> <div class="content"> Lorem ipsum dolor sit a...
[ -2.274074077606201, -0.09602177143096924, -0.9129936695098877, -0.19042150676250458, 0.012894488871097565, -1.1453977823257446, -0.1924111694097519, 1.400037169456482, -0.24122852087020874, 0.15008807182312012, 0.5672243237495422, 1.0924469232559204, -0.02981288731098175, -0.00447260588407...
css/reference/properties/border-image/index.md
CSS - Properties - border-image: The `border-image` CSS property draws an image around a given element. It replaces the element's regular border. Note: You should specify a separate `border-style` in case the border image fails to load. Although the specification doesn't strictly require it, some browsers don't rende...
[ -0.13488426804542542, 0.39724451303482056, -1.0713309049606323, -0.4834192395210266, 0.5411832332611084, -1.4301811456680298, -0.5899495482444763, 1.7870995998382568, -0.127454936504364, -0.5066599249839783, 0.42596814036369324, 0.531416654586792, -0.9504130482673645, 1.013000726699829, ...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Constituent properties: This property is a shorthand for the following CSS properties: - `border-image-outset` - `border-image-repeat` - `border-image-slice` - `border-image-source` - `border-image-width` This shorthand property is reset, with all the longhand properties set to thei...
[ -0.1076275184750557, 0.9162949919700623, -1.5326666831970215, -0.33507758378982544, 0.6165784001350403, -2.314229726791382, 0.06489681452512741, 2.596242666244507, 0.27077516913414, -0.5462723970413208, 0.5456921458244324, 0.9166440963745117, -0.8458132743835449, 0.04260469973087311, 0.2...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Syntax: Example: /* source | slice */ border-image: linear-gradient(red, blue) 27; /* source | slice | repeat */ border-image: url("/images/border.png") 27 space; /* source | slice | width */ border-image: linear-gradient(red, blue) 27 / 35px; /* source | slice | width | outset | ...
[ -0.9404726028442383, 0.45432135462760925, -0.5833525657653809, -0.5788235664367676, 0.3194297254085541, -0.37078654766082764, -0.1639116257429123, 2.2420520782470703, 0.6315757036209106, -0.5966971516609192, -0.7530038356781006, 1.063665747642517, -0.4515911936759949, 0.4285011887550354, ...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Syntax - Values: - `<'border-image-source'>`: The source image. See `border-image-source`. - `<'border-image-slice'>`: The dimensions for slicing the source image into regions. Up to four values may be specified. See `border-image-slice`. - `<'border-image-width'>`: The width of the b...
[ -0.5375145673751831, 0.0985584482550621, -1.5007091760635376, -0.7043132185935974, 0.5353550910949707, -0.6889910101890564, -0.013236483559012413, 1.8304699659347534, 0.5656670928001404, -0.55117267370224, -0.879929780960083, 0.9559695720672607, -0.9377937316894531, 0.6469398140907288, 0...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Accessibility: Assistive technology cannot parse border images. If the image contains information critical to understanding the page's overall purpose, it is better to describe it semantically in the document. - MDN Understanding WCAG, Guideline 1.1 explanations - Understanding Succe...
[ -0.4760259687900543, 0.14323440194129944, -1.0001014471054077, -1.1659120321273804, -0.08974195271730423, -1.3989149332046509, -0.09357446432113647, 0.8298101425170898, 0.2569798529148102, 0.4752216637134552, -0.6968010067939758, -0.772837221622467, -0.19652386009693146, 0.5684701800346375...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Examples - Bitmap: In this example, we will apply a diamond pattern to an element's borders. The source for the border image is a ".png" file of 81 by 81 pixels, with three diamonds going vertically and horizontally:
[ -0.6051378846168518, -0.19470597803592682, -1.5460318326950073, -0.9637424945831299, -0.5576437711715698, -0.6257863640785217, 0.6070260405540466, 1.7022656202316284, -0.0714448094367981, -0.17104829847812653, -0.4031473696231842, 0.32342493534088135, -0.759099543094635, 0.4894302487373352...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Examples - Bitmap - HTML: Example: <div id="bitmap"> This element is surrounded by a bitmap-based border image! </div>
[ -0.36236461997032166, 0.17204202711582184, -1.055240273475647, -0.959110677242279, -0.25191783905029297, -0.08109273761510849, 0.9682360291481018, 1.8259583711624146, 0.5202469229698181, -0.3471904993057251, -0.5630624294281006, 0.22436252236366272, -0.6842408180236816, 0.18743355572223663...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Examples - Bitmap - CSS: To match the size of a single diamond, we will use a value of 81 divided by 3, or `27`, for slicing the image into corner and edge regions. To center the border image on the edge of the element's background, we will make the outset values equal to half of the ...
[ -0.40146517753601074, 0.6147379875183105, -0.8716612458229065, -1.3740016222000122, -0.08471283316612244, -0.5436717867851257, 0.2466086447238922, 0.5583447813987732, -0.43729209899902344, 0.19831718504428864, -0.12579530477523804, 0.6260012984275818, -0.6514480710029602, 0.727771759033203...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Examples - Gradient - HTML: Example: <div id="gradient"> This element is surrounded by a gradient-based border image! </div>
[ -0.6497756242752075, 0.27321216464042664, -1.0344059467315674, -1.1125398874282837, -0.29215341806411743, -0.6105395555496216, 0.706718921661377, 1.8242684602737427, 0.2942058742046356, -0.640437126159668, -0.8484898209571838, 0.2756517231464386, -1.0259206295013428, 0.3019678294658661, ...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Examples - Gradient - CSS: Example: #gradient { width: 200px; border: 30px solid; border-image: repeating-linear-gradient(45deg, #ff3333, #33bbff, #ff3333 30px) 60; padding: 20px; }
[ -1.0676606893539429, 0.24022608995437622, -0.7855345010757446, -1.7361299991607666, 0.06421539187431335, -0.5901011228561401, 1.0001994371414185, 1.5570898056030273, -0.21614916622638702, -0.2951083779335022, -0.4825921356678009, 0.8129198551177979, -0.3389395773410797, 0.5379981398582458,...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Examples - Rounded borders: `border-radius` has no effect on the border image. This is because `border-image-outset` is able to place the image outside the border box, so it doesn't make sense for the border image to be clipped by the border area. To create rounded borders when using ...
[ -0.1912955343723297, 0.7614771127700806, -0.8152719140052795, -0.9147284626960754, -0.13220256567001343, -0.3533746302127838, 0.52616947889328, 2.248682737350464, 0.28701385855674744, -0.7238447666168213, -0.9863108396530151, 0.484117329120636, -1.4128086566925049, 0.30232444405555725, 0...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Examples - Rounded borders - HTML: Example: <div id="rounded"> This element is surrounded by a border image with rounded corners! </div>
[ -0.7385832667350769, 0.7191236615180969, -0.7615688443183899, -0.8977999091148376, -0.7230221629142761, 0.002549051307141781, 0.7666279077529907, 1.965537190437317, -0.20017623901367188, -0.32254427671432495, -0.9083007574081421, 0.08596733212471008, -1.3728868961334229, 0.3316505551338196...
css/reference/properties/border-image/index.md
CSS - Properties - border-image - Examples - Rounded borders - CSS: Example: #rounded { width: 200px; /* Use transparent so the background image is visible */ border: 10px solid transparent; padding: 20px; border-radius: 20px; background-image: linear-gradient(white, white), linear-gradient(to right, ...
[ -1.1310389041900635, 1.0719016790390015, -0.8391700387001038, -1.0405834913253784, 0.08176134526729584, -1.2615915536880493, 0.003361683338880539, 1.1146774291992188, -0.3612799346446991, 0.45482030510902405, 0.5166253447532654, 0.06274981796741486, -0.27337491512298584, 0.2734470665454864...
javascript/reference/global_objects/temporal/zoneddatetime/index.md
JavaScript - Global Objects - Temporal - ZonedDateTime: The `Temporal.ZonedDateTime` object represents a date and time with a time zone. It is fundamentally represented as a combination of an instant, a time zone, and a calendar system.
[ -0.5117519497871399, 0.32734668254852295, -1.0466352701187134, 0.07655330002307892, -0.389581561088562, -1.4855517148971558, -0.6597581505775452, 0.8898174166679382, -0.6195391416549683, 0.4841432571411133, -0.23040084540843964, -0.24802416563034058, -0.376821905374527, 0.5133266448974609,...
javascript/reference/global_objects/temporal/zoneddatetime/index.md
JavaScript - Global Objects - Temporal - ZonedDateTime - Description: A `ZonedDateTime` functions as a bridge between an exact time and a wall-clock time: it simultaneously represents an instant in history (like a `Temporal.Instant`) and a local, wall-clock time (like a `Temporal.PlainDateTime`). It does so by storing...
[ -0.10178166627883911, 0.20326846837997437, -1.0381888151168823, 0.19280456006526947, 0.14324432611465454, -1.5885428190231323, -0.5636481642723083, 1.0241857767105103, -0.6259561777114868, 0.40849119424819946, -0.07423976063728333, -0.030135829001665115, -1.1669249534606934, 0.101043641567...
javascript/reference/global_objects/temporal/zoneddatetime/index.md
JavaScript - Global Objects - Temporal - ZonedDateTime - Description - Time zones and offsets: All times in JavaScript have one golden standard: the UTC time, which increments continuously and uniformly as physical time progresses. By contrast, users are more interested in their local time, which is the time they read...
[ 0.4236196279525757, 0.05248580127954483, -0.7327733635902405, 0.46788954734802246, 0.521719217300415, -0.7488089203834534, 0.7072226405143738, 1.2768727540969849, -0.5376871824264526, -0.08358339965343475, -0.10718046128749847, 0.5573495626449585, -0.6123461127281189, 0.4612489342689514, ...
javascript/reference/global_objects/temporal/zoneddatetime/index.md
JavaScript - Global Objects - Temporal - ZonedDateTime - Description - RFC 9557 format: `ZonedDateTime` objects can be serialized and parsed using the RFC 9557 format, an extension to the ISO 8601 / RFC 3339 format. The string has the following form (spaces are only for readability and should not be present in the act...
[ -0.9808705449104309, -0.037263497710227966, -0.2993414103984833, 0.6862073540687561, 0.3464359641075134, -0.5434592366218567, -0.26841187477111816, 1.1690000295639038, -0.03423403948545456, -0.06264077126979828, -0.6904224753379822, -0.04229075089097023, -1.0396592617034912, 0.628765881061...
javascript/reference/global_objects/temporal/zoneddatetime/index.md
JavaScript - Global Objects - Temporal - ZonedDateTime - Description - Ambiguity and gaps from local time to UTC time: Given a time zone, conversion from UTC to local time is straightforward: you first get the offset using the time zone name and the instant, then add the offset to the instant. The reverse is not true:...
[ -0.7395311594009399, -0.07188460230827332, -1.1252785921096802, 0.7100977301597595, -0.1268090158700943, -1.5002692937850952, -0.886897087097168, 0.4089198112487793, -0.2737942337989807, -0.2761170268058777, -0.07673607766628265, -0.06847973167896271, -0.7529508471488953, 0.916354894638061...
javascript/reference/global_objects/temporal/zoneddatetime/index.md
JavaScript - Global Objects - Temporal - ZonedDateTime - Description - Offset ambiguity: We already demonstrated how ambiguity may arise from interpreting a local time in a time zone, without providing an explicit offset. However, if you provide an explicit offset, then another conflict arises: between the offset as s...
[ -0.0541750006377697, -0.01691388711333275, -0.8573192954063416, 0.6120093464851379, 0.06467545032501221, -0.7072822451591492, 0.0048378221690654755, 1.172839879989624, -0.45645782351493835, -0.4814824163913727, -0.936174213886261, 0.0206281915307045, -0.6621177196502686, 0.2395522296428680...
javascript/reference/global_objects/temporal/zoneddatetime/index.md
JavaScript - Global Objects - Temporal - ZonedDateTime - Constructor: - `Temporal.ZonedDateTime()` (experimental): Creates a new `Temporal.ZonedDateTime` object by directly supplying the underlying data.
[ -1.6602333784103394, 0.06326837092638016, -0.6882688999176025, 0.05840763449668884, -0.22186844050884247, -1.2132351398468018, -0.3741241991519928, 0.3671813905239105, -1.058967113494873, 0.44114893674850464, -0.858155369758606, -0.1986670047044754, -0.94347083568573, 0.5342330932617188, ...
javascript/reference/global_objects/temporal/zoneddatetime/index.md
JavaScript - Global Objects - Temporal - ZonedDateTime - Static methods: - `Temporal.ZonedDateTime.compare()`: Returns a number (-1, 0, or 1) indicating whether the first date-time comes before, is the same as, or comes after the second date-time. Equivalent to comparing the `epochNanoseconds` of the two date-times. -...
[ -1.3958122730255127, -0.026199039071798325, -0.6286931037902832, 0.01991412416100502, 0.22435733675956726, -1.5185800790786743, 0.49506115913391113, 0.9945050477981567, -0.970818281173706, 0.6620698571205139, -0.8640458583831787, -0.23614561557769775, -0.7984472513198853, 0.184723809361457...
javascript/reference/global_objects/temporal/zoneddatetime/index.md
JavaScript - Global Objects - Temporal - ZonedDateTime - Instance properties: These properties are defined on `Temporal.ZonedDateTime.prototype` and shared by all `Temporal.ZonedDateTime` instances. - `Temporal.ZonedDateTime.prototype.calendarId`: Returns a string representing the calendar used to interpret the inter...
[ 0.3199222981929779, 0.6024624705314636, -0.3663644790649414, 0.47006046772003174, 0.8677401542663574, -1.2517391443252563, 0.17516425251960754, 1.3954404592514038, -0.8923396468162537, 0.2766227126121521, -0.4909973442554474, 0.8863281011581421, -0.04425361007452011, 0.3432268798351288, ...
javascript/reference/global_objects/temporal/zoneddatetime/index.md
JavaScript - Global Objects - Temporal - ZonedDateTime - Instance methods: - `Temporal.ZonedDateTime.prototype.add()`: Returns a new `Temporal.ZonedDateTime` object representing this date-time moved forward by a given duration (in a form convertible by `Temporal.Duration.from()`). - `Temporal.ZonedDateTime.prototype.e...
[ 0.2936416566371918, 0.07035038620233536, -0.7464784383773804, 0.8200400471687317, 0.3827454447746277, -0.9862474799156189, 0.22527027130126953, 1.4677315950393677, -0.9767763018608093, 0.21108202636241913, -0.5791109204292297, 0.7992743253707886, -0.24033424258232117, 0.8773828148841858, ...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values: The `values()` method of `Array` instances returns a new array iterator object that iterates the value of each item in the array. Example: const array = ["a", "b", "c"]; const iterator = array.values(); for (const value of iterator) { console.log(value); } // Expecte...
[ 0.2097608894109726, -0.6162643432617188, -1.169657826423645, 0.8685570359230042, 0.22026684880256653, -1.348123550415039, -0.24710899591445923, 0.9600812792778015, -0.4164949655532837, 0.09217875450849533, 0.21109554171562195, 0.5893564820289612, 0.4940907955169678, 0.3803350031375885, 0...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values - Syntax: Example: values()
[ 0.24944749474525452, -0.544785737991333, -1.1670812368392944, 0.10484513640403748, -0.8958041667938232, -1.7504969835281372, 1.1554676294326782, 1.268495798110962, -0.10590538382530212, -0.993162989616394, 0.18044722080230713, 0.8496719598770142, 0.0371667817234993, -0.1233019307255745, ...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values - Syntax - Parameters: None.
[ 0.1550251543521881, -0.09711508452892303, -1.4243950843811035, -0.4200368821620941, -0.7235694527626038, -1.4304275512695312, 1.2486162185668945, 1.3221460580825806, -0.21561364829540253, -0.8141880631446838, -0.4976237416267395, -0.1943553388118744, 0.06606270372867584, 0.0131171569228172...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values - Syntax - Return value: A new iterable iterator object.
[ -0.11647678166627884, -0.07109373807907104, -0.8986315131187439, -0.06556142121553421, -0.39680248498916626, -1.8451255559921265, 0.09881141781806946, 1.6837149858474731, -0.25558608770370483, -0.09205321967601776, -0.4210996925830841, 0.516771137714386, -0.14245130121707916, 0.88432776927...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values - Description: `Array.prototype.values()` is the default implementation of `Array.prototype[Symbol.iterator]()`. Example: Array.prototype.values === Array.prototype[Symbol.iterator]; // true When used on sparse arrays, the `values()` method iterates empty slots as if the...
[ -0.8414425849914551, -0.48290085792541504, -0.813600480556488, 0.7411051988601685, -0.019949428737163544, -1.390412449836731, 1.0740115642547607, 0.838530421257019, -0.20419034361839294, 0.21591460704803467, -0.26255276799201965, 0.9744203090667725, 0.7101140022277832, -0.03223754465579986...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values - Examples - Iteration using for...of loop: Because `values()` returns an iterable iterator, you can use a `for...of` loop to iterate it. Example: const arr = ["a", "b", "c", "d", "e"]; const iterator = arr.values(); for (const letter of iterator) { console.log(letter)...
[ -0.1834486573934555, 0.24679464101791382, 0.034528106451034546, 1.203648328781128, -0.03767900541424751, -1.3579535484313965, 0.10701009631156921, 0.6515384316444397, -0.5814135670661926, 0.06978905946016312, 0.6121945381164551, 0.34718674421310425, -0.1420307159423828, 0.17306579649448395...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values - Examples - Iteration using next(): Because the return value is also an iterator, you can directly call its `next()` method. Example: const arr = ["a", "b", "c", "d", "e"]; const iterator = arr.values(); iterator.next(); // { value: "a", done: false } iterator.next(); //...
[ -0.4551600515842438, 0.4006834626197815, -0.6313371062278748, 0.27513813972473145, -0.23688988387584686, -1.0462414026260376, -0.07092815637588501, 0.7846627831459045, -0.6199231147766113, 0.34099313616752625, -0.3213488757610321, 0.20610105991363525, 0.14288707077503204, -0.06841284036636...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values - Examples - Reusing the iterable: Warning: The array iterator object should be a one-time use object. Do not reuse it. The iterable returned from `values()` is not reusable. When `next().done = true` or `currentIndex > length`, the `for...of` loop ends, and further iterat...
[ 0.02898445725440979, 0.35677826404571533, 0.12611927092075348, 0.1451919674873352, 0.17368686199188232, -1.3519948720932007, 0.2170516699552536, 0.6375669240951538, -0.5903287529945374, 0.10907287150621414, 0.3724009692668915, 0.13279803097248077, 0.18481586873531342, 0.3786775469779968, ...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values - Examples - Mutations during iteration: There are no values stored in the array iterator object returned from `values()`; instead, it stores the address of the array used in its creation, and reads the currently visited index on each iteration. Therefore, its iteration out...
[ -0.06543020159006119, -0.46836334466934204, -0.9475210905075073, 0.9123543500900269, -0.08827167004346848, -1.275386095046997, -0.8429775238037109, 0.7445772886276245, -0.5179052352905273, 0.21967323124408722, 0.4310268461704254, -0.4210309684276581, -0.855621874332428, 0.6471112370491028,...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values - Examples - Iterating sparse arrays: `values()` will visit empty slots as if they are `undefined`. Example: for (const element of [, "a"].values()) { console.log(element); } // undefined // 'a'
[ -0.4814567565917969, 0.25614964962005615, -0.4768712520599365, 0.5992482304573059, -0.06919938325881958, -1.1412739753723145, 1.629285454750061, -0.1272156834602356, -0.6226640343666077, 1.0760321617126465, 1.0521953105926514, 0.19059020280838013, 0.23342788219451904, 0.026746563613414764,...
javascript/reference/global_objects/array/values/index.md
JavaScript - Global Objects - Array - values - Examples - Calling values() on non-array objects: The `values()` method reads the `length` property of `this` and then accesses each property whose key is a nonnegative integer less than `length`. Example: const arrayLike = { length: 3, 0: "a", 1: "b", 2: "c", ...
[ -0.810068666934967, 0.07964082807302475, -0.7313746809959412, 0.6452664136886597, 0.1378657966852188, -1.194015383720398, 0.940396785736084, 0.2328464388847351, -1.042957067489624, -0.0937993973493576, -0.4216129183769226, 0.13148289918899536, 0.5180646181106567, -0.35848137736320496, 0....
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause: The `Atomics.pause()` static method provides a micro-wait primitive that hints to the CPU that the caller is spinning while waiting on access to a shared resource. This allows the system to reduce the resources allocated to the core (such as power) or thread, without yiel...
[ -0.44787898659706116, -0.11880210787057877, -0.5969716310501099, 0.11159653961658478, -0.70896315574646, -2.178187131881714, 0.5090727806091309, 0.6477063298225403, 0.7917492389678955, 0.5420137643814087, -0.8529242873191833, -0.8847901225090027, 0.6246917843818665, -0.24831578135490417, ...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Syntax: Example: Atomics.pause()
[ 0.5964357256889343, 0.39903053641319275, -0.349203884601593, -0.5776278972625732, -0.9654754400253296, -2.2975566387176514, 0.6725485920906067, 1.1790001392364502, 0.29906320571899414, -0.08362909406423569, -0.2625029683113098, -0.6128837466239929, 0.1372412145137787, -0.28926968574523926,...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Syntax - Parameters: None.
[ 0.4616438150405884, 0.4516485035419464, -0.8098669052124023, -0.7760778069496155, -0.6288428902626038, -1.8925716876983643, 0.7826463580131531, 1.2524890899658203, 0.060559049248695374, -0.3098592162132263, -0.725166380405426, -0.7580416202545166, -0.12026189267635345, 0.23170989751815796,...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Syntax - Return value: None (`undefined`).
[ -0.1222173199057579, 0.5452485084533691, -0.5977389216423035, -0.9305139780044556, -0.7867776155471802, -1.7246122360229492, 1.0208494663238525, 1.076530933380127, -0.39930665493011475, 0.16499397158622742, -0.34754320979118347, -0.33295369148254395, 0.16600604355335236, 0.0934804081916809...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Examples: Note that these examples cannot be run directly from the console or an arbitrary web page, because `SharedArrayBuffer` is not defined unless its security requirements are met.
[ 0.6840899586677551, 0.38887661695480347, -1.384674072265625, -0.08376820385456085, -0.838316798210144, -0.40438467264175415, 0.792647123336792, 0.46129921078681946, 0.23284068703651428, -0.24085897207260132, 0.19513216614723206, 0.21347615122795105, -0.42746180295944214, -0.500947117805481...
javascript/reference/global_objects/atomics/pause/index.md
JavaScript - Global Objects - Atomics - pause - Examples - Using Atomics.pause(): Calling `Atomics.wait()` or `Atomics.waitAsync()` in order to wait for access to shared memory causes the thread to be scheduled out of the core and then back in again after the wait. This is efficient during times of high contention, wh...
[ 1.2546077966690063, 0.39372891187667847, -0.9518344402313232, 0.3810121417045593, -0.3041492998600006, -1.6249457597732544, 0.15018817782402039, 0.28781425952911377, 0.23653092980384827, 0.8880251049995422, -0.5441340804100037, -0.15291905403137207, -0.19201292097568512, 0.5016967058181763...
javascript/reference/global_objects/iterator/includes/index.md
JavaScript - Global Objects - Iterator - includes: The `includes()` method of `Iterator` instances is similar to `Array.prototype.includes()`: it returns `true` if it finds an element that is equal to the given value. Otherwise, if the iterator is exhausted without finding such an element, it returns `false`.
[ -0.7347283363342285, -0.6119013428688049, -0.39131391048431396, 0.888964831829071, -0.1926271915435791, -1.6205495595932007, 1.0522888898849487, 0.17672309279441833, -1.11825430393219, 0.5516722202301025, -0.40467187762260437, -0.29985642433166504, 0.4705212116241455, 0.44183942675590515, ...
javascript/reference/global_objects/iterator/includes/index.md
JavaScript - Global Objects - Iterator - includes - Syntax: Example: includes(searchElement) includes(searchElement, fromIndex)
[ -1.2651301622390747, 0.1300015151500702, -0.7818781733512878, 0.4632710814476013, -0.20156018435955048, -1.3807523250579834, 0.03547128289937973, 0.07798358052968979, -0.8092239499092102, -0.44085362553596497, -0.31982624530792236, 0.3719736337661743, -0.43508052825927734, -0.0367219746112...
javascript/reference/global_objects/iterator/includes/index.md
JavaScript - Global Objects - Iterator - includes - Syntax - Parameters: - `searchElement`: The value to search for. - `fromIndex` (optional): Zero-based index at which to start searching. Must be a non-negative integer, `Infinity`, or `undefined`. If `fromIndex` is greater than or equal to the number of elements prod...
[ -1.1778538227081299, -0.20056889951229095, -0.3769872784614563, 0.21082982420921326, 0.15555588901042938, -1.3357696533203125, 0.42746245861053467, -0.054846785962581635, -0.7940484881401062, -0.047315116971731186, -0.6706151366233826, 0.20093268156051636, -0.7054046988487244, 0.3017691969...
javascript/reference/global_objects/iterator/includes/index.md
JavaScript - Global Objects - Iterator - includes - Syntax - Return value: A boolean value which is `true` if the value `searchElement` is found within the iterator (or the part of the iterator starting at `fromIndex`, if specified).
[ -1.2322075366973877, 0.14480005204677582, -0.5401763916015625, 0.49665647745132446, -0.32785093784332275, -1.3768614530563354, 0.18348050117492676, 0.3940124213695526, -0.8886440396308899, -0.27010542154312134, -0.3228553235530853, 0.44377273321151733, 0.06200069189071655, 0.39112323522567...
javascript/reference/global_objects/iterator/includes/index.md
JavaScript - Global Objects - Iterator - includes - Syntax - Exceptions: - `TypeError`: Thrown if `fromIndex` is not one of: an integer, `Infinity`, `-Infinity`, or `undefined`. - `RangeError`: Thrown if `fromIndex` is negative.
[ -1.535875916481018, -0.20245052874088287, -0.6254244446754456, 0.8043431043624878, -0.13853931427001953, -1.5614597797393799, -0.3414866626262665, 0.6702979803085327, -0.7341107726097107, -0.17879247665405273, -0.6372607946395874, -0.27151405811309814, -0.6211686134338379, -0.4349655508995...
javascript/reference/global_objects/iterator/includes/index.md
JavaScript - Global Objects - Iterator - includes - Description: The `includes()` method compares `searchElement` to elements of the array using the SameValueZero algorithm. This algorithm works like strict equality `===` (where `-0` and `+0` are considered equal), with the exception that `NaN` is considered equal to ...
[ -0.7283545136451721, 0.03397132083773613, -0.40622541308403015, 1.0768167972564697, 0.5241729021072388, -1.0111573934555054, 1.2940162420272827, 0.10472269356250763, -1.2236090898513794, 0.8318865299224854, -0.7833717465400696, -0.1368725299835205, -0.03263062238693237, 0.07391674816608429...
javascript/reference/global_objects/iterator/includes/index.md
JavaScript - Global Objects - Iterator - includes - Examples - Using includes(): Example: function* fibonacci() { let current = 1; let next = 1; while (true) { yield current; [current, next] = [next, current + next]; } } console.log(fibonacci().includes(8)); // true console.log(fibonacci().take(10).i...
[ -1.5182857513427734, 0.2870789170265198, -0.941888689994812, 0.5666211843490601, -0.07428048551082611, -1.5321004390716553, 0.4022549092769623, 0.5867244005203247, -0.5549380779266357, 0.2025805413722992, 0.23490464687347412, 0.8800181150436401, 0.43361520767211914, 0.33018553256988525, ...
javascript/reference/global_objects/iterator/includes/index.md
JavaScript - Global Objects - Iterator - includes - Examples - Using fromIndex: `fromIndex` specifies the number of elements to be skipped from the beginning. It is equivalent to calling `drop(fromIndex).includes(searchElement)`. Example: function* fibonacci() { let current = 1; let next = 1; while (true) { ...
[ -1.3700485229492188, -0.8646469116210938, -1.232740044593811, 0.5172876119613647, -0.006945692002773285, -1.9320971965789795, 0.8967095017433167, 0.3325447738170624, -0.9697132110595703, -0.003771420568227768, -0.9989722967147827, 0.2514733374118805, -0.2294158637523651, 0.4775370359420776...
javascript/reference/statements/export/index.md
JavaScript - Statements - export: The `export` declaration is used to export values from a JavaScript module. Exported values can then be imported into other programs with the `import` declaration or dynamic import. The value of an imported binding is subject to change in the module that exports it — when a module upd...
[ -0.18454615771770477, -0.8399609327316284, -1.0926167964935303, 1.3498802185058594, -0.13988541066646576, -1.1238104104995728, 0.8568084239959717, 0.6987131237983704, 0.026978977024555206, 0.09521084278821945, -0.5810656547546387, 0.5979635119438171, -0.6891262531280518, 0.8502682447433472...
javascript/reference/statements/export/index.md
JavaScript - Statements - export - Syntax: Example: // Exporting declarations export let name1, name2/*, … */; // also var export const name1 = 1, name2 = 2/*, … */; // also var, let export function functionName() { /* … */ } export class ClassName { /* … */ } export function* generatorFunctionName() { /* … */ } expo...
[ 0.6223893165588379, -0.4661403298377991, -1.3768730163574219, 1.034238338470459, -0.5488507747650146, -1.2629289627075195, -0.2251276969909668, 1.409497857093811, -0.1522618532180786, 0.3126591145992279, -0.6048668026924133, 0.6938477158546448, -1.0177826881408691, 0.3990927040576935, -0...
javascript/reference/statements/export/index.md
JavaScript - Statements - export - Description: Every module can have two different types of export, named export and default export. You can have multiple named exports per module but only one default export. Each type corresponds to one of the above syntax. Named exports: Example: // export features declared else...
[ 0.4963546097278595, -0.1696433424949646, -0.4527670741081238, 0.8474912047386169, 0.24502906203269958, -0.6545015573501587, 0.4925152659416199, 0.7629903554916382, -0.20344850420951843, -0.04018624871969223, -0.5380018949508667, 0.5847753286361694, -0.37148237228393555, 0.2229747772216797,...
javascript/reference/statements/export/index.md
JavaScript - Statements - export - Description - Re-exporting / Aggregating: A module can also "relay" values exported from other modules without the hassle of writing two separate import/export statements. This is often useful when creating a single module concentrating various exports from various modules (usually c...
[ 1.3551737070083618, 0.2564832270145416, -1.2531075477600098, 0.6443087458610535, 0.5891782641410828, -0.5380499958992004, 0.19002315402030945, 0.783902108669281, -0.5017058849334717, 0.4172181785106659, -0.6955854296684265, 0.8411116600036621, -0.5462357997894287, 1.0369553565979004, -0....
javascript/reference/statements/export/index.md
JavaScript - Statements - export - Examples - Using named exports: In a module `my-module.js`, we could include the following code: Example: // module "my-module.js" function cube(x) { return x * x * x; } const foo = Math.PI + Math.SQRT2; const graph = { options: { color: "white", thickness: "2px", }...
[ -0.14840508997440338, 0.14946839213371277, -1.1781946420669556, 1.193820595741272, -0.6730446219444275, -0.6832608580589294, -0.5877192616462708, -0.03211435675621033, -1.2926981449127197, 1.1855626106262207, -0.37895479798316956, 1.188226580619812, -0.3409241735935211, 0.00237227976322174...
javascript/reference/statements/export/index.md
JavaScript - Statements - export - Examples - Using the default export: If we want to export a single value representing an entire module, we could use a default export: Example: // module "cube.js" export default function cube(x) { return x * x * x; } Then, in another script, it is straightforward to import the...
[ -0.4429177939891815, 0.5851399898529053, -2.002584218978882, 1.5544902086257935, -0.5388549566268921, -1.1580557823181152, -0.043826133012771606, 0.6921206116676331, -0.558411180973053, 0.46871715784072876, -0.10078047960996628, 0.7640999555587769, -0.2733787000179291, 0.349929541349411, ...
javascript/reference/statements/export/index.md
JavaScript - Statements - export - Examples - Using export from: Let's take an example where we have the following hierarchy: - `childModule1.js`: exporting `myFunction` and `myVariable` - `childModule2.js`: exporting `MyClass` - `parentModule.js`: acting as an aggregator (and doing nothing else) - top level module: ...
[ 0.04994577914476395, 0.32665830850601196, -0.3117085099220276, 0.9953155517578125, -0.040163930505514145, -0.3027174174785614, 0.5245757102966309, 1.1231772899627686, -0.42760515213012695, 0.6232128143310547, -0.5428718328475952, 0.34270283579826355, -0.46708551049232483, 0.677762389183044...
api/extendablecookiechangeevent/changed/index.md
API - ExtendableCookieChangeEvent - changed: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `changed` read-only property of the `ExtendableCookieChangeEvent` interface returns any cookies that have been changed by the given `ExtendableCoo...
[ 0.14595001935958862, -0.18970981240272522, -0.08512626588344574, 0.2320433259010315, -0.049805063754320145, -1.0473761558532715, 0.3038598299026489, 1.590584397315979, 0.10898667573928833, -0.1308489590883255, 0.5029157996177673, 0.4801667332649231, -0.2839258909225464, -0.1879349052906036...
api/extendablecookiechangeevent/changed/index.md
API - ExtendableCookieChangeEvent - changed - Value: An array of objects containing the changed cookie(s). Each object contains the following properties: - `name`: A string containing the name of the cookie. - `value`: A string containing the value of the cookie. - `domain`: A string containing the domain of the cook...
[ 0.4596998989582062, -0.28378936648368835, -0.0331491082906723, 0.11653220653533936, 0.26710882782936096, -0.5536890625953674, 0.4723302721977234, 1.1644015312194824, -0.7839186191558838, -0.03645225241780281, 0.659512460231781, 0.6125562191009521, -0.4066142439842224, -0.029161404818296432...
api/extendablecookiechangeevent/changed/index.md
API - ExtendableCookieChangeEvent - changed - Examples: In this example when the cookie is set, the event listener logs the `changed` property to the console. The first item in that array contains an object representing the cookie that has just been set. Example: self.addEventListener("cookiechange", (event) => { ...
[ -0.2619088590145111, -0.7003059983253479, -0.4760819673538208, 0.5875192880630493, 0.004784993827342987, -1.6537872552871704, 0.08435127884149551, 0.9754273891448975, -0.018090110272169113, 0.3353782892227173, 0.4901621341705322, 0.9254356026649475, -0.2112373262643814, 0.3031361997127533,...
api/extendablecookiechangeevent/deleted/index.md
API - ExtendableCookieChangeEvent - deleted: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `deleted` read-only property of the `ExtendableCookieChangeEvent` interface returns any cookies that have been deleted by the given `ExtendableCoo...
[ -0.7021174430847168, -0.256486713886261, -0.06477248668670654, 0.3810115158557892, -0.16428561508655548, -0.8425958156585693, 0.13753481209278107, 1.2376914024353027, 0.37783828377723694, 0.22208952903747559, 0.49633145332336426, 0.814287543296814, -0.18036018311977386, 0.20808875560760498...
api/extendablecookiechangeevent/deleted/index.md
API - ExtendableCookieChangeEvent - deleted - Value: An array of objects containing the deleted cookie(s). Each object contains the following properties: - `name`: A string containing the name of the cookie. - `value`: A string containing the value of the cookie. - `domain`: A string containing the domain of the cook...
[ 0.1625276356935501, -0.19713272154331207, -0.20498093962669373, -0.08673124015331268, 0.27199068665504456, -0.5780951380729675, 0.5546225905418396, 1.0988954305648804, -0.7175565958023071, -0.002772415056824684, 0.5015087127685547, 0.646232545375824, -0.2867467999458313, 0.2612729668617248...
api/extendablecookiechangeevent/deleted/index.md
API - ExtendableCookieChangeEvent - deleted - Examples: In this example when the cookie is deleted the event listener logs the first item in the `deleted` property to the console. It contains an object representing the cookie that has just been deleted. Example: self.addEventListener("cookiechange", (event) => { c...
[ 0.027061132714152336, -0.6669077277183533, -0.6011155843734741, 0.08698581159114838, 0.011381343007087708, -1.8356177806854248, 0.19749155640602112, 1.4264428615570068, -0.11949425935745239, 0.11624930799007416, 0.8574472665786743, 0.8675664663314819, -0.03614586964249611, 0.44159242510795...
api/mediacapabilities/encodinginfo/index.md
API - MediaCapabilities - encodingInfo: Note: This feature is available in Web Workers. The `encodingInfo()` method of the `MediaCapabilities` interface returns a promise that fulfills with the tested media configuration's capabilities for encoding media. This contains the three boolean properties `supported`, `smoot...
[ 0.2805539071559906, -0.21521517634391785, -0.7838971018791199, 0.11316466331481934, 0.5787512063980103, -0.9261351227760315, 0.19985222816467285, 1.5567874908447266, 0.14610642194747925, -0.446790486574173, 0.028197243809700012, 0.5232377052307129, 0.9044128060340881, 0.2525845766067505, ...
api/mediacapabilities/encodinginfo/index.md
API - MediaCapabilities - encodingInfo - Syntax: Example: encodingInfo(configuration)
[ -0.018650315701961517, -0.1837015450000763, -0.5643033981323242, 0.16068477928638458, -0.3168739080429077, -1.5443586111068726, 0.41234090924263, 0.835899829864502, -0.17578676342964172, -0.5949512720108032, -0.19942276179790497, 0.02928030490875244, 0.17864279448986053, 0.1574556976556778...
api/mediacapabilities/encodinginfo/index.md
API - MediaCapabilities - encodingInfo - Syntax - Parameters: - `configuration`: An object with a property `type` and either a `video` or `audio` property containing a configuration of the appropriate type: - `type`: The type of media being tested. This takes one of two values: - `record`: Represents a configur...
[ 0.35437166690826416, -0.3475625514984131, -0.6221501231193542, 0.8189617991447449, 0.6617836356163025, -0.30427423119544983, 0.819715142250061, 1.2993491888046265, -0.2836049795150757, 0.15859539806842804, -0.07353988289833069, -0.19013053178787231, 0.2603878974914551, 0.23584166169166565,...
api/mediacapabilities/encodinginfo/index.md
API - MediaCapabilities - encodingInfo - Syntax - Return value: A `Promise` fulfilling with an object containing three Boolean attributes: - `supported`: `true` if the media content can be encoded at all. Otherwise, it is `false`. - `smooth`: `true` if playback of the media will be smooth (of high quality). Otherwise...
[ 0.49890369176864624, 0.4569148123264313, -0.8608871102333069, 0.08795538544654846, 0.3904831111431122, -0.7163903117179871, 0.9263842701911926, 1.5844656229019165, -0.4246350824832916, -0.44061043858528137, -0.3009345233440399, 0.8198738098144531, 0.5079554319381714, -0.26867586374282837, ...
api/mediacapabilities/encodinginfo/index.md
API - MediaCapabilities - encodingInfo - Syntax - Exceptions: - `TypeError`: Thrown if the `configuration` passed to the `encodingInfo()` method is invalid, which may be for any of the following reasons: - the type is not video or audio, - the `contentType` is not a valid codec MIME type, - there is some other e...
[ 0.004283536691218615, -0.5613451600074768, -0.33091655373573303, 0.6307374835014343, -0.04573916271328926, -1.3946415185928345, 0.22377300262451172, 1.2969565391540527, 0.42710304260253906, -0.45044705271720886, -0.39395567774772644, -0.6921404600143433, 0.2513121962547302, 0.0156008824706...
api/mediacapabilities/encodinginfo/index.md
API - MediaCapabilities - encodingInfo - Examples - Setting a media configuration: Example: // Create media configuration to be tested const mediaConfig = { type: "record", video: { contentType: "video/webm;codecs=vp8.0", // valid content type width: 1920, // width of the video height: 1080, // height...
[ 0.5602867603302002, -0.3468027114868164, -0.4243605136871338, 0.49162864685058594, -0.00240413099527359, -0.8175359964370728, 0.8288447856903076, 0.8882096409797668, -0.19709625840187073, -0.15118327736854553, -0.5973922610282898, -0.344377338886261, 0.42461568117141724, -0.364180564880371...
api/barcodedetector/index.md
API - BarcodeDetector: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `BarcodeDetector` interface of the `Barcode Detection API` allows detection of linear and two dimensional barcodes in images.
[ -0.25369584560394287, -0.4563264846801758, -0.6233915686607361, 0.25883349776268005, 0.25914838910102844, -0.7334904670715332, 0.5056737065315247, 0.8081907033920288, 0.46361082792282104, 0.543559730052948, -0.3114968240261078, 0.8737661242485046, 0.5215802788734436, 0.43179821968078613, ...
api/barcodedetector/index.md
API - BarcodeDetector - Constructors: - `BarcodeDetector.BarcodeDetector()` (experimental): Creates and returns a `BarcodeDetector` object, with optional `BarcodeDetectorOptions`.
[ -0.9370933771133423, -0.7968383431434631, -0.3784731924533844, 0.34062448143959045, 0.19131049513816833, -1.4720317125320435, 0.607421875, 0.7811048626899719, -0.007574915885925293, 0.5861619710922241, -1.0065367221832275, 0.2308879792690277, 0.6097116470336914, 0.599022388458252, 0.3344...
api/barcodedetector/index.md
API - BarcodeDetector - Static methods: - `getSupportedFormats()` (experimental): Returns a `Promise` which fulfills with an `Array` of supported barcode format types.
[ -0.6596865057945251, -0.4271242618560791, -0.759162187576294, -0.006668228656053543, 0.24251192808151245, -1.2287530899047852, 0.9334830045700073, 1.0324597358703613, -0.04720268398523331, 0.7178362011909485, -0.6104311347007751, 0.25123780965805054, 0.5190008282661438, 0.05609711259603500...
api/barcodedetector/index.md
API - BarcodeDetector - Instance methods: - `detect()` (experimental): Returns a `Promise` which fulfills with an array of `DetectedBarcode` objects with the following properties: - `boundingBox`: A `DOMRectReadOnly`, which returns the dimensions of a rectangle representing the extent of a detected barcode, aligned ...
[ -0.17589622735977173, -0.36582568287849426, -0.5271263122558594, 0.04212353378534317, 0.6549277305603027, -1.2690726518630981, 1.0755583047866821, 0.7578017115592957, 0.1499631255865097, 0.5554985404014587, -0.5298206806182861, 0.7663379907608032, 0.23188236355781555, 0.4773635268211365, ...
api/barcodedetector/index.md
API - BarcodeDetector - Examples - Creating A Detector: This example creates a new barcode detector object, with specified supported formats and tests for browser compatibility. Example: // check compatibility if (!("BarcodeDetector" in globalThis)) { console.log("Barcode Detector is not supported by this browser....
[ 0.4230648875236511, -0.8603492975234985, -0.6695512533187866, 0.7236018180847168, 0.4430059790611267, -1.2196937799453735, -0.20523223280906677, 0.3938394784927368, 0.28293997049331665, 0.8159990310668945, -0.7119967341423035, 0.5039090514183044, 0.44825369119644165, 0.4570086598396301, ...
api/barcodedetector/index.md
API - BarcodeDetector - Examples - Getting Supported Formats: The following example calls the `getSupportedFormats()` static method and logs the results to the console. Example: // check supported types BarcodeDetector.getSupportedFormats().then((supportedFormats) => { supportedFormats.forEach((format) => console....
[ 0.3814935088157654, -1.0323537588119507, -1.387299656867981, 0.011495515704154968, 0.2164134681224823, -2.009781837463379, 0.09804052114486694, 1.1264729499816895, -0.11910834163427353, 0.4498288035392761, -0.8865690231323242, 0.29403066635131836, 0.4941508173942566, 0.2543902099132538, ...
api/barcodedetector/index.md
API - BarcodeDetector - Examples - Detect Barcodes: This example uses the `detect()` method to detect the barcodes within the given image. These are iterated over and the barcode data is logged to the console. Example: barcodeDetector .detect(imageEl) .then((barcodes) => { barcodes.forEach((barcode) => conso...
[ 0.06169486790895462, -0.6448917388916016, -0.9956697225570679, 0.15911778807640076, 0.039116814732551575, -1.1307677030563354, 0.669505774974823, 0.4177503287792206, 0.02546337991952896, 0.5932208895683289, -0.43429329991340637, 0.5866917967796326, 0.04240746796131134, 0.5511892437934875, ...
api/barcodedetector/getsupportedformats_static/index.md
API - BarcodeDetector - getSupportedFormats static: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `getSupportedFormats()` static method of the `BarcodeDetector` interface returns a `Promise` which fulfills with an `Array` of supported b...
[ 0.23884797096252441, -0.43737590312957764, -0.789141833782196, 0.05163571238517761, 0.4992362856864929, -0.9398619532585144, 0.6840554475784302, 1.508200764656067, 0.20891976356506348, 0.3899867832660675, -0.2113054394721985, 0.6645843982696533, 0.6265588402748108, 0.15558704733848572, -...
api/barcodedetector/getsupportedformats_static/index.md
API - BarcodeDetector - getSupportedFormats static - Syntax: Example: BarcodeDetector.getSupportedFormats()
[ -0.42780280113220215, -0.5718512535095215, -0.5863032937049866, -0.3467346429824829, 0.22873440384864807, -1.3214221000671387, 0.20170685648918152, 0.5415673851966858, 0.3481321632862091, 0.4231666028499603, -0.5109418630599976, 0.10074467957019806, -0.2211809605360031, 0.7211667895317078,...
api/barcodedetector/getsupportedformats_static/index.md
API - BarcodeDetector - getSupportedFormats static - Syntax - Parameters: None.
[ -0.5124832391738892, -0.1543038934469223, -0.18338589370250702, -0.21038609743118286, 0.5209038853645325, -0.38004010915756226, 0.17046566307544708, 0.8562588691711426, -0.14147430658340454, -0.03274328261613846, -0.8027881383895874, -0.44413256645202637, 0.04734116047620773, 0.50294077396...
api/barcodedetector/getsupportedformats_static/index.md
API - BarcodeDetector - getSupportedFormats static - Syntax - Return value: A `Promise` which fulfills with an `Array` of supported barcode format types.
[ -0.4092569053173065, -0.5762728452682495, -0.34255897998809814, 0.10536046326160431, -0.1235465407371521, -1.103841781616211, 0.5022534728050232, 0.33423125743865967, -0.09304224699735641, 0.454498291015625, -0.5114452838897705, 0.2854638695716858, 0.26897844672203064, 0.6150994896888733, ...
api/barcodedetector/getsupportedformats_static/index.md
API - BarcodeDetector - getSupportedFormats static - Syntax - Exceptions: No exceptions are thrown.
[ -0.651443362236023, -0.5767726302146912, -0.24584519863128662, -0.14298462867736816, 0.16665250062942505, -0.805678129196167, -0.0834912657737732, 0.4765107035636902, 0.05263596773147583, -0.05623825639486313, -0.9356865286827087, -0.11921123415231705, -0.1647179126739502, 0.47922670841217...
api/barcodedetector/getsupportedformats_static/index.md
API - BarcodeDetector - getSupportedFormats static - Examples: The following example calls the `getSupportedFormats()` static method and logs the results to the console. Example: // check supported types BarcodeDetector.getSupportedFormats().then((supportedFormats) => { supportedFormats.forEach((format) => console...
[ 0.09119059145450592, -0.9374289512634277, -1.3910127878189087, 0.3142896890640259, 0.11263829469680786, -1.6670169830322266, 0.20315347611904144, 0.8573176860809326, -0.09177036583423615, 0.5334679484367371, -0.6838864088058472, 0.2986374497413635, 0.4734848737716675, 0.18437506258487701, ...
api/transitionevent/transitionevent/index.md
API - TransitionEvent: The `TransitionEvent()` constructor returns a new `TransitionEvent` object, representing an event in relation with a transition.
[ -0.7322797179222107, -0.22903533279895782, -0.5098589658737183, 0.4712563753128052, 0.021264255046844482, -1.6352403163909912, -0.06594927608966827, 0.8620803952217102, -0.6460750699043274, 0.44788557291030884, -0.23678426444530487, -0.15039342641830444, -0.191227525472641, 0.9300542473793...
api/transitionevent/transitionevent/index.md
API - TransitionEvent - Syntax: Example: new TransitionEvent(type) new TransitionEvent(type, options)
[ 0.0166747085750103, -0.26207005977630615, -1.186719536781311, 0.05694214999675751, -0.8821235299110413, -0.9220811128616333, -0.3330477774143219, 2.426105499267578, 0.9425067901611328, -0.010736070573329926, 1.024358868598938, -0.3905792534351349, -0.02670794352889061, 0.6439307332038879, ...
api/transitionevent/transitionevent/index.md
API - TransitionEvent - Syntax - Parameters: - `type`: A string with the name of the event. It is case-sensitive and browsers set it to `transitionrun`, `transitionstart`, `transitionend`, or `transitioncancel`. - `options` (optional): An object that, in addition of the properties defined in `Event()`, can have the fo...
[ 0.5388051867485046, -0.6127080917358398, -0.4065164625644684, 0.3844107985496521, 0.8040918707847595, -1.1774790287017822, 0.5757917165756226, 1.2640132904052734, -0.9880814552307129, 0.8567259907722473, 0.06738151609897614, -0.10570555925369263, -0.39581596851348877, 0.7674441933631897, ...