file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
api/svgaelement/download/index.md
API - SVGAElement - download: The `download` property of the `SVGAElement` interface returns a string indicating that the browser should treat the linked URL as a download. This property can be set to change the URL's `download` value. It reflects the value of the `download` attribute. Note: This value might not be ...
[ -1.0007051229476929, -0.44812291860580444, -0.7077017426490784, -0.0065999142825603485, 0.0908392071723938, -1.892783761024475, 0.8394610285758972, 0.6391375660896301, -0.020490795373916626, 0.009132025763392448, -0.5526797771453857, 0.942973256111145, -0.26871317625045776, 0.4823732972145...
api/svgaelement/download/index.md
API - SVGAElement - download - Value: A string.
[ -0.1936010867357254, -0.21837636828422546, 0.30254560708999634, -0.9183781743049622, -0.029377933591604233, -1.713464617729187, 1.3190969228744507, 0.7242253422737122, -0.30557772517204285, 0.0980711355805397, 0.254071980714798, 1.2136404514312744, -0.3730822205543518, -0.09790247678756714...
api/csspseudoelement/index.md
API - CSSPseudoElement: The `CSSPseudoElement` interface represents a pseudo-element. Instances of this interface may be obtained by calling `Element.pseudo()` or `CSSPseudoElement.pseudo()`.
[ 0.42421597242355347, 0.12397719919681549, -0.6970780491828918, -0.11120812594890594, -0.17224600911140442, -2.4170191287994385, 0.47722792625427246, 0.37294670939445496, -0.2672311067581177, 0.32261645793914795, 0.2932049036026001, 0.5275600552558899, 0.6625348329544067, 0.3455933630466461...
api/csspseudoelement/index.md
API - CSSPseudoElement - Instance properties: - `CSSPseudoElement.element` (experimental) (read only): Returns the ultimate originating `Element` of the pseudo-element. - `CSSPseudoElement.parent` (experimental) (read only): Returns the immediate originating element of the pseudo-element. - `CSSPseudoElement.type` (ex...
[ 0.12070045620203018, 0.22644206881523132, -0.5478775501251221, 0.1906197965145111, -0.2250872701406479, -2.023540496826172, 0.6199483871459961, 1.1438626050949097, 0.04675813019275665, 0.22997142374515533, 0.41408771276474, 1.1513856649398804, 0.5133436322212219, 0.2626974880695343, -0.5...
api/csspseudoelement/index.md
API - CSSPseudoElement - Instance methods: - `CSSPseudoElement.pseudo()` (experimental): Returns a `CSSPseudoElement` instance representing a specific nested pseudo-element
[ 0.3916439712047577, 0.11597743630409241, -0.9427328705787659, -0.022555764764547348, 0.76164311170578, -2.147092580795288, 0.6166980266571045, 1.0004911422729492, 0.12302571535110474, 0.08158129453659058, 0.6468405723571777, 1.1043847799301147, 0.7827490568161011, 0.6121397614479065, -0....
api/csspseudoelement/index.md
API - CSSPseudoElement - Description: The `CSSPseudoElement` interface represents a pseudo-element. You can retrieve a representation of a pseudo-element attached to a DOM element using the `Element.pseudo()` method, or a representation of a nested pseudo-element (for example, the `::marker` in `::before::marker`) usi...
[ 1.0642948150634766, -0.00911824218928814, -0.5972380042076111, 0.2572658658027649, -0.04056146740913391, -1.4929165840148926, 1.1758068799972534, 0.9252739548683167, -0.03876699134707451, 0.43797793984413147, 0.6664345264434814, 1.152445912361145, 0.30126193165779114, 0.2580326795578003, ...
api/csspseudoelement/index.md
API - CSSPseudoElement - Examples - Basic example using Element.pseudo: Using pseudo-elements, most modern browsers will automatically add quotation marks around text inside a `q` element. (A style rule may be needed to add quotation marks in older browsers.) The example below demonstrates the basic properties of the ...
[ 0.29445692896842957, -0.04722115397453308, -0.6601412892341614, -0.23913972079753876, 0.5917655825614929, -1.394487977027893, 0.9048647880554199, 1.0602502822875977, -0.5276855230331421, -0.25775861740112305, 0.4434530436992645, 0.6881014704704285, 0.0624084547162056, 0.3506104052066803, ...
api/csspseudoelement/parent/index.md
API - CSSPseudoElement - parent: The `parent` read-only property of the `CSSPseudoElement` interface returns a reference to the immediate originating element of the pseudo-element, which can be an `Element`, or a `CSSPseudoElement` in the case of a nested pseudo-element. This differs from the `CSSPseudoElement.elemen...
[ 0.26959359645843506, -0.2328799068927765, -0.6339751482009888, 0.6034703850746155, -0.42152565717697144, -1.9775307178497314, 1.3319984674453735, 0.7822937965393066, 0.5120326280593872, 0.36653774976730347, 0.09481288492679596, 0.8111432194709778, -0.4084596037864685, -0.23426687717437744,...
api/csspseudoelement/parent/index.md
API - CSSPseudoElement - parent - Value: An `Element` or a `CSSPseudoElement` representing the pseudo-element's immediate parent.
[ -0.40359172224998474, 0.3848051428794861, -0.47562047839164734, -0.22636838257312775, -0.2250985950231552, -2.0725202560424805, 0.45563003420829773, 0.7401924133300781, -0.10168907046318054, 0.2628607153892517, 0.4450546205043793, 1.1921898126602173, 0.035029783844947815, 0.183777123689651...
api/csspseudoelement/parent/index.md
API - CSSPseudoElement - parent - Examples - Basic usage: In this example, we demonstrate the difference between the `parent` and `element` properties.
[ 0.10296983271837234, 0.5673632621765137, -0.8903043866157532, -0.22906605899333954, -0.5026628971099854, -1.8851021528244019, 1.2946680784225464, 0.9440869688987732, -0.003467082977294922, 0.21051914989948273, 0.09479719400405884, 1.0480204820632935, -0.31342005729675293, -0.03832828253507...
api/csspseudoelement/parent/index.md
API - CSSPseudoElement - parent - Examples - Basic usage - HTML: We include a `p` element containing text, and an `output` element to log output from JavaScript. Example: <p>New York's hottest club is...</p> <output></output>
[ -0.5264744758605957, 0.2726897895336151, -0.4678957164287567, 0.6441105008125305, -0.38889995217323303, -1.9642993211746216, 0.7588268518447876, 0.6452124118804932, -0.08771123737096786, 0.43718135356903076, -0.1457117199897766, 0.5027523636817932, 0.04401054233312607, -0.24987077713012695...
api/csspseudoelement/parent/index.md
API - CSSPseudoElement - parent - Examples - Basic usage - CSS: We give the `<p>` element's `::after` pseudo-element some `content` and set its `display` to `list-item` so it will generate a `::marker`. We also apply some basic styles. Example: body { width: 80%; margin: 0 auto; } Example: p { background-col...
[ 0.6263625025749207, -0.060286227613687515, -0.7872822284698486, -0.2028951495885849, 0.013545878231525421, -1.5871390104293823, 0.817415177822113, 1.1200428009033203, -0.7122065424919128, 0.16617292165756226, 0.40974265336990356, 0.5395867228507996, 0.13151565194129944, 0.19282281398773193...
api/csspseudoelement/parent/index.md
API - CSSPseudoElement - parent - Examples - Basic usage - JavaScript: In our script, we grab references to our `<p>` and `<output>` elements, and retrieve `CSSPseudoElement` objects via the `pseudo()` method representing the `<p>` element's `::after` pseudo-element, and the `::after` pseudo-element's `::marker` pseud...
[ 0.7126455307006836, 0.3245566189289093, -0.8737182021141052, -0.044546861201524734, 0.09628713130950928, -0.9049297571182251, 0.9850009679794312, 1.5350432395935059, -0.635405957698822, 0.14177431166172028, 0.16148686408996582, 1.1031404733657837, 0.13081464171409607, 0.13552479445934296, ...
api/csspseudoelement/type/index.md
API - CSSPseudoElement - type: The `type` read-only property of the `CSSPseudoElement` interface returns the type of the pseudo-element as a string, represented in the form of a CSS selector.
[ 0.12454739958047867, -0.14478984475135803, -0.5383763313293457, -0.13260681927204132, 0.27612194418907166, -2.3855667114257812, 0.5642390251159668, 0.69083172082901, 0.27889978885650635, 0.292012482881546, 0.11851778626441956, 0.5725290179252625, 0.4213981628417969, 0.11885945498943329, ...
api/csspseudoelement/type/index.md
API - CSSPseudoElement - type - Value: A string representing the type of pseudo-element represented by the `CSSPseudoElement`. Possible values are: - `::after` - `::before` - `::marker`
[ -0.08716698735952377, 0.11502881348133087, -0.5295303463935852, -0.23065705597400665, 0.320571631193161, -2.4688315391540527, 0.5792354941368103, 0.9905411005020142, -0.3244624733924866, 0.08521921932697296, 0.8246138691902161, 0.9413769245147705, 0.6198607683181763, 0.15233945846557617, ...
api/csspseudoelement/type/index.md
API - CSSPseudoElement - type - Examples - Basic usage: The example below demonstrates the relationship between `CSSPseudoElement.type` and `Element.pseudo()`: Example: const myElement = document.querySelector("q"); const mySelector = "::after"; const cssPseudoElement = myElement.pseudo(mySelector); const typeOfPseu...
[ -0.3356815278530121, -0.6630589365959167, -0.5075290203094482, -0.009923238307237625, -0.2717326283454895, -2.002054214477539, 0.10887275636196136, 0.6082035899162292, 0.1459653526544571, 0.13041344285011292, 0.19122447073459625, 0.35331764817237854, -0.0423298254609108, -0.133338361978530...
api/csspseudoelement/element/index.md
API - CSSPseudoElement - element: The `element` read-only property of the `CSSPseudoElement` interface returns a reference to the ultimate originating element of the pseudo-element. This differs from the `CSSPseudoElement.parent` property, which returns a reference to the pseudo-element's immediate originating elemen...
[ 0.46536096930503845, -0.014102799817919731, -0.5458219647407532, 0.07852942496538162, -0.0491584837436676, -2.371647834777832, 1.0951207876205444, 0.3008410930633545, 0.2945483922958374, 0.1836833357810974, 0.1308683305978775, 0.4932841658592224, -0.27382099628448486, 0.11618226766586304, ...
api/csspseudoelement/element/index.md
API - CSSPseudoElement - element - Value: An `Element` representing the pseudo-element's ultimate originating parent element.
[ 0.2486756443977356, 0.6386817097663879, -0.5670263767242432, -0.3076985478401184, 0.0771322250366211, -2.0287036895751953, 0.5456158518791199, 0.6563088893890381, -0.2324139028787613, 0.32047051191329956, 0.9071892499923706, 1.2553356885910034, 0.004155561327934265, 0.39740633964538574, ...
api/csspseudoelement/element/index.md
API - CSSPseudoElement - element - Examples - Basic usage: The example below demonstrates the relationship between `CSSPseudoElement.element` and `Element.pseudo()`: Example: const myElement = document.querySelector("q"); const cssPseudoElement = myElement.pseudo("::after"); const originatingElement = cssPseudoEleme...
[ 0.1196339800953865, -0.21193091571331024, -0.6301422119140625, -0.0596926212310791, -0.3048579692840576, -2.310590982437134, 0.12554261088371277, 0.436036616563797, 0.1943109929561615, 0.13035795092582703, 0.3755550980567932, 0.2305678129196167, -0.34597548842430115, 0.010455198585987091, ...
api/csspseudoelement/pseudo/index.md
API - CSSPseudoElement - pseudo: The `pseudo()` method of the `CSSPseudoElement` interface returns a `CSSPseudoElement` instance representing a specific nested pseudo-element.
[ 0.06745486706495285, -0.11849945038557053, -0.9166437387466431, -0.18853770196437836, -0.07210838794708252, -2.589381217956543, 0.3212800920009613, 0.35937193036079407, -0.031160008162260056, 0.26056697964668274, 0.2867075502872467, 0.6429829001426697, 0.29485902190208435, 0.49593335390090...
api/csspseudoelement/pseudo/index.md
API - CSSPseudoElement - pseudo - Syntax: Example: pseudo(type)
[ -0.5065795183181763, 0.3476181626319885, -0.20553095638751984, -0.27247101068496704, -0.3013579845428467, -1.8781185150146484, 0.5392565727233887, 0.31423500180244446, -0.22057531774044037, 0.5455371141433716, 0.5832281112670898, 0.6921601295471191, 0.24893724918365479, -0.0532894209027290...
api/csspseudoelement/pseudo/index.md
API - CSSPseudoElement - pseudo - Syntax - Parameters: - `type`: A string representing the type of pseudo-element to return a representation of. Valid values are: - `::after` - `::before` - `::marker`
[ 0.2616298198699951, 0.2824863791465759, -0.46545904874801636, -0.061562418937683105, 0.4071454405784607, -2.911691188812256, 0.637871503829956, 0.6545339822769165, 0.04714056849479675, 0.5135563611984253, 0.14322324097156525, 0.5370987057685852, 0.21154367923736572, -0.2982173562049866, ...
api/csspseudoelement/pseudo/index.md
API - CSSPseudoElement - pseudo - Syntax - Return value: A `CSSPseudoElement` object instance, or `null` if `type` is not equal to a valid pseudo-element type.
[ -0.3301297724246979, -0.4405529201030731, 0.030450809746980667, 0.4737279415130615, -0.1984652280807495, -2.1356041431427, 0.3252001702785492, 0.1278935968875885, 0.19468897581100464, 0.3475836217403412, -0.0507994145154953, 0.6030835509300232, 0.3745708465576172, 0.05670885741710663, -0...
api/csspseudoelement/pseudo/index.md
API - CSSPseudoElement - pseudo - Description: The `CSSPseudoElement.pseudo()` method is used to target a pseudo-element that is attached to another pseudo-element, rather than directly to a standard DOM element. For example, if a `::before` pseudo-element generates a list marker — selectable via `::before::marker` — ...
[ 0.9448563456535339, -0.1964147537946701, -1.2581859827041626, -0.10117699205875397, 0.12046478688716888, -1.6199791431427002, 0.9717394113540649, 1.6114939451217651, -0.40792956948280334, 0.6049836874008179, 0.3465636074542999, 1.1144040822982788, 0.36886265873908997, 0.5599560141563416, ...
api/csspseudoelement/pseudo/index.md
API - CSSPseudoElement - pseudo - Examples - Basic usage: In this example, we demonstrate basic usage of the `pseudo()` method.
[ 0.04417254775762558, 0.35846051573753357, -1.216528058052063, -0.12867239117622375, 0.4358680844306946, -2.0408763885498047, 1.0789644718170166, 1.0989588499069214, -0.8893570303916931, 0.1005246713757515, 0.2009754627943039, 1.0288593769073486, 0.16672581434249878, 0.286577433347702, -0...
api/csspseudoelement/pseudo/index.md
API - CSSPseudoElement - pseudo - Examples - Basic usage - HTML: We include a `p` element containing text, and an `output` element to log output from JavaScript. Example: <p>New York's hottest club is...</p> <output></output>
[ -0.6533358097076416, 0.16477133333683014, -0.4379884898662567, 0.6350860595703125, -0.13604652881622314, -1.741200566291809, 0.45267099142074585, 0.47467735409736633, -0.03907651826739311, 0.5217548608779907, -0.0821608304977417, 0.34202033281326294, -0.12413549423217773, -0.21491675078868...
api/csspseudoelement/pseudo/index.md
API - CSSPseudoElement - pseudo - Examples - Basic usage - CSS: We give the `<p>` element's `::after` pseudo-element some `content` and set its `display` to `list-item` so it will generate a `::marker`. We also apply some basic styles. Example: body { width: 80%; margin: 0 auto; } Example: p { background-col...
[ 0.17413312196731567, -0.18810880184173584, -0.693989098072052, -0.15076389908790588, 0.09356710314750671, -1.71870756149292, 0.8853714466094971, 0.8991255164146423, -0.5332217216491699, 0.3434164226055145, 0.05049906671047211, 0.6122581958770752, 0.12612414360046387, 0.5342164635658264, ...
api/csspseudoelement/pseudo/index.md
API - CSSPseudoElement - pseudo - Examples - Basic usage - JavaScript: In our script, we grab references to our `<p>` and `<output>` elements, and retrieve `CSSPseudoElement` objects via the `pseudo()` method representing the `<p>` element's `::after` pseudo-element, and the `::after` pseudo-element's `::marker` pseud...
[ 0.786226212978363, 0.29834550619125366, -1.0035489797592163, -0.29897424578666687, 0.1976414918899536, -0.9975273013114929, 0.9848835468292236, 1.4761618375778198, -0.7329017519950867, 0.07115446031093597, 0.17790739238262177, 1.1937743425369263, 0.2026020884513855, 0.2651771008968353, -...
api/viewtransition/index.md
API - ViewTransition: The `ViewTransition` interface of the `View Transition API` represents an active view transition, and provides functionality to react to the transition reaching different states (e.g., ready to run the animation, or animation finished) or skip the transition altogether. This object type is made ...
[ 0.4972028136253357, -1.098139762878418, -0.08293802291154861, 1.296019434928894, -0.25916242599487305, -0.5040435791015625, 0.1860022097826004, 1.8038713932037354, 0.10973741114139557, 0.15904021263122559, 0.37218913435935974, 0.11560146510601044, 0.6577636003494263, 0.7278814315795898, ...
api/viewtransition/index.md
API - ViewTransition - Instance properties: - `ViewTransition.finished` (read only): A `Promise` that fulfills once the transition animation is finished, and the new page view is visible and interactive to the user. - `ViewTransition.ready` (read only): A `Promise` that fulfills once the pseudo-element tree is created...
[ 0.629159152507782, -0.2679140269756317, -0.1995440125465393, 0.6415768265724182, 0.21213412284851074, -1.1997568607330322, 0.912046492099762, 1.7095880508422852, -0.8728005290031433, 0.2540867030620575, 0.06298165768384933, 0.2123323678970337, 0.5447474122047424, 0.8359377980232239, -0.3...
api/viewtransition/index.md
API - ViewTransition - Instance methods: - `skipTransition()`: Skips the animation part of the view transition, but doesn't skip running the `document.startViewTransition()` callback that updates the DOM. - `waitUntil()` (experimental): Delays finishing the view transition and the destruction of the associated pseudo-...
[ -0.16785933077335358, -0.7396308183670044, 0.16988211870193481, 0.529005765914917, -0.1555924415588379, -1.2298611402511597, 0.8085581064224243, 0.9204346537590027, -0.04216790571808815, 0.40974584221839905, -0.5526100993156433, -0.008080538362264633, 0.9869775772094727, 0.9040933847427368...
api/viewtransition/index.md
API - ViewTransition - Examples: In the following SPA example, the `ViewTransition.ready` promise is used to trigger a custom circular reveal view transition emanating from the position of the user's cursor on click, with animation provided by the `Web Animations API`. Example: // Store the last click event let last...
[ 0.6428779363632202, -0.3175610303878784, -0.3212002217769623, 0.19173496961593628, 0.5890544056892395, -0.8419923782348633, 1.0266526937484741, 1.8416064977645874, -0.4679180085659027, 0.3749833106994629, 0.6310471296310425, 0.35490483045578003, 0.10285896062850952, 0.6743268966674805, -...
api/viewtransition/transitionroot/index.md
API - ViewTransition - transitionRoot: The `transitionRoot` read-only property of the `ViewTransition` interface is a reference to the root `Element` of the view transition scope.
[ -0.40453317761421204, -0.37514254450798035, 0.056536056101322174, 0.025353744626045227, -0.03107554093003273, -1.7626760005950928, 0.584053099155426, 0.10598914325237274, 0.7362788319587708, -0.14640194177627563, -0.40085074305534363, -0.4944051206111908, 0.32863956689834595, 0.67959338426...
api/viewtransition/transitionroot/index.md
API - ViewTransition - transitionRoot - Value: An `Element`. - For document-scoped view transitions, `transitionRoot` is a reference to the `Document.documentElement` property, which for standard web documents is a reference to the `html` element. - For element-scoped view transitions, `transitionRoot` is a reference...
[ -0.14410953223705292, -0.9155243039131165, 0.32332611083984375, 0.5241597890853882, -0.1914944052696228, -1.1558620929718018, 0.3131178617477417, 0.20412681996822357, 0.14223963022232056, 0.14243891835212708, 0.2728313207626343, -0.30044233798980713, 0.3390013873577118, 0.8864715695381165,...
api/viewtransition/transitionroot/index.md
API - ViewTransition - transitionRoot - Examples - Basic usage: This snippet shows how to use `transitionRoot` to retrieve a reference to the element the view transition was created on. Example: const myElement = document.querySelector(".my-element"); // ... function handleVT() { const vt = myElement.startViewTr...
[ 0.19177450239658356, -0.6545742750167847, -0.38544318079948425, 1.0986355543136597, -0.10664990544319153, -2.027852773666382, 0.9757922887802124, 0.7783522605895996, -0.6523426175117493, 0.28713083267211914, 0.4660090506076813, 0.023636609315872192, 0.4067341387271881, 1.073014736175537, ...
api/rtccodecstats/payloadtype/index.md
API - RTCCodecStats - payloadType: The `payloadType` property of the `RTCCodecStats` dictionary is a positive integer in the range from 0 to 127 that describes the format of the `RTP` payload used in RTP encoding or decoding.
[ -0.3647367060184479, -0.5166852474212646, -1.2508466243743896, 0.5225186347961426, 0.47532927989959717, -0.8734879493713379, 0.625277042388916, 1.5615283250808716, 0.1377149373292923, 0.09248457849025726, -1.0283249616622925, -0.13616052269935608, 0.3181670010089874, 0.1987135410308838, ...
api/rtccodecstats/payloadtype/index.md
API - RTCCodecStats - payloadType - Value: A positive integer between 0 and 127. The mappings of values to formats is defined in RFC3550, and more specifically in Section 6: Payload Type Definitions of RFC3551.
[ -0.433650404214859, -0.5062907934188843, -0.312834233045578, 0.3278648853302002, -0.18940898776054382, -1.460589051246643, 1.1188119649887085, 0.8619299530982971, -0.031276218593120575, -0.21368758380413055, -1.2506359815597534, -0.2417379915714264, 0.5343829393386841, 0.20934268832206726,...
api/htmlelement/style/index.md
API - HTMLElement - style: The read-only `style` property of the `HTMLElement` interface returns the inline `style` of an element in the form of a live `CSSStyleProperties` object. This object can be used to get and set the inline styles of an element.
[ 0.19536621868610382, -0.008124050684273243, -0.285504013299942, -0.049370698630809784, 0.4517834782600403, -1.7176347970962524, 0.37867721915245056, 1.164559245109558, -0.2508152723312378, -0.3892059624195099, -0.5797601938247681, 0.46303868293762207, 1.0348411798477173, 0.0076119676232337...
api/htmlelement/style/index.md
API - HTMLElement - style - Value: A live `CSSStyleProperties` object. Note: Earlier versions of the specification returned a `CSSStyleDeclaration` (from which `CSSStyleProperties` is derived). See the browser compatibility table for browser support information. Although the `style` property itself is read-only in t...
[ -0.139875590801239, -0.027147158980369568, -0.2203473597764969, 0.4854148030281067, 0.5193533897399902, -1.6062841415405273, 0.5621726512908936, 1.0906826257705688, -0.2620083689689636, -0.006243802607059479, 0.18494188785552979, 0.6824429631233215, 0.6657667756080627, 0.0923682451248169, ...
api/htmlelement/style/index.md
API - HTMLElement - style - Description: The values of the inline styles set in the element's `style` attribute are reflected by corresponding properties of the returned `CSSStyleProperties` object. Note: `CSSStyleProperties` has dash-named and corresponding `camel-case` named properties for all CSS properties suppor...
[ 0.42006203532218933, -0.5091003179550171, -0.424373984336853, -0.03365020453929901, 0.7769338488578796, -0.5425785183906555, 0.7438931465148926, 1.808501124382019, -0.4071604609489441, 0.07491178810596466, -0.45011746883392334, 0.8967801928520203, 0.4089657962322235, -0.12163592129945755, ...
api/htmlelement/style/index.md
API - HTMLElement - style - Examples - Basic usage: This code example shows how you can read the inline styles of an element. In each case it reads the dash-named style properties using `getPropertyValue()` and gets the camel case properties using the dot operator.
[ -1.0446943044662476, 0.020184699445962906, 0.018887024372816086, -0.14668908715248108, 0.07823868095874786, -1.418030023574829, 0.6271923780441284, 0.5568395853042603, -0.2713931202888489, 0.27045050263404846, -0.8730109930038452, 0.3871959149837494, 0.995513916015625, -0.5311969518661499,...
api/htmlelement/style/index.md
API - HTMLElement - style - Examples - Basic usage - HTML: First we define a `div` element and nested element that define different inline styles, using both shorthand and longhand form. Example: <div style="font-weight: bold;"> <div style="border-top: 1px solid blue; color: red;" id="elt"> An example div </...
[ -0.13879121840000153, -0.3363141417503357, -0.17097993195056915, 0.2240653932094574, 0.02227732539176941, -1.1849098205566406, 0.46855056285858154, 0.3544065058231354, 0.10733754932880402, 0.2388482391834259, -0.8879965543746948, -0.04047301411628723, 0.24250835180282593, -0.17913067340850...
api/htmlelement/style/index.md
API - HTMLElement - style - Examples - Basic usage - JavaScript: Example: const logElement = document.querySelector("#log"); function log(text) { logElement.innerText = `${logElement.innerText}${text}\n`; logElement.scrollTop = logElement.scrollHeight; } The following code gets the inner element, reads its style...
[ -0.08654078096151352, 0.12620605528354645, -0.16921260952949524, 0.5309193134307861, 0.663141667842865, -0.9604362845420837, 0.12959396839141846, 0.9737228751182556, -0.7474919557571411, 0.03603038936853409, -0.44260650873184204, 0.6808586120605469, -0.24672691524028778, 0.1550532430410385...
api/htmlelement/style/index.md
API - HTMLElement - style - Examples - Enumerating style information: This example demonstrates how we can enumerate the dash-named properties of `CSSStyleProperties`.
[ -0.5893237590789795, 0.07045961916446686, 0.3987012207508087, -0.3173421025276184, -0.39349716901779175, -1.7830982208251953, 0.4899469017982483, 0.5116484761238098, -0.4527924060821533, 0.06807273626327515, -0.18434514105319977, 0.6044340133666992, 0.23035314679145813, 0.18979379534721375...
api/htmlelement/style/index.md
API - HTMLElement - style - Examples - Enumerating style information - HTML: First we define a `div` element and nested element that define different inline styles, using both shorthand and longhand form. This is the same HTML as in the previous example. Example: <div style="font-weight: bold;"> <div style="border...
[ -0.033929597586393356, -0.3652774393558502, -0.043308138847351074, 0.393471896648407, 0.013784319162368774, -1.138597011566162, 0.32933250069618225, 0.6202850937843323, 0.23430240154266357, 0.3398450016975403, -0.8310347199440002, 0.009170673787593842, 0.3392217755317688, -0.10339740663766...
api/htmlelement/style/index.md
API - HTMLElement - style - Examples - Enumerating style information - JavaScript: Example: const logElement = document.querySelector("#log"); function log(text) { logElement.innerText = `${logElement.innerText}${text}\n`; logElement.scrollTop = logElement.scrollHeight; } The following code iterates the enumerab...
[ -0.6838240623474121, -0.2007431834936142, -0.1300809681415558, 0.6451396346092224, 0.1260690987110138, -1.2951815128326416, -0.17587824165821075, 0.4157029688358307, -0.16960638761520386, -0.08854586631059647, -0.6358019709587097, 0.38054198026657104, 0.1431959718465805, -0.128686755895614...
api/htmlelement/style/index.md
API - HTMLElement - style - Examples - Updating border style: Example: <div id="box"></div> <button id="btn1">Make border 20px-wide</button> <button id="btn2">Make border 5px-wide</button> Example: #box { border: 5px solid green; width: 100px; height: 100px; } Example: function setBorderWidth(width) { do...
[ 0.41767773032188416, -0.3096124827861786, 0.25906556844711304, 0.18950162827968597, -0.2841375470161438, -0.9304115772247314, 0.47865384817123413, 0.28624510765075684, 0.019579753279685974, -0.3078780472278595, -0.4264695346355438, 0.9903314113616943, -0.4072163701057434, 0.109192416071891...
api/htmlelement/style/index.md
API - HTMLElement - style - Examples - Manipulating styles: In this example, some basic style properties of an HTML paragraph element are accessed using the style object on the element and that object's CSS style properties, which can be retrieved and set from the DOM. In this case, you are manipulating the individual...
[ 0.09604614973068237, -0.4522780179977417, 0.14758992195129395, 0.48528313636779785, -0.10618433356285095, -1.328978419303894, 0.29435601830482483, 0.5700789093971252, -0.4349648058414459, 0.1883581578731537, -0.5335842967033386, 0.09686852991580963, 0.5422711372375488, -0.6540465354919434,...
api/request/destination/index.md
API - Request - destination: Note: This feature is available in Web Workers. The `destination` read-only property of the `Request` interface returns a string describing the type of content being requested. The string must be one of the `audio`, `audioworklet`, `document`, `embed`, `fencedframe`, `font`, `frame`, `if...
[ -0.3052321970462799, -0.5276393294334412, -0.4871219992637634, 0.6380502581596375, 0.39770981669425964, -0.298685222864151, 0.6344712972640991, 0.6779177784919739, -0.7088562846183777, 0.4601718783378601, -0.17302456498146057, 0.5775707364082336, 0.5273743867874146, -0.27708369493484497, ...
api/request/destination/index.md
API - Request - destination - Value: A string which indicates the type of content the request is asking for. This type is much broader than the usual document type values (such as `"document"` or `"manifest"`), and may include contextual cues such as `"image"` or `"worker"` or `"audioworklet"`. Possible values are: ...
[ -0.1569499671459198, -0.5392759442329407, -0.6608721613883972, 0.3558783233165741, 0.507872462272644, -0.5631773471832275, 0.4763109087944031, 0.3323782980442047, -0.18247021734714508, 0.42446890473365784, -0.1140422523021698, -0.014050256460905075, 0.7191304564476013, -0.04841341823339462...
api/request/destination/index.md
API - Request - destination - Examples: In the following snippet, we create a new request using the `Request()` constructor (for an image file in the same directory as the script), then save the request's destination: Example: const myRequest = new Request("flowers.jpg"); const myDestination = myRequest.destination;...
[ -0.23757734894752502, -0.4171774387359619, 0.21295879781246185, 0.2089780569076538, 0.33285561203956604, -1.122039556503296, -0.3034225404262543, 0.37756410241127014, 0.13995197415351868, -0.31467485427856445, -0.5432483553886414, 0.3079339563846588, 0.3225805461406708, 0.3210268020629883,...
api/request/targetaddressspace/index.md
API - Request - targetAddressSpace: Note: This feature is available in Web Workers. The `targetAddressSpace` read-only property of the `Request` interface returns the request's target address space, which indicates whether it is intended to be a loopback, local, or public request.
[ -0.20122136175632477, 0.3178047835826874, -0.3991740942001343, -0.016441719606518745, 0.45902442932128906, -0.8692643642425537, 0.38497647643089294, -0.3780515491962433, 0.49319887161254883, 0.29848024249076843, -0.32373636960983276, 0.6335151195526123, 0.20669697225093842, -0.769743800163...
api/request/targetaddressspace/index.md
API - Request - targetAddressSpace - Value: An enumerated value, which can be one of: - `local`: The request is to a local address, which is only accessible on the local network; its target will differ on different networks. For example, `192.168.0.1`. - `loopback`: The request is to a loopback address, which is only...
[ 0.057548847049474716, 0.007578900083899498, 0.4145086705684662, -0.519097089767456, 0.7673676013946533, -1.0860649347305298, 0.7040739059448242, -0.4475090205669403, 0.6910452246665955, 0.39305028319358826, -0.10379047691822052, 0.65692138671875, -0.11003042012453079, -0.4430156350135803, ...
api/request/targetaddressspace/index.md
API - Request - targetAddressSpace - Description: In browsers that support the Local Network Access specification, loopback and local requests are gated behind specific permissions — `local-network` and `loopback-network`, respectively. Requiring user permissions for such requests mitigates the risk of cross-site requ...
[ 0.6866568326950073, 0.02316759154200554, -0.05701304227113724, 0.10105301439762115, 1.01052987575531, -0.8543481230735779, 0.7110406756401062, 0.2433989942073822, 0.34809979796409607, 0.6352630257606506, -0.6140075922012329, 0.37277549505233765, 0.007453151047229767, -0.4910750389099121, ...
api/request/targetaddressspace/index.md
API - Request - targetAddressSpace - Examples - Basic usage: Example: const req = new Request("http://localhost:8888", { method: "get", mode: "cors", targetAddressSpace: "loopback", }); console.log(req.targetAddressSpace); // loopback fetch(req);
[ -0.30645251274108887, -0.1400415599346161, -0.008100586012005806, 0.043366268277168274, 0.07845547795295715, -0.9823139309883118, -0.08690039813518524, -1.4445747137069702, 0.40900126099586487, 0.001089668832719326, -0.5948410630226135, 0.3130367696285248, 0.2517567574977875, -0.3328343033...
api/compressionstream/compressionstream/index.md
API - CompressionStream: Note: This feature is available in Web Workers. The `CompressionStream()` constructor creates a new `CompressionStream` object which compresses a stream of data.
[ 0.17570722103118896, -0.38850608468055725, -0.5686259865760803, 0.21424341201782227, 0.21332183480262756, -1.7892754077911377, 0.4455604553222656, 0.8836769461631775, -0.6189184188842773, 0.7477672100067139, -0.33032190799713135, -0.7987819314002991, -0.1407248079776764, 0.4756388068199157...
api/compressionstream/compressionstream/index.md
API - CompressionStream - Syntax: Example: new CompressionStream(format)
[ 0.42490431666374207, -0.794354259967804, -0.43402987718582153, -0.09305736422538757, 0.008232049643993378, -1.720581293106079, -0.08399556577205658, 0.6510971784591675, -0.2012617290019989, 0.12591595947742462, 0.06368537992238998, -1.0306012630462646, 0.08938458561897278, 0.07160586118698...
api/compressionstream/compressionstream/index.md
API - CompressionStream - Syntax - Parameters: - `format`: One of the following allowed compression formats: - `"brotli"`: Compresses the stream using the Brotli algorithm. - `"gzip"`: Compresses the stream using the GZIP format. - `"deflate"`: Compresses the stream using the DEFLATE algorithm in ZLIB Compressed...
[ 0.34254252910614014, -0.784713625907898, -0.35055264830589294, 0.12989957630634308, 0.24528351426124573, -1.3364158868789673, 1.0087541341781616, 0.4154764413833618, -0.54978346824646, 0.7385369539260864, -1.1506072282791138, -0.9920623302459717, -0.28762000799179077, -0.15165668725967407,...
api/compressionstream/compressionstream/index.md
API - CompressionStream - Syntax - Exceptions: - `TypeError`: Thrown if the format passed to the constructor is not supported.
[ 0.5146344900131226, -0.958537757396698, 0.20956522226333618, 0.422462522983551, -0.059258364140987396, -2.024531841278076, -0.4203893542289734, 0.6911600828170776, 0.03745994716882706, 0.10430236905813217, -0.4247528314590454, -0.6139989495277405, 0.0267680324614048, -0.012287788093090057,...
api/compressionstream/compressionstream/index.md
API - CompressionStream - Examples: In this example a stream is compressed using gzip compression. Example: const compressedReadableStream = inputReadableStream.pipeThrough( new CompressionStream("gzip"), );
[ 0.09791150689125061, -0.5153114795684814, 0.3091142773628235, 0.3170852065086365, 0.7241296172142029, -1.5388156175613403, -0.08452151715755463, -0.02137981541454792, -0.43571698665618896, 0.8698593378067017, -0.45701706409454346, -1.1444147825241089, 0.10157521069049835, -0.67632120847702...
api/webrtc_api/using_data_channels/index.md
API - WebRTC API - Using data channels: In this guide, we'll examine how to add a data channel to a peer connection, which can then be used to securely exchange arbitrary data; that is, any kind of data we wish, in any format we choose. Note: Since all WebRTC components are required to use encryption, any data transm...
[ 0.3493335545063019, -0.635469377040863, -0.6478675603866577, 0.8718698620796204, -0.03796186298131943, -0.16149824857711792, 0.03670820593833923, 0.44150370359420776, 0.0025818943977355957, 0.14783388376235962, -0.8341007828712463, 0.41121724247932434, 0.1852351725101471, -0.37529227137565...
api/webrtc_api/using_data_channels/index.md
API - WebRTC API - Using data channels - Creating a data channel: The underlying data transport used by the `RTCDataChannel` can be created in one of two ways: - Let WebRTC create the transport and announce it to the remote peer for you (by causing it to receive a `datachannel` event). This is the easy way, and works...
[ 0.7196732759475708, -0.5691508650779724, -0.4214918911457062, 1.1584373712539673, 0.2077564299106598, -0.9480432868003845, -0.019515275955200195, 0.5793886184692383, -0.07091385126113892, 0.4068557322025299, -0.6373592019081116, 0.22295108437538147, 0.29907283186912537, 0.4358428716659546,...
api/webrtc_api/using_data_channels/index.md
API - WebRTC API - Using data channels - Creating a data channel - Automatic negotiation: Often, you can allow the peer connection to handle negotiating the `RTCDataChannel` connection for you. To do this, call `createDataChannel()` without specifying a value for the `negotiated` property, or specifying the property w...
[ 0.3340623676776886, -0.9731141328811646, -0.14991790056228638, 1.187317967414856, 0.4394681453704834, -0.8914714455604553, 0.6333000659942627, 0.8347804546356201, 0.12383514642715454, 0.431588351726532, -0.955047607421875, 0.3863219618797302, -0.17526377737522125, -0.05341051518917084, 0...
api/webrtc_api/using_data_channels/index.md
API - WebRTC API - Using data channels - Creating a data channel - Manual negotiation: To manually negotiate the data channel connection, you need to first create a new `RTCDataChannel` object using the `createDataChannel()` method on the `RTCPeerConnection`, specifying in the options a `negotiated` property set to `t...
[ 0.3046102523803711, -1.1734340190887451, -0.23672322928905487, 0.8777483105659485, 0.21087035536766052, -1.1200287342071533, 0.7186049222946167, 0.9846912622451782, 0.3489263653755188, 0.6722644567489624, -1.048142910003662, -0.46039918065071106, 0.22452247142791748, 0.15778738260269165, ...
api/webrtc_api/using_data_channels/index.md
API - WebRTC API - Using data channels - Buffering: WebRTC data channels support buffering of outbound data. This is handled automatically. While there's no way to control the size of the buffer, you can learn how much data is currently buffered, and you can choose to be notified by an event when the buffer starts to ...
[ -0.10709259659051895, -0.5022708177566528, -0.12158646434545517, 0.8762487769126892, 0.21975654363632202, -1.3701125383377075, -0.22264240682125092, 1.0768197774887085, 0.4157092571258545, 0.24889016151428223, -1.4919867515563965, 0.48606443405151367, -0.15107864141464233, 0.42292350530624...
api/webrtc_api/using_data_channels/index.md
API - WebRTC API - Using data channels - Understanding message size limits: You should keep message sizes moderately small. While most modern browsers support sending messages of at least 256 kilobytes, there are downsides to sending large messages, especially when message interleaving is not available. Without messag...
[ 0.34561610221862793, -0.4130685329437256, -0.4308762550354004, -0.2591956853866577, 0.0380435585975647, -1.4604098796844482, -0.13760243356227875, 0.14273236691951752, 0.6374573111534119, -0.37935909628868103, -0.42834243178367615, 0.8294774889945984, 0.32989731431007385, 0.214234232902526...
api/webrtc_api/using_data_channels/index.md
API - WebRTC API - Using data channels - Security: All data transferred using WebRTC is encrypted. In the case of `RTCDataChannel`, the encryption used is Datagram Transport Layer Security (DTLS), which is based on Transport Layer Security (TLS). Since TLS is used to secure every HTTPS connection, any data you send on...
[ -0.12714816629886627, -0.3422166705131531, -0.5670956969261169, 0.411749929189682, 0.11755979061126709, -1.042844533920288, -0.359322726726532, 0.7724226117134094, -0.10959111154079437, -0.25128084421157837, -0.7883593440055847, 0.588291347026825, 0.3902268707752228, -0.4489014148712158, ...
api/fenced_frame_api/index.md
API - Fenced frame API: Warning: This feature is currently opposed by one browser vendor. See the Standards positions section below for details. The Fenced Frame API provides functionality for controlling content embedded in `fencedframe` elements.
[ 0.24752460420131683, -0.9023526906967163, 0.4423970878124237, 0.5307542681694031, 0.06441137194633484, -1.6710339784622192, -0.6888167262077332, 0.5564241409301758, -0.05948830023407936, 0.41409632563591003, -0.8347159624099731, -0.3176012337207794, 0.30378618836402893, 0.4109426736831665,...
api/fenced_frame_api/index.md
API - Fenced frame API - Concepts and usage: One major source of privacy and security problems on the web is content embedded in `iframe` elements. Historically `<iframe>`s have been used to set third-party cookies, which can be used to share information and track users across sites. In addition, content embedded in a...
[ 0.7845690846443176, -0.2802450656890869, 0.15111035108566284, -0.06992220878601074, 0.3419858515262604, -0.8532004952430725, 0.5989161133766174, 1.412000060081482, -0.9525660872459412, 0.053361695259809494, -0.40347760915756226, 0.8263465166091919, 0.07547181099653244, 0.3714946210384369, ...
api/fenced_frame_api/index.md
API - Fenced frame API - Concepts and usage - Use cases: `<fencedframe>`s are used by other APIs to embed different types of cross-site content or collect data, fulfilling different use cases in a privacy-preserving manner. Most of these previously relied on third-party cookies or other mechanisms that were bad for pr...
[ 0.5224897265434265, -0.2665400803089142, -0.23815588653087616, 0.12487052381038666, 0.5836492776870728, -0.7457217574119568, 0.1315281093120575, 1.3997552394866943, -0.26572176814079285, 0.38814863562583923, -0.5103047490119934, 0.8685400485992432, -0.10603697597980499, 0.05324365943670273...
api/fenced_frame_api/index.md
API - Fenced frame API - How do `<fencedframe>`s work?: As mentioned above, you don't control the content embedded in a `fencedframe` directly via regular script. To set what content will be shown in a `<fencedframe>`, a utilizing API (such as Protected Audience or Shared Storage) generates a `FencedFrameConfig` obje...
[ 0.46327558159828186, -0.11758474260568619, 0.14488038420677185, 0.20097389817237854, 0.45412594079971313, -0.986298143863678, 0.36961740255355835, 1.838578701019287, -0.374438613653183, 0.007648402824997902, -0.299976646900177, 0.3926210403442383, -0.2930218279361725, 0.7178336977958679, ...
api/fenced_frame_api/index.md
API - Fenced frame API - How do `<fencedframe>`s work? - Accessing fenced frame functionality on the `Fence` object: Inside documents embedded in `<fencedframe>`s, JavaScript has access to a `Window.fence` property that returns a `Fence` instance for that document. This object contains several functions specifically r...
[ 0.5686112642288208, -0.5301862955093384, -0.273911714553833, 0.05103062838315964, 0.40180516242980957, -1.4223641157150269, 0.3010300099849701, 1.86082124710083, -0.3282487392425537, 0.6169014573097229, -0.36907538771629333, 0.5320014953613281, 0.2806673049926758, 0.6151819229125977, -0....
api/fenced_frame_api/index.md
API - Fenced frame API - How do `<fencedframe>`s work? - Permissions policy: Only specific features designed to be used in `<fencedframe>`s can be enabled via permissions policies set on them; other policy-controlled features are not available in this context. See Permissions policies available to fenced frames for mo...
[ 0.6902223229408264, 0.09126594662666321, 0.1534803807735443, 0.4643211364746094, 0.022375337779521942, -1.5401265621185303, -0.21322618424892426, 0.5036543607711792, 1.0581446886062622, 0.2783050835132599, -0.7437909841537476, -0.5593053102493286, 0.5794485211372375, 0.284373015165329, 0...
api/fenced_frame_api/index.md
API - Fenced frame API - How do `<fencedframe>`s work? - HTTP headers: A `Sec-Fetch-Dest` header with a value of `fencedframe` will be set for any requests made from inside a `<fencedframe>`, including child `<iframe>`s embedded within a `<fencedframe>`. Example: Sec-Fetch-Dest: fencedframe The server must set a `S...
[ 1.0495139360427856, -0.8799734711647034, -0.5227147340774536, 0.3782961070537567, -0.09133565425872803, -1.6484450101852417, 0.49760544300079346, 1.3410608768463135, -0.16956977546215057, 0.1785087287425995, -0.4502624273300171, 0.6079869270324707, -0.26692378520965576, 0.3894011676311493,...
api/fenced_frame_api/index.md
API - Fenced frame API - How do `<fencedframe>`s work? - `beforeunload` and `unload` events: `beforeunload` and `unload` events do not fire on fenced frames, because they can leak information in the form of a page deletion timestamp. Implementations aim to eliminate as many potential leakages as possible.
[ 0.15734657645225525, -0.27125632762908936, 0.10898716747760773, 0.3559122383594513, 0.3068210482597351, -1.0402560234069824, -0.4353817105293274, 0.8601489067077637, 0.14576709270477295, 0.41629427671432495, -0.7632321715354919, -0.16253629326820374, -0.003360208123922348, 0.23556897044181...
api/fenced_frame_api/index.md
API - Fenced frame API - Interfaces: - `FencedFrameConfig`: Represents the navigation of a `fencedframe`, i.e., what content will be displayed in it. A `FencedFrameConfig` is returned from a source such as the Protected Audience API and set as the value of `HTMLFencedFrameElement.config`. - `Fence`: Contains several f...
[ 1.0688958168029785, -0.8778160810470581, 0.03532933443784714, 0.29589009284973145, 0.4010774493217468, -2.2646799087524414, 0.4782293438911438, 0.8690978288650513, -0.5339440703392029, 0.3778308629989624, -0.2690528631210327, 0.0008262470364570618, 0.2864990532398224, 0.3949228525161743, ...
api/fenced_frame_api/index.md
API - Fenced frame API - Interfaces - Extensions to other interfaces: - `Navigator.deprecatedReplaceInURN()`: Substitutes specified strings inside the mapped URL corresponding to a given opaque URN or `FencedFrameConfig`'s internal `url` property. - `Window.fence`: Returns a `Fence` object instance for the current doc...
[ -0.8852341771125793, -0.39803001284599304, 0.891644299030304, 0.3178443908691406, -0.23413218557834625, -1.1288588047027588, -0.14667260646820068, 0.3101368546485901, 0.8632998466491699, 0.20415949821472168, -0.8051873445510864, -0.2734720706939697, -0.3621102273464203, 0.17973487079143524...
api/fenced_frame_api/index.md
API - Fenced frame API - Enrollment and local testing: Certain API features that create `FencedFrameConfig`s such as `Navigator.runAdAuction()` (Protected Audience API) and `WindowSharedStorage.selectURL()` (Shared Storage API), as well as other features such as `Fence.reportEvent()`, require you to enroll your site i...
[ 1.0396535396575928, 0.03224004805088043, -0.021314971148967743, -0.22646023333072662, 0.4125891923904419, -1.0528011322021484, 0.49701154232025146, 1.3376071453094482, -0.03506378456950188, 0.5273211002349854, -0.29013991355895996, 0.7428377866744995, -0.21967969834804535, 0.20848652720451...
api/fenced_frame_api/index.md
API - Fenced frame API - Examples: The following demos all make use of `<fencedframe>`s: - Shared Storage API demos (which also includes some Private Aggregation API examples) - Protected Audience API demo
[ 1.0608071088790894, -0.37068599462509155, 0.16900531947612762, 0.6953622698783875, -0.4494052827358246, -1.396825909614563, -0.5082239508628845, 0.652446448802948, -0.03347030282020569, 0.7239596247673035, -0.0009786300361156464, 0.4446879029273987, 0.09433905780315399, 0.1459866613149643,...
api/fenced_frame_api/index.md
API - Fenced frame API - Examples - Standards positions: One browser vendor opposes this specification. Known standards positions are as follows: - Mozilla (Firefox): Negative
[ -0.22584344446659088, -0.7442312836647034, -0.25391870737075806, 0.3029024302959442, 0.3721802830696106, -1.4656258821487427, -0.5510911345481873, 0.5470473170280457, -0.07464256882667542, 0.3042321801185608, -0.7081052660942078, -0.43814679980278015, 0.3839903175830841, -0.131082683801651...
api/fontfaceset/load/index.md
API - FontFaceSet - load: Note: This feature is available in Web Workers. The `load()` method of the `FontFaceSet` forces all the fonts given in parameters to be loaded.
[ 0.046519551426172256, 0.03575822710990906, -0.6208785772323608, 0.19922319054603577, -0.23899640142917633, -1.4010908603668213, 0.5740935802459717, 0.9706541299819946, 0.1170111894607544, -0.22497931122779846, -0.5225898623466492, 0.7504987120628357, 0.11198200285434723, 0.1193308830261230...
api/fontfaceset/load/index.md
API - FontFaceSet - load - Syntax: Example: load(font) load(font, text)
[ -0.6003866791725159, -0.09997650235891342, -0.14715519547462463, -0.5084728002548218, -0.08850694447755814, -0.8469246029853821, 0.19219650328159332, 0.6199601292610168, 0.1438315212726593, -0.891963005065918, -0.3735694885253906, 0.11569437384605408, -0.0043274033814668655, 0.302069634199...
api/fontfaceset/load/index.md
API - FontFaceSet - load - Syntax - Parameters: - `font`: A font specification using the CSS value syntax, e.g., "italic bold 16px Roboto" - `text` (optional): Limit the font faces to those whose Unicode range contains at least one of the characters in text. This does not check for individual glyph coverage. Defaults ...
[ -0.8843273520469666, -0.028633568435907364, -0.2108069807291031, 0.26656705141067505, -0.1202101930975914, -2.0636532306671143, 0.6557339429855347, 0.543143630027771, 0.6207084655761719, -0.44374409317970276, 0.24194607138633728, 0.43410825729370117, 0.13439151644706726, -0.156007796525955...
api/fontfaceset/load/index.md
API - FontFaceSet - load - Syntax - Return value: A `Promise` fulfilled with an `Array` of loaded `FontFace` objects. The promise is fulfilled when all the fonts are loaded; it is rejected if one of the fonts failed to load.
[ -0.2524015009403229, 0.5759065747261047, 0.06199271231889725, 0.00655851885676384, -0.21464259922504425, -1.378631353378296, 0.9111299514770508, 0.9418879151344299, -0.5049598217010498, -0.46404141187667847, -0.01952046900987625, 0.6934860944747925, -0.12971967458724976, 0.322419673204422,...
api/fontfaceset/load/index.md
API - FontFaceSet - load - Examples: The following example returns a promise that will be fulfilled or rejected according the success of loading "MyFont". The code in `then()` can assume the availability of that font. Example: document.fonts.load("12px MyFont", "ß").then(/* ... */);
[ -0.32873815298080444, -0.020257113501429558, 0.06380676478147507, -0.04012947529554367, -0.2738240361213684, -1.5171149969100952, 0.49577218294143677, 0.7136054635047913, -0.24624189734458923, -0.4465530514717102, -0.20882803201675415, 0.32709476351737976, -0.024241246283054352, 0.42379754...
api/fontfaceset/check/index.md
API - FontFaceSet - check: Note: This feature is available in Web Workers. The `check()` method of the `FontFaceSet` returns `true` if you can render some text using the given font specification without attempting to use any fonts in this `FontFaceSet` that are not yet fully loaded. This means you can use the font sp...
[ 0.241817444562912, 0.010920284315943718, -0.4486795663833618, 0.3130761384963989, 0.33767688274383545, -1.1784899234771729, 0.5445927977561951, 1.7874470949172974, -0.17788788676261902, 0.0012246882542967796, 0.2890845537185669, 0.8237496614456177, 0.672056257724762, 0.48953568935394287, ...
api/fontfaceset/check/index.md
API - FontFaceSet - check - Syntax: Example: check(font) check(font, text)
[ 0.04897596314549446, 0.5997836589813232, -1.0641043186187744, -0.8964537382125854, 0.23907044529914856, -1.3963069915771484, 0.5427384972572327, 2.266065835952759, 0.2829118072986603, -0.7445242404937744, 0.40291550755500793, 0.01746445894241333, -0.08467771857976913, 0.066356360912323, ...
api/fontfaceset/check/index.md
API - FontFaceSet - check - Syntax - Parameters: - `font`: A font specification using the syntax for the CSS `font` property, for example `"italic bold 16px Roboto"` - `text` (optional): Limit the font faces to those whose Unicode range contains at least one of the characters in text. This does not check for individua...
[ -0.3981325924396515, 0.42230117321014404, -0.3362796902656555, 0.10203325748443604, 0.2566511631011963, -1.9903500080108643, 0.6113446950912476, 0.5836455225944519, 0.5966675281524658, -0.35157597064971924, 0.2772396504878998, 0.17331400513648987, 0.027607034891843796, 0.05943825840950012,...
api/fontfaceset/check/index.md
API - FontFaceSet - check - Syntax - Return value: A `Boolean` value that is `true` if rendering text with the given font specification will not attempt to use any fonts in this `FontFaceSet` that are not yet fully loaded. This means that all fonts in this `FontFaceSet` that are matched by the given font specificatio...
[ -0.7706887722015381, -0.171669140458107, 0.012794040143489838, 0.12429733574390411, -0.4391900897026062, -1.333508849143982, 0.3696225881576538, 0.7890952229499817, 0.733924150466919, -0.551281213760376, -0.45978236198425293, 0.35425177216529846, 0.3717571794986725, 0.5052230358123779, -...
api/fontfaceset/check/index.md
API - FontFaceSet - check - Examples: In the following example, we create a new `FontFace` and add it to the `FontFaceSet`: Example: const font = new FontFace("molot", 'url("/shared-assets/fonts/molot.woff2")', { style: "normal", weight: "400", stretch: "condensed", }); document.fonts.add(font);
[ -0.19403916597366333, -0.2457488775253296, -0.03543385863304138, 0.031054481863975525, -0.4085591435432434, -1.0579053163528442, 0.04126223921775818, 1.1485357284545898, 0.045666441321372986, -0.29583030939102173, -0.7385762333869934, 0.47364985942840576, -0.03288554772734642, 0.2223374545...
api/fontfaceset/check/index.md
API - FontFaceSet - check - Examples - Unloaded fonts: The font is not yet loaded, so `check("12px molot")` returns `false`, indicating that if we try to use the given font specification, we will trigger a font load: Example: console.log(document.fonts.check("12px molot")); // false: the matching font is in the set,...
[ -0.4710294306278229, 0.07836931943893433, -0.9725897312164307, 0.341582328081131, -0.4614182710647583, -1.7018414735794067, 0.5126329660415649, 0.6545719504356384, -0.01840619370341301, -0.6127945780754089, 0.1370105892419815, 0.4224749505519867, 0.2948766052722931, 0.04575621336698532, ...
api/fontfaceset/check/index.md
API - FontFaceSet - check - Examples - System fonts: If we specify only a system font in the argument to `check()`, it returns `true`, because we can use the system font without loading any fonts from the set: Example: console.log(document.fonts.check("12px Courier")); // true: the matching font is a system font
[ -0.10404758900403976, 0.014150392264127731, -0.682369589805603, 0.23651978373527527, -0.40769442915916443, -2.725715160369873, 0.49349164962768555, 1.1501750946044922, 0.25054726004600525, -0.2884455621242523, -0.13269776105880737, 0.10989654064178467, 0.18895694613456726, 0.19263553619384...
api/fontfaceset/check/index.md
API - FontFaceSet - check - Examples - Nonexistent fonts: If we specify a font that is not in the `FontFaceSet` and is not a system font, `check()` returns `true`, because in this situation we will not rely on any fonts from the set: Example: console.log(document.fonts.check("12px i-dont-exist")); // true: the match...
[ -0.18722575902938843, -0.24934886395931244, -0.012984637171030045, -0.291797399520874, -0.7101255655288696, -1.8608403205871582, 0.058924175798892975, 0.7500523924827576, 0.4784991145133972, -0.45004960894584656, -0.27122747898101807, 0.30862462520599365, 0.2466679811477661, 0.034290999174...
api/fontfaceset/check/index.md
API - FontFaceSet - check - Examples - System and unloaded fonts: If we specify both a system font and a font in the set that is not yet loaded, then `check()` returns `false`: Example: console.log(document.fonts.check("12px molot, Courier")); // false: `molot` is in the set but not yet loaded
[ -0.42074912786483765, 0.06609023362398148, -1.015438437461853, 0.17702117562294006, -0.08126959204673767, -1.972122311592102, 0.9636164903640747, 1.1464895009994507, -0.5045309066772461, -0.7156585454940796, 0.20361782610416412, 0.13193954527378082, 0.30540335178375244, 0.20054581761360168...
api/fontfaceset/check/index.md
API - FontFaceSet - check - Examples - Fonts that are loading: If we specify a font from the set that is still loading, `check()` returns `false`: Example: function check() { font.load(); console.log(document.fonts.check("12px molot")); // false: font is still loading console.log(font.status); // "loading"...
[ -0.17914758622646332, -0.1585494428873062, -0.690135657787323, 0.11137279868125916, -0.3195499777793884, -1.9617877006530762, 0.13472439348697662, 1.0091177225112915, 0.15226134657859802, -0.5807648301124573, -0.060834746807813644, 0.30920931696891785, 0.22962462902069092, 0.19419476389884...
api/fontfaceset/check/index.md
API - FontFaceSet - check - Examples - Fonts that have loaded: If we specify a font from the set that has loaded, `check()` returns `true`: Example: async function check() { await font.load(); console.log(document.fonts.check("12px molot")); // true: font has finished loading console.log(font.status); // "...
[ 0.19245414435863495, -0.20920561254024506, -0.8212898969650269, 0.09533654153347015, -0.413169801235199, -1.8397560119628906, 0.2465803623199463, 0.9091466665267944, 0.020314767956733704, -0.6185727119445801, 0.03120182454586029, 0.3506649136543274, 0.4872124195098877, 0.25570157170295715,...
api/fontfaceset/foreach/index.md
API - FontFaceSet - forEach: Note: This feature is available in Web Workers. The `forEach()` method of the `FontFaceSet` interface executes a provided function for each value in the `FontFaceSet` object.
[ -0.2043333202600479, 0.22374437749385834, -0.36475300788879395, 0.21875062584877014, -0.19989854097366333, -1.2890430688858032, 0.6351264715194702, 1.6904557943344116, -0.1612885296344757, -0.1431998461484909, -0.34724119305610657, 0.7269265055656433, 0.3840683400630951, 0.7835469245910645...
api/fontfaceset/foreach/index.md
API - FontFaceSet - forEach - Syntax: Example: forEach(callbackFn) forEach(callbackFn, thisArg)
[ -0.035917919129133224, 0.17868170142173767, -0.24533821642398834, -0.9593822360038757, -0.5016111731529236, -1.6543482542037964, 1.3042930364608765, 1.8421103954315186, -0.04199746623635292, -0.4823569655418396, 0.009752757847309113, 0.5242237448692322, -0.8339481353759766, 0.3471097052097...
api/fontfaceset/foreach/index.md
API - FontFaceSet - forEach - Syntax - Parameters: - `callbackFn`: Function to execute for each element, taking three arguments: - `value`, `key`: The current element being processed in the `FontFaceSet`. As there are no keys in a `FontFaceSet`, the value is passed for both arguments. - `set`: The `FontFaceSet` wh...
[ 0.33218690752983093, -0.08001421391963959, -0.3594210147857666, 0.14843812584877014, -0.11803995072841644, -1.636852741241455, 1.519505262374878, 1.2801566123962402, -0.21317245066165924, 0.06267417967319489, -0.28727641701698303, 0.6983832716941833, -0.011414356529712677, 0.57942509651184...
api/fontfaceset/foreach/index.md
API - FontFaceSet - forEach - Syntax - Return value: `undefined`.
[ -0.7270432114601135, 0.1674533486366272, 0.14075596630573273, -1.2540065050125122, -0.08696584403514862, -0.935382604598999, 0.051200829446315765, 0.44038593769073486, -0.05353696644306183, -0.3477296531200409, 0.10703779757022858, 0.5294792056083679, 0.08818111568689346, 0.520915210247039...