file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
api/url/host/index.md
API - URL - host: Note: This feature is available in Web Workers. The `host` property of the `URL` interface is a string containing the host, which is the `hostname`, and then, if the `port` of the URL is nonempty, a `":"`, followed by the `port` of the URL. If the URL does not have a `hostname`, this property contai...
[ -0.06838460266590118, -0.10888129472732544, -0.19105596840381622, 0.2020125538110733, 0.21317732334136963, -1.683341145515442, 1.4187735319137573, 0.047310441732406616, 0.4568765163421631, -0.30745142698287964, -0.5070548057556152, 0.8636695742607117, 0.26932036876678467, -0.48345294594764...
api/url/host/index.md
API - URL - host - Value: A string.
[ -0.7826824188232422, -0.05331163853406906, -0.9134857058525085, -0.31645557284355164, -0.26784658432006836, -0.4786282777786255, 1.3010004758834839, 0.7680327892303467, -0.1926429569721222, -0.7091225385665894, 0.14933031797409058, 0.21743503212928772, -0.5437185764312744, -0.1778270900249...
api/url/host/index.md
API - URL - host - Examples: Example: let url = new URL("https://developer.mozilla.org/en-US/docs/Web/API/URL/host"); console.log(url.host); // "developer.mozilla.org" url = new URL("https://developer.mozilla.org:443/en-US/docs/Web/API/URL/host"); console.log(url.host); // "developer.mozilla.org" // The port number ...
[ 0.017069300636649132, -0.6158413887023926, -0.4490233063697815, 0.40842166543006897, -0.5412119626998901, -1.0280141830444336, -0.2430410534143448, 0.0035793110728263855, 0.4190925657749176, -0.29637184739112854, -0.28814104199409485, 0.8945536613464355, -0.02456693723797798, -0.1014860719...
api/topics_api/index.md
API - Topics API: Non-standard: This feature is not standardized. Deprecated: This feature is no longer recommended. Warning: This feature is currently opposed by two browser vendors. See the Standards positions section below for details. Note: An Enrollment process is required to use the Topics API in your applicat...
[ 0.7208734750747681, -0.6984090805053711, -0.2005997598171234, 0.46153682470321655, 0.695895254611969, -1.1391546726226807, 0.2842743992805481, 1.034395456314087, -0.4551970362663269, 0.5270146727561951, -0.4852926731109619, 1.005126953125, 0.47328925132751465, 0.44407087564468384, -0.403...
api/topics_api/index.md
API - Topics API - Concepts and usage: A typical mechanism for advertising on the web involves a user visiting publisher sites that use an advertising technology (ad tech) platform to publish ads for an advertiser's products or services. The publisher is paid to display the ads, which helps to fund their content, and ...
[ 0.6213722825050354, -0.6702104806900024, 0.04097931087017059, 0.30570662021636963, 0.586149275302887, -1.0146708488464355, 0.276447057723999, 1.192615032196045, -0.20446531474590302, 0.8291845917701721, -0.45782849192619324, 0.5965954661369324, 0.4206412732601166, 0.5549491047859192, -0....
api/topics_api/index.md
API - Topics API - Concepts and usage - What topics are there?: The available top topics that the browser could calculate are stored in a publicly available taxonomy of interests. The initial taxonomy has been proposed by Chrome, with the intention that it becomes a resource maintained by trusted ecosystem contributor...
[ 0.20401474833488464, -1.060762882232666, 0.6064113974571228, 1.4124290943145752, 0.03160926699638367, -1.6077461242675781, -0.5287418365478516, -0.1584530770778656, 0.8032453060150146, 0.3026030361652374, -0.4045315086841583, -0.048105813562870026, -0.02791011519730091, -0.0012332834303379...
api/topics_api/index.md
API - Topics API - Interfaces: The Topics API has no distinct interfaces of its own.
[ -0.23858968913555145, -1.0841350555419922, -0.037173427641391754, 0.2505411207675934, -0.3243911862373352, -1.267842173576355, 0.31665390729904175, -0.10105210542678833, 1.0479145050048828, -0.3128567636013031, -0.10168947279453278, 0.10346846282482147, 0.39224645495414734, 0.8294806480407...
api/topics_api/index.md
API - Topics API - Interfaces - Extensions to other interfaces: - `Document.browsingTopics()`: Returns a promise that fulfills with an array of objects representing the top topics for the user, one from each of the last three epochs. By default, the method also causes the browser to record the current page visit as ob...
[ 0.1294720619916916, -0.32612845301628113, 0.08043225854635239, 1.0950040817260742, 0.06269191205501556, -1.2646946907043457, -0.07726629823446274, 0.022433754056692123, 0.1951509416103363, 0.3735767900943756, -0.3177105188369751, 0.2019118070602417, 0.7543116211891174, 0.2577919065952301, ...
api/topics_api/index.md
API - Topics API - HTML elements: - `iframe`, the `browsingtopics` attribute: A boolean attribute that, if present, specifies that the selected topics for the current user should be sent with the request for the `iframe`'s source.
[ 0.024095065891742706, -0.6785183548927307, 0.3113647401332855, 0.657489001750946, -0.23311004042625427, -1.3640490770339966, 0.20431935787200928, -0.46518728137016296, 0.12169791758060455, -0.027677219361066818, -0.8209786415100098, -0.4706587493419647, 0.21998894214630127, 0.5444421172142...
api/topics_api/index.md
API - Topics API - HTTP headers: - `Sec-Browsing-Topics`: Sends the selected topics for the current user along with a request, which are used by an ad tech platform to choose a personalized ad to display. - `Observe-Browsing-Topics`: Used to mark topics of interest inferred from a calling site's URL (i.e., the site wh...
[ 0.675632119178772, -0.36169955134391785, -0.008635040372610092, 0.8884556293487549, 0.7095168828964233, -1.6382626295089722, 0.30322104692459106, 0.8335195779800415, -0.5495054721832275, 0.6389322876930237, -0.22916826605796814, 0.6859118938446045, 0.737197995185852, 0.32138875126838684, ...
api/topics_api/index.md
API - Topics API - Enrollment: To use the Topics API in your sites, you must specify it in a privacy sandbox enrollment process. If you don't do this, the following sub-features won't work: - The promise returned by the `Document.browsingTopics()` method will reject with a `NotAllowedError` `DOMException`. - Creating...
[ 0.4079083800315857, -1.5169875621795654, 0.0860738754272461, 0.46431130170822144, 0.2572964131832123, -1.4481678009033203, -0.0020138416439294815, 0.3295888602733612, 0.4471343755722046, -0.0037131328135728836, -0.25358617305755615, -0.09491254389286041, 1.1142621040344238, 0.2692296504974...
api/topics_api/index.md
API - Topics API - Enrollment - Standards positions: Two browser vendors oppose this specification. Known standards positions are as follows: - Mozilla (Firefox): Negative - Apple (Safari): Negative
[ 0.13013331592082977, -0.7764808535575867, -0.10343075543642044, 0.10723018646240234, -0.2553809583187103, -0.9915814399719238, -0.4702165424823761, 0.22124366462230682, 0.6897395849227905, -0.01756003126502037, -0.3303934633731842, -0.42151451110839844, 0.6006196737289429, -0.3683546483516...
api/rtcencodedaudioframe/getmetadata/index.md
API - RTCEncodedAudioFrame - getMetadata: Note: This feature is available in Web Workers. The `getMetadata()` method of the `RTCEncodedAudioFrame` interface returns an object containing the metadata associated with the frame. This includes information about the frame, such as the audio encoding used, the synchroniza...
[ -0.12383037805557251, 0.17020918428897858, -1.3525354862213135, 0.42081236839294434, -0.10453764349222183, -0.9454814195632935, -0.23867890238761902, 1.2877455949783325, 0.3283008933067322, 0.10492759943008423, -0.8382276296615601, -0.2794376611709595, -0.22390857338905334, 0.0063870176672...
api/rtcencodedaudioframe/getmetadata/index.md
API - RTCEncodedAudioFrame - getMetadata - Syntax: Example: getMetadata()
[ -0.603561282157898, 0.7689277529716492, -0.40641331672668457, 0.32414358854293823, -0.014082908630371094, -0.6265861392021179, -0.036825940012931824, 0.043521761894226074, -0.01825995370745659, -0.19963376224040985, -0.4121660590171814, -0.5903403162956238, -0.7031790614128113, 0.374626398...
api/rtcencodedaudioframe/getmetadata/index.md
API - RTCEncodedAudioFrame - getMetadata - Syntax - Parameters: None.
[ 0.12881909310817719, 0.6170634031295776, -0.6034091114997864, 0.2716000974178314, -0.10057973861694336, -0.4105910658836365, 0.2246151864528656, 0.7119157910346985, -0.1942896544933319, -0.2246476262807846, -0.46018728613853455, -0.48065507411956787, -0.8257848620414734, 0.2369585633277893...
api/rtcencodedaudioframe/getmetadata/index.md
API - RTCEncodedAudioFrame - getMetadata - Syntax - Return value: An object with the following properties: - `audioLevel`: A number representing the audio level of this frame. The value is between 0 and 1 inclusive (linear), where 1.0 represents 0 dBov (decibels relative to full scale (DBFS)), 0 represents silence, a...
[ 0.45468348264694214, -0.12638118863105774, -0.5219197273254395, 0.8074994087219238, 0.18785929679870605, -1.0287597179412842, 0.151739239692688, 0.6335446238517761, 0.4860422611236572, 0.06358332931995392, -1.1112089157104492, -0.20456255972385406, -0.5861222743988037, -0.27265220880508423...
api/rtcencodedaudioframe/getmetadata/index.md
API - RTCEncodedAudioFrame - getMetadata - Examples - Getting frame metadata: This example WebRTC encoded transform implementation shows how you might get the frame metadata in a `transform()` function and log it. Example: addEventListener("rtctransform", (event) => { const transform = new TransformStream({ as...
[ 0.3871960937976837, -0.14394107460975647, -0.4135998785495758, 0.47392135858535767, 0.22909361124038696, -1.5004538297653198, 0.4133067727088928, 0.7259435653686523, -0.10560710728168488, 0.5956657528877258, -0.5133678913116455, -0.1764761209487915, -0.3607144355773926, -0.3473607301712036...
api/closeevent/code/index.md
API - CloseEvent - code: Note: This feature is available in Web Workers. The `code` read-only property of the `CloseEvent` interface returns a WebSocket connection close code indicating the reason the connection was closed.
[ -0.19534069299697876, 0.6165568828582764, -0.2714330554008484, -0.28083765506744385, -0.1882028877735138, -1.0857826471328735, 0.060353003442287445, 0.21749001741409302, -0.5951679944992065, 0.5535556077957153, -0.4425906836986542, 0.3925284147262573, 0.1773121953010559, 0.4523234367370605...
api/closeevent/code/index.md
API - CloseEvent - code - Value: An integer WebSocket connection close code in the range `1000` - `4999`, indicating the reason the connection was closed.
[ -1.0140212774276733, -0.3113718628883362, -0.2785857319831848, -0.060032445937395096, -0.030520740896463394, -0.6759446263313293, 0.027179066091775894, -0.07742245495319366, -1.049746036529541, 0.6633285880088806, -0.39438652992248535, 0.8198686242103577, 0.09143998473882675, 0.42909845709...
api/closeevent/code/index.md
API - CloseEvent - code - Examples: The following example prints the value of `code` to the console. Example: WebSocket.onclose = (event) => { console.log(event.code); };
[ -0.15994015336036682, 0.07935675978660583, -0.4452207386493683, -0.10886695235967636, -0.14417222142219543, -1.4882768392562866, 0.5015140771865845, 0.1579314023256302, -0.3801610469818115, 0.3542761504650116, 0.054757073521614075, 0.9530338048934937, 0.11942249536514282, 0.169801756739616...
api/closeevent/reason/index.md
API - CloseEvent - reason: Note: This feature is available in Web Workers. The `reason` read-only property of the `CloseEvent` interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
[ -0.5488007664680481, 0.37904638051986694, 0.08233867585659027, -0.44094154238700867, -0.32025593519210815, -1.2034492492675781, 0.3287016749382019, 0.2192750722169876, -0.44207048416137695, 0.485873818397522, -0.29665613174438477, 0.40636110305786133, 0.8802364468574524, 0.4612345695495605...
api/closeevent/reason/index.md
API - CloseEvent - reason - Value: A string.
[ -0.4812410771846771, -0.16691206395626068, -0.4948526918888092, -1.3518284559249878, -0.44013768434524536, -0.8795813322067261, 0.5875127911567688, 0.8461898565292358, -0.03246685117483139, -0.18560472130775452, 0.5978171229362488, 0.08582684397697449, -0.21456904709339142, 0.5849599838256...
api/closeevent/reason/index.md
API - CloseEvent - reason - Examples: The following example prints the value of `reason` to the console. Example: WebSocket.onclose = (event) => { console.log(event.reason); };
[ -0.3405839502811432, -0.17544084787368774, -0.251772403717041, -0.1807527244091034, -0.19424429535865784, -1.515561580657959, 0.12206725776195526, -0.13543331623077393, -0.01461096853017807, 0.22688992321491241, 0.2549794018268585, 0.8854584693908691, 0.6323146820068359, 0.2725157737731933...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API: The Picture-in-Picture API allow websites to create a floating, always-on-top video window. This allows users to continue consuming media while they interact with other sites or applications on their device. Note: The Document Picture-in-Picture API extends the Picture-in-Picture API to ...
[ 0.31831949949264526, -0.04637661948800087, -0.07488113641738892, 0.735273540019989, 0.9557709693908691, -1.0023269653320312, 0.29977306723594666, 1.374505639076233, -0.30590811371803284, 0.18422822654247284, 0.11206720769405365, 0.9834235906600952, -0.058258287608623505, 0.6130212545394897...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Interfaces: - `PictureInPictureWindow`: Represents the floating video window; contains `width` and `height` properties, and an `onresize` event handler property. - `PictureInPictureEvent`: Represents picture-in-picture-related events, including `enterpictureinpicture`, `leavepictureinpic...
[ -0.9902440905570984, -0.007384661119431257, -0.02640853263437748, 0.7871530652046204, 0.3372572064399719, -0.7227373123168945, 0.02847140282392502, 0.414369136095047, 0.6139786839485168, -0.1303274780511856, 0.38338688015937805, 0.10094915330410004, 0.536785900592804, 0.2829597294330597, ...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Instance methods: The Picture-in-Picture API adds methods to the `HTMLVideoElement` and `Document` interfaces to allow toggling of the floating video window.
[ -0.6316193342208862, -0.5275989174842834, 0.3795705735683441, 0.9996721744537354, 0.3150041103363037, -0.6068816781044006, -0.2443210631608963, 0.6759935021400452, -0.28234511613845825, -0.3195456862449646, 0.14051689207553864, -0.3239755928516388, 0.7620120048522949, 0.40112823247909546, ...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Instance methods - Instance methods on the HTMLVideoElement interface: - `HTMLVideoElement.requestPictureInPicture()`: Requests that the user agent enters the video into picture-in-picture mode
[ -0.3171995282173157, -0.3053955137729645, 0.1585434526205063, 0.7721802592277527, 0.22081312537193298, -0.9801649451255798, -0.43937599658966064, 0.7202720046043396, 0.2991482615470886, -0.6684389710426331, -0.2971654534339905, -0.0486217737197876, 1.0131285190582275, -0.23767149448394775,...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Instance methods - Instance methods on the Document interface: - `Document.exitPictureInPicture()`: Requests that the user agent returns the element in picture-in-picture mode back into its original box.
[ -0.3292616307735443, -0.05758864805102348, 0.006480857729911804, 0.611213743686676, 0.20585697889328003, -1.1628128290176392, -0.1560886800289154, 0.44440653920173645, 0.581386148929596, -0.6351867318153381, -0.48106974363327026, -0.12772326171398163, 0.579849362373352, -0.2247080355882644...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Instance properties: The Picture-in-Picture API augments the `HTMLVideoElement`, `Document`, and `ShadowRoot` interfaces with properties that can be used to determine if the floating video window mode is supported and available, if picture-in-picture mode is currently active, and which v...
[ -0.2422245293855667, -0.7902800440788269, -0.5548197627067566, 1.16358482837677, -0.0175471231341362, -0.47497668862342834, -0.20164339244365692, 1.2742905616760254, -0.3064354956150055, -0.3491628170013428, -0.3700478672981262, -0.0004936978220939636, 1.3020621538162231, 0.407118469476699...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Instance properties - Instance properties on the HTMLVideoElement interface: - `HTMLVideoElement.disablePictureInPicture`: The `disablePictureInPicture` property will provide a hint to the user agent to not suggest the picture-in-picture to users or to request it automatically.
[ -0.48463234305381775, 0.02310667559504509, 0.6097077131271362, 0.8000801801681519, -0.016824334859848022, -1.4546358585357666, -0.3321436941623688, 0.8373768925666809, 0.3689824938774109, -0.7030994296073914, -0.887691080570221, 0.09268732368946075, 1.1178343296051025, -0.18379934132099152...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Instance properties - Instance properties on the Document interface: - `Document.pictureInPictureEnabled`: The `pictureInPictureEnabled` property tells you whether or not it is possible to engage picture-in-picture mode. This is `false` if picture-in-picture mode is not available for any...
[ -0.3144087791442871, -0.2447841614484787, 0.579988956451416, 0.6933462023735046, 0.3561960756778717, -0.7246201038360596, -0.3042151927947998, 0.8411100506782532, 1.1745878458023071, -0.5945029854774475, -0.6054090261459351, -0.27656757831573486, 1.2622672319412231, -0.1959691047668457, ...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Instance properties - Instance properties on the Document or ShadowRoot interfaces: - `Document.pictureInPictureElement` / `ShadowRoot.pictureInPictureElement`: The `pictureInPictureElement` property tells you which `Element` is currently being displayed in the floating window (or in the...
[ -0.6177921295166016, -0.453616738319397, 0.37918582558631897, 0.4578225016593933, 0.11913113296031952, -1.1160484552383423, -0.18286767601966858, 0.6442750692367554, 0.8708390593528748, -0.31490951776504517, -0.4297027885913849, 0.4103206992149353, 0.5250551700592041, 0.3021274507045746, ...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Events: The Picture-in-Picture API defines three events, which can be used to detect when picture-in-picture mode is toggled and when the floating video window is resized. - `enterpictureinpicture`: Sent to a `HTMLVideoElement` when it enters picture-in-picture mode. - `leavepictureinpi...
[ 0.12167882919311523, -0.6742371916770935, -0.3543754816055298, 0.9875943660736084, 0.23907870054244995, -0.7753622531890869, -0.6813275814056396, 0.8716204762458801, -0.2136906087398529, 0.12422779947519302, 0.5440776348114014, 0.4765346050262451, 0.9037073850631714, 0.567841112613678, 0...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Adding Controls: If media action handlers have been set via the Media Session API, then appropriate controls for those actions will be added by the browser to the picture-in-picture overlay. For example, if a `"nexttrack"` action has been set, then a skip button might be displayed in the...
[ -0.6509537696838379, -0.9422420859336853, -0.6994106769561768, 1.1401365995407104, 0.29604318737983704, -0.7724390625953674, -0.49492934346199036, 0.9092885851860046, 0.27998191118240356, -0.29654160141944885, -0.17508560419082642, 0.26531529426574707, 0.7426644563674927, 1.035556197166442...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Controlling styling: The `:picture-in-picture` CSS pseudo-class matches the video element currently in picture-in-picture mode, allowing you to configure your stylesheets to automatically adjust the size, style, or layout of content when a video switches back and forth between picture-in...
[ -0.8278241753578186, -0.3951677083969116, -0.3727251887321472, 0.7448254227638245, 0.6247413158416748, -0.6741381287574768, -0.4743933081626892, 1.1409974098205566, 0.23976540565490723, -0.20271092653274536, 0.031118646264076233, 0.18367429077625275, 0.629502534866333, -0.1311696171760559,...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Controlling access: The availability of picture-in-picture mode can be controlled using Permissions Policy. The picture-in-picture mode feature is identified by the string `"picture-in-picture"`, with a default allowlist value of `*`, meaning that picture-in-picture mode is permitted in ...
[ -0.5485997200012207, -0.6208655834197998, -0.2018698900938034, 0.9768494367599487, 0.261993408203125, -0.9098747372627258, -0.2218935489654541, 1.1203471422195435, 0.7442225813865662, -0.3836555778980255, -0.7181658744812012, -0.3372083902359009, 0.5944488048553467, 0.21191740036010742, ...
api/picture-in-picture_api/index.md
API - Picture-in-Picture API - Examples - Toggling picture-in-picture mode: In this example, we have a `video` element in a web page, a `button` to toggle picture-in-picture, and an element to log information relevant for the example. The `button` element is `disabled` initially until we've determined browser support....
[ -0.30895668268203735, -0.45165908336639404, -0.6086510419845581, 1.2834954261779785, 0.7589971423149109, -0.9995397329330444, -0.22243568301200867, 1.4910997152328491, -1.2326003313064575, 0.27281734347343445, 0.27627450227737427, 0.453610360622406, 0.4733642339706421, 0.47052252292633057,...
api/mediakeysystemaccess/getconfiguration/index.md
API - MediaKeySystemAccess - getConfiguration: Secure context: This feature is available only in secure contexts (HTTPS). The `getConfiguration()` method of the `MediaKeySystemAccess` interface returns an object with the supported combination of the following configuration options: - `label` (read only): A string id...
[ -0.19444483518600464, -0.26843690872192383, -1.1163356304168701, 1.2780901193618774, 0.19752883911132812, -0.3370959162712097, 0.7093619704246521, 0.9448890686035156, 0.0795576274394989, 0.3263433575630188, -0.18341901898384094, -0.19203560054302216, -0.19580771028995514, -0.02885490097105...
api/mediakeysystemaccess/getconfiguration/index.md
API - MediaKeySystemAccess - getConfiguration - Syntax: Example: getConfiguration()
[ 0.43712300062179565, 0.22564350068569183, -1.2613846063613892, -0.4710012674331665, -0.7932109832763672, -0.6961702704429626, 0.6013756990432739, 1.0214457511901855, 0.07447303831577301, -0.19166293740272522, 1.1187235116958618, -0.5731388330459595, -0.14195936918258667, 0.3922686278820038...
api/mediakeysystemaccess/getconfiguration/index.md
API - MediaKeySystemAccess - getConfiguration - Syntax - Parameters: None.
[ -0.4142707288265228, -0.0031472649425268173, -0.4556405246257782, 0.1724606156349182, 0.11321797966957092, -0.3337031304836273, 0.5122922658920288, 1.0460588932037354, -0.40934109687805176, -0.5271492004394531, -0.12293075025081635, -0.31773141026496887, -0.688355565071106, 0.2233912646770...
api/mediakeysystemaccess/getconfiguration/index.md
API - MediaKeySystemAccess - getConfiguration - Syntax - Return value: An object.
[ 0.43906131386756897, -0.17977847158908844, -1.305284857749939, -0.5914968848228455, -0.4538888931274414, -0.5937045812606812, 0.7984506487846375, 1.3421282768249512, -0.5112589597702026, 0.1679309904575348, 0.27197030186653137, -0.15469707548618317, 0.06236765533685684, 0.9524776935577393,...
api/shared_storage_api/index.md
API - Shared Storage API: Deprecated: This feature is no longer recommended. Non-standard: This feature is not standardized. Warning: This feature is currently opposed by one browser vendor. See the Standards positions section below for details. The Shared Storage API is a client-side storage mechanism that enables ...
[ 0.6497015953063965, -0.5086750984191895, -0.7650264501571655, 0.3005388379096985, -0.1078343614935875, -1.113893985748291, 0.2803708016872406, 1.376265287399292, -0.040814049541950226, 0.007220081053674221, 0.15021511912345886, 0.8639997243881226, 0.15678229928016663, 0.4704294204711914, ...
api/shared_storage_api/index.md
API - Shared Storage API - Concepts and usage: One major source of privacy and security problems on the web is the use of cookies set on third-party content embedded in sites (for example via `iframe` elements). These cookies can be used to track and profile users, and share information across sites. To prevent cross...
[ 0.393037348985672, -0.09030761569738388, -0.8687030673027039, 0.0038781799376010895, 0.7046014070510864, -0.15947556495666504, 0.5415705442428589, 1.1153216361999512, -0.2650207579135895, 0.05834178626537323, 0.08050069212913513, 0.6695653200149536, 0.3186173141002655, 0.03588924556970596,...
api/shared_storage_api/index.md
API - Shared Storage API - Output gates: The currently available output gates for the Shared Storage API are discussed in the sections below. In each section, we list typical use cases for each gate and provide links to guides with more information and code examples. Note: More output gates will likely be added in th...
[ 0.7854235172271729, -0.48795875906944275, -1.0707042217254639, 0.8987119197845459, -0.05471700057387352, -1.277348279953003, -0.26419001817703247, 1.4490725994110107, -0.43701308965682983, 0.35578885674476624, 0.5562198162078857, 0.8550728559494019, 0.5146321654319763, 0.48070669174194336,...
api/shared_storage_api/index.md
API - Shared Storage API - Output gates - URL Selection: The URL Selection output gate, accessed via the `selectURL()` method, is used to select a URL from a provided list to display to the user, based on shared storage data. This gate be used for the following purposes: - Creative rotation: Use stored data such as c...
[ -0.03902217373251915, -0.4703613519668579, -0.9666186571121216, 1.3169363737106323, -0.26431897282600403, -1.0162206888198853, -0.6507943272590637, 0.20348761975765228, 0.4682024121284485, 0.45736220479011536, -0.565976619720459, 0.7366505861282349, 0.042105287313461304, 0.1281451433897018...
api/shared_storage_api/index.md
API - Shared Storage API - Output gates - Run: The Run output gate, accessed via the `run()` method, is intended to be used in a generic way to process some shared storage data. The Private Aggregation API can use the Run output gate to process shared storage data and generate aggregated reports. These reports can be...
[ 0.6699441075325012, -0.00704973703250289, -1.0990387201309204, 0.9203945398330688, -0.14275474846363068, -0.7289742231369019, -0.27345210313796997, 1.494726538658142, -0.1553327739238739, 0.3470829129219055, -0.13600470125675201, 0.7476547360420227, 0.18162648379802704, 0.4965384006500244,...
api/shared_storage_api/index.md
API - Shared Storage API - Understanding how shared storage works: There are two parts to using the Shared Storage API — writing data to storage and reading/processing it. To give you an idea of how these parts are handled, we'll walk you through the basic A/B testing example from developer.chrome.com. In this example...
[ 0.5233174562454224, -0.8033511638641357, -1.0001927614212036, 0.3179883360862732, 0.35925543308258057, -0.9516371488571167, 0.3104144036769867, 1.4149799346923828, -0.21894656121730804, 0.2191663235425949, 0.4082660377025604, 0.5460140705108643, 0.2602415382862091, 0.6593864560127258, -0...
api/shared_storage_api/index.md
API - Shared Storage API - Understanding how shared storage works - Writing to shared storage: Writing data to shared storage is simple — you use methods defined on the `SharedStorage` interface to `set`, `append`, or `delete`/`clear` data. This functionality is available in two different contexts: - In the main bro...
[ -0.006005558185279369, 0.3245674669742584, -0.7909972667694092, 0.5765588283538818, 0.37251293659210205, -1.0195610523223877, 0.12927120923995972, 0.9461379051208496, 0.9143839478492737, -0.07380826771259308, -0.3043641448020935, 0.14703109860420227, 0.3935433030128479, 0.7929900884628296,...
api/shared_storage_api/index.md
API - Shared Storage API - Understanding how shared storage works - Reading and processing data from shared storage: As mentioned above, to extract useful results from a shared storage worklet, you need to use an output gate. In this example, we'll use the URL Selection output gate to read the user's experiment group ...
[ 0.01161420438438654, 0.14351247251033783, -1.100974440574646, 1.137515664100647, -0.08555544167757034, -0.6482619643211365, -1.1468042135238647, 0.7180863618850708, 0.7018831372261047, 0.16116352379322052, -0.6515053510665894, 0.7309476137161255, -0.1031670942902565, 0.15831603109836578, ...
api/shared_storage_api/index.md
API - Shared Storage API - Understanding how shared storage works - Reading and processing data from shared storage - Define an operation in a worklet module: The URL selection is based on the experiment group stored in shared storage. To retrieve this value and choose a URL based on it, we need to define an operation...
[ 0.635391891002655, -0.3448185324668884, -1.2390249967575073, 1.2089316844940186, 0.004508756101131439, -0.7958990931510925, -0.36426886916160583, 0.8891072273254395, -0.3721642792224884, -0.04048134759068489, -0.20380647480487823, 0.37946364283561707, 0.5602564811706543, 0.4902864098548889...
api/shared_storage_api/index.md
API - Shared Storage API - Understanding how shared storage works - Reading and processing data from shared storage - Add the module to the shared storage worklet: To use the operation defined in the worklet module, it needs to be added to the shared storage worklet using `window.sharedStorage.worklet.addModule()`. In...
[ 0.7736186385154724, 0.4613267183303833, -0.7385314106941223, 1.0267033576965332, 0.08404141664505005, -0.975508987903595, -0.3107497990131378, 0.7116212248802185, 0.9351409673690796, -0.22633683681488037, -0.6581317782402039, 0.17676548659801483, 0.3005368113517761, 0.08849622309207916, ...
api/shared_storage_api/index.md
API - Shared Storage API - Understanding how shared storage works - Reading and processing data from shared storage - Choose a URL and load it in a fenced frame: To run the operation defined in the worklet, we call `WindowSharedStorage.selectURL()`. This method acts as a proxy to our worklet operation, accessing it se...
[ 0.24156109988689423, -0.20833739638328552, -0.7382354140281677, 0.8912955522537231, 0.30973654985427856, -0.8901527523994446, -0.08315783739089966, 1.036096215248108, -0.6478558778762817, 0.01726570352911949, -0.09731430560350418, 0.2608613967895508, 0.36033934354782104, 0.7861098051071167...
api/shared_storage_api/index.md
API - Shared Storage API - Differences between shared storage and web storage: The key difference is that shared storage is intended for use with cross-origin data after storage has been partitioned. - If you are a publisher and you want to store first-party data that is accessible to only you, use the `localStorage`...
[ 0.25236400961875916, -0.023188455030322075, -0.9020395874977112, 0.34788498282432556, 0.1881471872329712, -0.8197868466377258, -0.27402618527412415, 0.6914518475532532, 0.9820688962936401, 0.2571946084499359, 0.2066967785358429, 0.4288408160209656, -0.32496559619903564, 0.07205386459827423...
api/shared_storage_api/index.md
API - Shared Storage API - Interfaces: - `SharedStorage`: Represents the shared storage for a particular origin. It defines methods to write data to the shared storage. - `WindowSharedStorage`: Represents the shared storage for a particular origin as exposed to a standard browsing context. Among other things, it defin...
[ 0.9802414774894714, -0.24144193530082703, -0.7633938789367676, 1.277381420135498, -0.12484626471996307, -0.6644145846366882, -0.47310855984687805, 0.7008156180381775, 1.0357953310012817, -0.11154206097126007, -0.002281421795487404, 0.5681324601173401, 0.5714613199234009, 0.3897978663444519...
api/shared_storage_api/index.md
API - Shared Storage API - Interfaces - Output gate operation signature definitions: - `SharedStorageOperation`: Represents the base class for all different output gate operation types. - `SharedStorageRunOperation`: Represents a Run output gate operation. - `SharedStorageSelectURLOperation`: Represents a URL Selectio...
[ -0.1920175850391388, -0.3651401996612549, -0.7413493394851685, 1.029086947441101, -0.11418057978153229, -0.7361310124397278, -0.6577164530754089, 0.6069215536117554, 0.6574464440345764, 0.33670827746391296, -0.3654053509235382, 0.08248968422412872, 0.03562874346971512, 0.171843484044075, ...
api/shared_storage_api/index.md
API - Shared Storage API - Interfaces - Extensions to other interfaces: - `Window.sharedStorage`: Returns the `WindowSharedStorage` object for the current origin.
[ 0.09093838930130005, -0.18906369805335999, 0.3362728953361511, 0.35049670934677124, -0.7486094236373901, -1.3054530620574951, 0.0467277467250824, 0.5079672336578369, 0.6353467106819153, -0.38980355858802795, -0.3619966506958008, 0.14606709778308868, 0.1219998449087143, 0.449515163898468, ...
api/shared_storage_api/index.md
API - Shared Storage API - Enrollment and local testing: To use the Shared Storage API in your sites, you must specify it in the privacy sandbox enrollment process. If you don't, the Shared Storage API methods won't run successfully. You can test your Shared Storage API code locally without enrollment. To allow local...
[ 1.059637427330017, -0.23118159174919128, -0.4965563416481018, -0.485566645860672, -0.008525431156158447, -1.1169300079345703, 0.5914605259895325, 1.26637601852417, 0.21489262580871582, -0.017145341262221336, 0.4520217180252075, 0.9085217714309692, -0.26006507873535156, -0.01323648542165756...
api/shared_storage_api/index.md
API - Shared Storage API - Examples: For extensive demos, see the Shared Storage API demo site, which also includes some Private Aggregation API examples.
[ 1.0077203512191772, -0.6404709815979004, -0.5129262804985046, 0.17985348403453827, -0.2388715147972107, -0.7391149997711182, 0.35527077317237854, 1.2414480447769165, -0.16748814284801483, -0.3772187829017639, 0.3008507788181305, 0.8761385679244995, 0.2966790497303009, 0.5091701745986938, ...
api/shared_storage_api/index.md
API - Shared Storage API - Examples - Standards positions: One browser vendor opposes this specification. Known standards positions are as follows: - Mozilla (Firefox): Negative
[ 0.0461435429751873, -0.7286683320999146, -0.5334344506263733, 0.26038840413093567, 0.10513252019882202, -0.9605541229248047, -0.36223000288009644, 0.5167446136474609, 0.6519111394882202, -0.740799605846405, -0.2843237519264221, -0.11154472827911377, 0.16836802661418915, -0.0625850111246109...
api/service_worker_api/index.md
API - Service Worker API: Note: This feature is available in Web Workers. Service workers essentially act as proxy servers that sit between web applications, the browser, and the network (when available). They are intended, among other things, to enable the creation of effective offline experiences, intercept network...
[ -0.41684603691101074, -0.1406402289867401, -0.8155934810638428, 0.16972970962524414, 0.8456374406814575, -1.3772488832473755, -0.3030643165111542, 1.0524253845214844, 0.9805415868759155, 0.48135295510292053, -0.6144705414772034, 0.2736052870750427, 0.21812359988689423, -0.23267681896686554...
api/service_worker_api/index.md
API - Service Worker API - Service worker concepts and usage: A service worker is an event-driven worker registered against an origin and a path. It takes the form of a JavaScript file that can control the web page/site that it is associated with, intercepting and modifying navigation and resource requests, and cachin...
[ 0.3545007109642029, 0.0930485650897026, -0.4500460624694824, 0.2508198320865631, 0.9396083354949951, -1.1539348363876343, 0.247036874294281, 1.3226499557495117, -0.21623601019382477, 0.46859022974967957, -0.32594990730285645, 0.8034679889678955, 0.41375046968460083, 0.24584463238716125, ...
api/service_worker_api/index.md
API - Service Worker API - Service worker concepts and usage - Registration: A service worker is first registered using the `ServiceWorkerContainer.register()` method. If successful, your service worker will be downloaded to the client and attempt installation/activation (see below) for URLs accessed by the user insid...
[ -0.17299902439117432, -0.5097200870513916, -1.086337685585022, 0.6078149676322937, 0.8320271372795105, -1.1617120504379272, 0.21561767160892487, 0.9958527088165283, 1.1438039541244507, 0.8367478251457214, -0.1202559620141983, -0.038841716945171356, 0.5393715500831604, -0.1345994472503662, ...
api/service_worker_api/index.md
API - Service Worker API - Service worker concepts and usage - Download, install and activate: At this point, your service worker will observe the following lifecycle: - Download - Install - Activate The service worker is immediately downloaded when a user first accesses a service worker–controlled site/page. After...
[ 1.091838002204895, -0.3483614921569824, -1.1155377626419067, 0.8892632722854614, 0.8948900103569031, -1.4034724235534668, 0.6262473464012146, 1.4633455276489258, -0.7008753418922424, 0.32731544971466064, 0.26770761609077454, 0.2197665572166443, -0.2503529489040375, 0.8434051275253296, -0...
api/service_worker_api/index.md
API - Service Worker API - Service worker concepts and usage - Using static routing to control how resources are fetched: Service workers can incur an unnecessary performance cost — when a page is loaded for the first time in a while, the browser has to wait for the service worker to start up and run to know what cont...
[ 0.21545566618442535, -0.11647486686706543, -0.3061577081680298, 0.36781781911849976, 0.36221998929977417, -0.8612387776374817, 0.10242506861686707, 1.046091079711914, 1.064460039138794, 0.5729787349700928, -0.7976522445678711, 0.20872700214385986, 0.22665148973464966, -0.4549141228199005, ...
api/service_worker_api/index.md
API - Service Worker API - Other use case ideas: Service workers are also intended to be used for such things as: - Background data synchronization. - Responding to resource requests from other origins. - Receiving centralized updates to expensive-to-calculate data such as geolocation or gyroscope, so multiple pages ...
[ 0.4300318658351898, -0.03864103555679321, -0.8371325135231018, 0.41671130061149597, 0.6440058350563049, -1.0040864944458008, 0.4362214207649231, 1.287191390991211, -0.07014068216085434, 0.04583503305912018, -0.07123581320047379, 0.1628074198961258, 0.6568799614906311, 0.2478322684764862, ...
api/service_worker_api/index.md
API - Service Worker API - Interfaces: - `Cache`: Represents the storage for `Request` / `Response` object pairs that are cached as part of the `ServiceWorker` life cycle. - `CacheStorage`: Represents the storage for `Cache` objects. It provides a master directory of all the named caches that a `ServiceWorker` can acc...
[ 0.726486325263977, -0.17925302684307098, -0.445780873298645, 0.6780359148979187, 0.5823695659637451, -0.9818463325500488, 0.20542481541633606, 1.415488839149475, -0.4140992760658264, 0.1918005347251892, 0.051539622247219086, 1.0600186586380005, -0.014535199850797653, 0.36456188559532166, ...
api/service_worker_api/index.md
API - Service Worker API - Interfaces - Extensions to other interfaces: - `Window.caches` and `WorkerGlobalScope.caches`: Returns the `CacheStorage` object associated with the current context. - `Navigator.serviceWorker` and `WorkerNavigator.serviceWorker`: Returns a `ServiceWorkerContainer` object, which provides acc...
[ 0.27391356229782104, -0.2494584619998932, -0.8201102018356323, 1.273288607597351, 0.5659989714622498, -1.3055092096328735, -0.39736929535865784, 0.6020654439926147, 0.5768692493438721, 0.44670844078063965, 0.2742217481136322, 0.15615543723106384, 1.1617871522903442, 0.07899323105812073, ...
api/csscontainerrule/index.md
API - CSSContainerRule: The `CSSContainerRule` interface represents a single CSS `@container` rule.
[ -0.09656551480293274, 0.2740483582019806, -0.35607030987739563, -0.43657025694847107, 0.0019165799021720886, -2.5790634155273438, -0.18082529306411743, 0.04254848510026932, 0.22281479835510254, 0.19996511936187744, -0.16615989804267883, -0.1136913001537323, 0.2093832939863205, 0.2498258054...
api/csscontainerrule/index.md
API - CSSContainerRule - Instance properties: Inherits properties from its ancestors `CSSConditionRule`, `CSSGroupingRule`, and `CSSRule`. - `CSSContainerRule.conditions` (read only): Returns an array of objects, each of which specifies a container condition in a `@container` rule. The objects have a `name` string pr...
[ 0.19186747074127197, 0.04171401262283325, -0.7146015763282776, 0.183477520942688, 0.7440672516822815, -2.076831340789795, 0.6000288724899292, 1.6826128959655762, -0.7120480537414551, 0.1937258094549179, -0.13776984810829163, 0.35315725207328796, -0.02255534753203392, 0.084697425365448, -...
api/csscontainerrule/index.md
API - CSSContainerRule - Instance methods: No specific methods; inherits methods from its ancestors `CSSConditionRule`, `CSSGroupingRule`, and `CSSRule`.
[ -0.21236486732959747, 0.3853926360607147, -0.4654470980167389, 0.5022758841514587, 0.02130771428346634, -2.4976344108581543, 0.36320731043815613, 1.1378878355026245, -0.3842374384403229, -0.5546495914459229, -0.8250832557678223, -0.2786410450935364, 0.29706963896751404, 0.08501599729061127...
api/csscontainerrule/index.md
API - CSSContainerRule - Description: A `CSSContainerRule` object represents a `@container` rule. A `@container` rule defines one or more comma-separated container conditions. Each container condition consists of a "name" and/or a "query", where the "name" indicates the name of the container to which the condition ap...
[ -0.4273275136947632, -0.2724631428718567, -0.44364795088768005, 0.26313960552215576, 0.5151711702346802, -2.0006580352783203, -0.5446742177009583, 0.6475823521614075, 0.09055958688259125, 0.263649046421051, -0.5683570504188538, 0.19209244847297668, 0.27900710701942444, -0.1113976389169693,...
api/csscontainerrule/index.md
API - CSSContainerRule - Examples - Feature testing: Feature testing can be complicated because you may need to handle cases where `CSSContainerRule` or `CSSContainerRule.conditions` are not supported, and also the particular case where `conditions` is not supported but multiple container conditions have been specifie...
[ -0.40151509642601013, -0.4068761169910431, -0.20662038028240204, 0.03039376437664032, 0.46222007274627686, -1.8414400815963745, -0.20386919379234314, 0.5581433176994324, 0.004685334861278534, 0.6983819603919983, -0.555305004119873, -0.03186394274234772, -0.16580989956855774, 0.356672793626...
api/csscontainerrule/index.md
API - CSSContainerRule - Examples - Unnamed container condition: The example below defines a `@container` rule that has a single container condition with no name, and displays the properties of the associated `CSSContainerRule`. The CSS is the same as in the `@container` example Setting styles based on a container's s...
[ -0.7234664559364319, -0.20703181624412537, -0.2085481584072113, 0.05234810709953308, 0.3527200520038605, -2.1711924076080322, 0.07898955792188644, 0.9667932391166687, -0.41510453820228577, 0.8968836069107056, -0.4134531617164612, 0.03495930880308151, -0.44540804624557495, -0.08634520322084...
api/csscontainerrule/index.md
API - CSSContainerRule - Examples - Unnamed container condition - HTML: First, we define the HTML for a `card` contained within a `post`. These are represented by two nested `div` elements. Example: <div class="post"> <div class="card"> <h2>Card title</h2> <p>Card content</p> </div> </div>
[ -0.44875234365463257, -0.5570095181465149, -0.37440237402915955, -0.20056083798408508, 0.471107542514801, -1.896510362625122, 0.07627297192811966, 0.7587530016899109, -0.370543897151947, -0.004087058827280998, -0.31956225633621216, 0.2956776022911072, 0.5011857748031616, 0.5272613167762756...
api/csscontainerrule/index.md
API - CSSContainerRule - Examples - Unnamed container condition - CSS: The CSS for the example is shown below. The CSS first specifies the `container-type` for the container element (`post`). The `@container` rule then applies a new `width`, `background-color`, and `font-size` to the card if the width is less than `65...
[ -0.4168264865875244, -0.5102079510688782, -0.46295344829559326, -0.34842872619628906, 0.4452311396598816, -1.222493290901184, 0.3339577913284302, 1.7302354574203491, -0.19600167870521545, 0.4338200092315674, -0.5537574887275696, 0.5647554993629456, 0.45301562547683716, 0.5543918609619141, ...
api/csscontainerrule/index.md
API - CSSContainerRule - Examples - Unnamed container condition - JavaScript: The code below gets the `HTMLStyleElement` associated with the example using its `id`, and then uses its `sheet` property to get the `StyleSheet`. From the `StyleSheet` we get the set of `cssRules` added to the sheet. Since we added the `@co...
[ -0.7941558957099915, 0.1428993046283722, -0.2564077079296112, -0.062034402042627335, 0.5878458023071289, -1.4528350830078125, 0.2849670350551605, 0.7010012269020081, -0.5803919434547424, 0.11188849061727524, -0.6388636231422424, 0.04727201908826828, -0.3616010844707489, 0.02752537280321121...
api/csscontainerrule/index.md
API - CSSContainerRule - Examples - Named container condition: The example below defines a `@container` rule that includes a name and a query, and displays the properties of the associated `CSSContainerRule`. The CSS is very similar to that in the `@container` example Creating named container contexts. Note that we'v...
[ -0.702729344367981, -0.3460855484008789, -0.05221164599061012, 0.6352452039718628, 0.5235738158226013, -1.6408332586288452, 0.0025660619139671326, 0.8938446044921875, -0.5775672197341919, 0.6938679814338684, -0.1797754019498825, 0.1496196687221527, -0.04970520734786987, -0.138566792011261,...
api/csscontainerrule/index.md
API - CSSContainerRule - Examples - Named container condition - CSS: In this example, the `@container` specifies a container name, `sidebar`, as well as the container type. The card has a default font size, which is overridden when it is contained inside a `sidebar` `@container` when its width is greater than or equal...
[ -0.6009308695793152, -0.34931209683418274, -0.5054756999015808, -0.02376612462103367, 0.6809768080711365, -1.259231448173523, 0.2247844934463501, 1.0778464078903198, -0.23589220643043518, -0.0822555422782898, 0.2118915170431137, 0.16090284287929535, -0.32280805706977844, 0.3490488529205322...
api/csscontainerrule/index.md
API - CSSContainerRule - Examples - Multiple container conditions: The example below defines a `@container` rule that includes multiple container conditions, and displays the properties of the associated `CSSContainerRule`. Note that we've hidden the HTML, logging code, and feature checking code, as they are the same...
[ -0.8555408120155334, -0.48992207646369934, -0.16214604675769806, 0.19049029052257538, 0.15720997750759125, -1.4498738050460815, -0.5550428628921509, 0.8800556063652039, -0.23476183414459229, 0.4491904675960541, 0.03852728754281998, 0.3209769129753113, 0.05952838063240051, -0.24364925920963...
api/csscontainerrule/index.md
API - CSSContainerRule - Examples - Multiple container conditions - CSS: The `@container` declaration here defines two container conditions; it will match a container if either condition is true. Example: <style id="example-styles"> .post { container-type: inline-size; container-name: sidebar; } /* De...
[ -1.1309746503829956, -0.6367126107215881, -0.2316581755876541, -0.1083228811621666, 0.552018404006958, -1.0304489135742188, -0.23102831840515137, 0.8275536298751831, 0.27607598900794983, 0.5365821123123169, -0.19147121906280518, 0.14028362929821014, -0.08553281426429749, -0.039367146790027...
api/csscontainerrule/conditions/index.md
API - CSSContainerRule - conditions: The read-only `conditions` property of the `CSSContainerRule` interface represents an associated CSS `@container` at-rule as an array of objects, where each object represents a single container condition.
[ -0.16185306012630463, -0.15723121166229248, -0.5914530754089355, -0.0031362511217594147, 0.4141761064529419, -2.567970037460327, -0.3759470582008362, 1.0817952156066895, 0.05686986446380615, 0.14594487845897675, -0.39340004324913025, -0.1133817583322525, 0.2559903562068939, 0.4006147086620...
api/csscontainerrule/conditions/index.md
API - CSSContainerRule - conditions - Value: An array of objects where each object has the form: Example: ({ name: "<container-name>", query: "<container-query>" }); Either the `name` or `query` may be the empty string, but not both.
[ -0.44800662994384766, -0.5852688550949097, -0.4100348651409149, 0.3880484104156494, -0.10352733731269836, -1.8899428844451904, 0.4043269455432892, 0.257732093334198, -0.10636657476425171, -0.059057123959064484, -0.257729172706604, 0.17711442708969116, 0.2507886290550232, -0.447488903999328...
api/csscontainerrule/conditions/index.md
API - CSSContainerRule - conditions - Description: The `conditions` property represents an associated CSS `@container` at-rule as an array of objects. Each object represents a container condition as a `name` string property and a `query` string property, either of which may be the empty string if not defined. The `na...
[ 0.08662407845258713, -0.36047860980033875, -0.2246566116809845, -0.22419698536396027, 0.5992045402526855, -1.905537724494934, 0.12016725540161133, 1.516472339630127, -0.4504105746746063, 0.33290496468544006, -0.3337897062301636, 0.39199700951576233, -0.2316213995218277, 0.06380809098482132...
api/csscontainerrule/conditions/index.md
API - CSSContainerRule - conditions - Examples: See also Examples in `CSSContainerRule`.
[ -0.8008248805999756, -0.29344069957733154, -0.22265733778476715, -0.2102506309747696, -0.37011298537254333, -1.5550658702850342, -0.790864109992981, 0.6495469808578491, 0.230697900056839, 0.07388786226511002, 0.17896023392677307, -0.03085610643029213, -0.03943850100040436, -0.0296061579138...
api/csscontainerrule/conditions/index.md
API - CSSContainerRule - conditions - Examples - Basic usage: The example shows how multiple container conditions are represented in the `conditions` property. Note that we've hidden the logging code, as it is not relevant. Example: <pre id="log"></pre> Example: const logElement = document.querySelector("#log"); ...
[ -0.5790220499038696, -0.5922949910163879, -0.29479512572288513, -0.011016478762030602, 0.13433919847011566, -1.6016062498092651, -0.08912603557109833, 1.2632473707199097, -0.3253924250602722, 0.8160908818244934, -0.07319925725460052, 0.30026495456695557, 0.2059655338525772, 0.0181336104869...
api/csscontainerrule/conditions/index.md
API - CSSContainerRule - conditions - Examples - Basic usage - HTML: First, we define the HTML for a `card` contained within a `post`. These are represented by two nested `div` elements. Example: <div class="post"> <div class="card"> <h2>Card title</h2> <p>Card content</p> </div> </div>
[ -0.6360850930213928, -0.6238265037536621, -0.4253544807434082, 0.0065718479454517365, 0.31567826867103577, -1.9810503721237183, 0.4045885503292084, 0.35720860958099365, -0.1565375030040741, 0.08696452528238297, -0.4624178409576416, 0.3511979877948761, 0.5559965372085571, 0.4871413707733154...
api/csscontainerrule/conditions/index.md
API - CSSContainerRule - conditions - Examples - Basic usage - CSS: The CSS for the container element specifies the type of the container, and may also specify a name. The card has a default font size, which is overridden when it is contained inside a `sidebar` `@container` when its width is greater than or equal to `...
[ -0.26582056283950806, -0.6138350367546082, -0.3966468870639801, -0.06348534673452377, 0.6483240127563477, -1.9088181257247925, -0.0765807181596756, 0.5755118131637573, 0.6315496563911438, 0.3442448377609253, 0.17796006798744202, 0.6328890323638916, 0.0015710517764091492, -0.212369650602340...
api/csscontainerrule/conditions/index.md
API - CSSContainerRule - conditions - Examples - Basic usage - JavaScript: The code below gets the `HTMLStyleElement` associated with the example using its `id`, and then uses its `sheet` property to get the `StyleSheet`. From the `StyleSheet` we get the set of `cssRules` added to the sheet. Since we added the `@conta...
[ -0.6900403499603271, -0.08783679455518723, -0.5925295948982239, -0.11359979212284088, 0.3721427917480469, -1.7108936309814453, 0.028122812509536743, 0.6761943697929382, -0.090113565325737, -0.06534670293331146, -0.8567630648612976, 0.3181167542934418, -0.1452804058790207, -0.08625501394271...
api/cookiechangeevent/changed/index.md
API - CookieChangeEvent - changed: Secure context: This feature is available only in secure contexts (HTTPS). The `changed` read-only property of the `CookieChangeEvent` interface returns an array of the cookies that have been changed. Note that this will exclude cookies which were created with an expiry date in th...
[ -0.09030300378799438, 0.1588883250951767, -0.10312564671039581, 0.17835910618305206, 0.10896711051464081, -0.9619610905647278, 0.3954448699951172, 1.5199594497680664, -0.11920800805091858, -0.1274290382862091, 0.45990705490112305, 0.428003191947937, 0.05653008818626404, 0.13629265129566193...
api/cookiechangeevent/changed/index.md
API - CookieChangeEvent - 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 cookie. - `pat...
[ 0.551026463508606, -0.4356907606124878, -0.08590754866600037, 0.11349788308143616, 0.2356526255607605, -0.5140960216522217, 0.39174413681030273, 0.9668335914611816, -1.046067237854004, 0.04318564757704735, 0.8712638020515442, 0.389522522687912, -0.11156703531742096, 0.13134849071502686, ...
api/cookiechangeevent/changed/index.md
API - CookieChangeEvent - 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: cookieStore.addEventListener("change", (event) => { console....
[ -0.02274470590054989, -0.4336109161376953, -0.44275781512260437, 0.358100563287735, 0.024647489190101624, -1.6816147565841675, -0.11869073659181595, 1.0430824756622314, 0.11777013540267944, 0.30107131600379944, 0.7795761227607727, 0.4817807674407959, -0.1236707866191864, 0.2897758781909942...
api/cookiechangeevent/deleted/index.md
API - CookieChangeEvent - deleted: Secure context: This feature is available only in secure contexts (HTTPS). The `deleted` read-only property of the `CookieChangeEvent` interface returns an array of the cookies that have been deleted by the given `CookieChangeEvent` instance. Note that this will include cookies wh...
[ -0.31674742698669434, 0.20606976747512817, 0.03939128667116165, -0.09913552552461624, 0.18298783898353577, -0.4835892617702484, 0.08165721595287323, 1.4347922801971436, -0.22684095799922943, -0.1360967457294464, 0.6798968315124512, 0.4723719358444214, 0.16845004260540009, 0.440853655338287...
api/cookiechangeevent/deleted/index.md
API - CookieChangeEvent - 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 cookie. - `pat...
[ 0.3876004219055176, -0.22282277047634125, -0.14731192588806152, -0.07829466462135315, 0.21427196264266968, -0.2890574038028717, 0.40689563751220703, 0.7687074542045593, -1.0466201305389404, 0.06417524069547653, 0.8073700666427612, 0.4488566517829895, -0.2360328733921051, 0.3448647558689117...
api/cookiechangeevent/deleted/index.md
API - CookieChangeEvent - deleted - Examples: In this example, when the cookie is deleted, the event listener logs the first item in the `CookieChangeEvent.deleted` property to the console. It contains an object representing the cookie that has just been deleted. Example: cookieStore.addEventListener("change", (even...
[ -0.07677234709262848, -0.3343006670475006, -0.6806666254997253, 0.49781274795532227, -0.06551482528448105, -1.8977795839309692, -0.1525661051273346, 0.9838402271270752, -0.14753717184066772, 0.38656219840049744, 1.3346649408340454, 0.3090004324913025, 0.15242640674114227, 0.85433429479599,...
api/workletsharedstorage/entries/index.md
API - WorkletSharedStorage - entries: Deprecated: This feature is no longer recommended. The `entries()` method of the `WorkletSharedStorage` interface returns an async iterator. The iterator provides an array of `[key, value]` pairs corresponding to the enumerable properties of a `WorkletSharedStorage` instance. The...
[ 0.37996551394462585, -0.23922257125377655, -0.7706159353256226, 0.4585702419281006, 0.43431365489959717, -1.073615312576294, 0.5566655397415161, 1.7838505506515503, -0.06823373585939407, -0.24959677457809448, 0.19308288395404816, 0.8213217258453369, 0.5373249650001526, 0.19957521557807922,...
api/workletsharedstorage/entries/index.md
API - WorkletSharedStorage - entries - Syntax: Example: entries()
[ 0.21023441851139069, -0.4474128782749176, -0.3077912926673889, -0.06812989711761475, -0.6226077675819397, -0.9762312769889832, 0.13343152403831482, 0.566754937171936, -0.20434044301509857, -0.7508975267410278, 0.3673446476459503, 0.3826209008693695, -0.02482253685593605, 0.2597537636756897...
api/workletsharedstorage/entries/index.md
API - WorkletSharedStorage - entries - Syntax - Parameters: None.
[ 0.5300625562667847, -0.16332337260246277, -0.30561476945877075, 0.024940289556980133, -0.278817355632782, -0.46809375286102295, 0.5340867042541504, 0.6754449605941772, 0.045787446200847626, -0.6657007336616516, -0.3036305904388428, 0.019737087190151215, -0.261879026889801, 0.16858324408531...
api/workletsharedstorage/entries/index.md
API - WorkletSharedStorage - entries - Syntax - Return value: An array of the `WorkletSharedStorage`'s enumerable property key-value pairs.
[ 0.028967931866645813, -0.25595712661743164, -0.6514262557029724, 0.39236462116241455, 0.004629306495189667, -1.1787195205688477, 0.35232439637184143, 0.5122395753860474, 0.23981696367263794, -0.26906466484069824, -0.43703168630599976, 0.40115976333618164, 0.14731371402740479, 0.03449041396...
api/workletsharedstorage/entries/index.md
API - WorkletSharedStorage - entries - Syntax - Exceptions: - `TypeError`: Thrown if the calling site does not have the Shared Storage API included in a successful privacy sandbox enrollment process.
[ 0.07331906259059906, -0.472188800573349, -0.14242030680179596, 0.3844013214111328, -0.3792431950569153, -1.2575587034225464, -0.6187913417816162, 0.9071127772331238, 0.7218754291534424, -0.44028013944625854, -0.5344001054763794, 0.008967824280261993, 0.187957763671875, -0.5035606622695923,...
api/workletsharedstorage/entries/index.md
API - WorkletSharedStorage - entries - Examples: Example: // entries() available inside a shared storage worklet module const storage = await this.sharedStorage; async function logEntries() { for await (const [key, value] of storage.entries()) { console.log({ key, value }); } }
[ 0.8803728222846985, -0.43127191066741943, -1.1287585496902466, 0.701954185962677, -0.11973944306373596, -1.3984143733978271, -0.16718623042106628, 0.4074569344520569, 0.14944347739219666, -0.4510732889175415, -0.2676693797111511, 0.2341507077217102, 0.4524649679660797, 0.11009171605110168,...