id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
Mmdn_object/css0_18_0.txt
* propertyName Type: String
Mmdn_object/css0_22_0.txt
Type: String A CSS property name.
Mmdn_object/Mmdn_object_1_1.txt
e/Keyed_collections) 12. [ Working with objects ](/en-US/docs/Web/JavaScript/Guide/Working_with_objects) 13. [ Using classes ](/en-US/docs/Web/JavaScript/Guide/Using_classes) 14. [ Using promises ](/en-US/docs/Web/JavaScript/Guide/Using_promises) 15. [ JavaScript typed arrays ](/en-US/docs/Web/JavaScrip...
Mmdn_object/18889_49_0.txt
Sorry, something went wrong. Andarist added TypeScript and removed bug needs triage labels Jun 6, 2020
Mmdn_object/18889_21_0.txt
Search syntax tips # Provide feedback
Mmdn_object/Mmdn_object_4_3.txt
https://github.com/zloirock/core-js#ecmascript-object) * [ Enumerability and ownership of properties ](/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties) * [ ` Object.hasOwn() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn) * [ ` Object.prototype.propertyIsEnumerable() ` ...
Mmdn_object/contain6_60_0.txt
css body { counter-reset: list-items; } li::before { counter-increment: list-items; content: counter(list-items) ": "; } .container { contain: style; }
Mmdn_object/Mmdn_object_20_0.txt
* Skip to main content * Skip to search * Skip to select language [ MDN Web Docs ](/en-US/) Open main menu * References [ References ](/en-US/docs/Web) * [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web) * [ HTML Structure of content on the web ](/en-US/do...
Mmdn_object/Mmdn_object_26_1.txt
ference/Global_Objects/Object/__lookupSetter__) Deprecated 5. [ ` Object.assign() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) 6. [ ` Object.create() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create) 7. [ ` Object.defineProperties() ` ](/en-US/docs/Web/JavaScr...
Mmdn_object/Mmdn_object_30_0.txt
* Skip to main content * Skip to search * Skip to select language [ MDN Web Docs ](/en-US/) Open main menu * References [ References ](/en-US/docs/Web) * [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web) * [ HTML Structure of content on the web ](/en-US/do...
Mmdn_object/contain6_11_0.txt
* HTML Learn to structure web content with HTML
Mmdn_object/contain6_15_0.txt
* Plus Plus * Overview A customized MDN experience
Mmdn_object/Mmdn_object_2_4.txt
um ](https://discourse.mozilla.org/c/mdn/236) * [ MDN Chat ](/discord) ## Developers * [ Web Technologies ](/en-US/docs/Web) * [ Learn Web Development ](/en-US/docs/Learn) * [ MDN Plus ](/en-US/plus) * [ Hacks Blog ](https://hacks.mozilla.org/) [ Mozilla logo ](https://www.mozilla.org/) * [ Website Pr...
Mmdn_object/css0_9_0.txt
* propertyNames Type: Array
Mmdn_object/18889_61_0.txt
interface NestedCSS { color?: string; nest?: { [selector: string]: NestedCSS; } } const example: NestedCSS = { color: 'red', nest: { '.subclass': { color: 'blue' } } } const failsSilently: NestedCSS = { c...
Mmdn_object/contain6_25_3.txt
-auto-flow Experimental 61. math-* 1. math-depth 2. math-shift Experimental 3. math-style 62. max-* 1. max-block-size 2. max-height 3. max-inline-size 4. max-width 63. min-* 1. min-block-size 2. min-height 3. min-inline-size 4...
Mmdn_object/Mmdn_object_6_0.txt
* Skip to main content * Skip to search * Skip to select language [ MDN Web Docs ](/en-US/) Open main menu * References [ References ](/en-US/docs/Web) * [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web) * [ HTML Structure of content on the web ](/en-US/do...
Mmdn_object/contain6_4_0.txt
* JavaScript General-purpose scripting language
Mmdn_object/18889_11_0.txt
* All features * Documentation * GitHub Skills * Blog * Solutions
Mmdn_object/Mmdn_object_0_4.txt
/) * [ Website Privacy Notice ](https://www.mozilla.org/privacy/websites/) * [ Cookies ](https://www.mozilla.org/privacy/websites/#cookies) * [ Legal ](https://www.mozilla.org/about/legal/terms/mozilla) * [ Community Participation Guidelines ](https://www.mozilla.org/about/governance/policies/participation/) ...
Mmdn_object/css0_14_0.txt
## Examples: Get the background color of a clicked div.
Mmdn_object/contain6_53_0.txt
### Layout containment Consider the example below which shows how elements behave with and without layout containment applied:
Mmdn_object/css0_2_0.txt
* Download * API Documentation * Blog * Plugins * Browser Support # .css()
Mmdn_object/css0_20_0.txt
Type: String or Number A value to set for the property.
Mmdn_object/Mmdn_object_30_9.txt
policies/participation/) Visit [ Mozilla Corporation’s ](https://www.mozilla.org) not-for-profit parent, the [ Mozilla Foundation ](https://foundation.mozilla.org/) . Portions of this content are ©1998– 2024 by individual mozilla.org contributors. Content available under [ a Creative Commons license ](/en-...
Mmdn_object/18889_36_0.txt
# invalid css properties not being type-checked #1888 zanona opened this issue Jun 5, 2020 · 6 comments
Mmdn_object/contain6_25_0.txt
* Try it * Syntax * Formal definition * Formal syntax * Examples * Specifications * Browser compatibility * See also 1. CSS 2. Tutorials 3. CSS basics 4. CSS first steps 1. CSS first steps overview 2. What is CSS? 3. Getting started with CSS 4. How CSS is structur...
Mmdn_object/Mmdn_object_33_4.txt
articipation Guidelines ](https://www.mozilla.org/about/governance/policies/participation/) Visit [ Mozilla Corporation’s ](https://www.mozilla.org) not-for-profit parent, the [ Mozilla Foundation ](https://foundation.mozilla.org/) . Portions of this content are ©1998– 2024 by individual mozilla.org contrib...
Mmdn_object/contain6_9_0.txt
* Guides Guides * Overview / MDN Learning Area Learn web development
Mmdn_object/Mmdn_object_11_3.txt
/JavaScript/Reference/Global_Objects/Date) * [ ` RegExp ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) The [ ` arguments ` ](/en- US/docs/Web/JavaScript/Reference/Functions/arguments) object returns ` "[object Arguments]" ` . Everything else, including user-defined classes, unless with a custom ` Sy...
Mmdn_object/contain6_8_0.txt
* Web Technology Web technology reference for developers
Mmdn_object/Mmdn_object_9_0.txt
* Skip to main content * Skip to search * Skip to select language [ MDN Web Docs ](/en-US/) Open main menu * References [ References ](/en-US/docs/Web) * [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web) * [ HTML Structure of content on the web ](/en-US/do...
Mmdn_object/css0_5_0.txt
* .css( propertyName ) * .css( propertyName ) * .css( propertyNames ) * .css( propertyName, value ) * .css( propertyName, value ) * .css( propertyName, function ) * .css( properties ) ## .css( propertyName ) Returns: String
Mmdn_object/18889_34_0.txt
# invalid css properties not being type-checked #1888 Open
Mmdn_object/contain6_68_0.txt
Was this page helpful to you? Yes No
Mmdn_object/contain6_12_0.txt
* CSS Learn to style content using CSS
Mmdn_object/contain6_26_0.txt
## In this article * Try it * Syntax * Formal definition * Formal syntax * Examples * Specifications * Browser compatibility * See also
Mmdn_object/Mmdn_object_22_3.txt
l_Objects/Map/keys) * [ ` Map.prototype.values() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/values) ## Help improve MDN Was this page helpful to you? Yes No [ Learn how to contribute ](https://github.com/mdn/content/blob/main/CONTRIBUTING.md "This will take you to our contribution guidelines on...
Mmdn_object/18889_64_0.txt
Copy link Author
Mmdn_object/contain6_2_0.txt
* HTML Structure of content on the web
Mmdn_object/18889_4_0.txt
Host and manage packages * Security
Mmdn_object/Mmdn_object_34_3.txt
ays exist as a property on all objects, and as a result doesn't reflect ` [[Prototype]] ` reliably. The ` __proto__ ` property is a simple accessor property on ` Object.prototype ` consisting of a getter and setter function. A property access for ` __proto__ ` that eventually consults ` Object.prototype ` will find th...
Mmdn_object/Mmdn_object_5_1.txt
/Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__) Deprecated 5. [ ` Object.assign() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) 6. [ ` Object.create() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create) 7. [ ` Object.defineProperties() ` ](/en-U...
Mmdn_object/css0_19_0.txt
A CSS property name. * value
Mmdn_object/18889_73_0.txt
Sorry, something went wrong. Andarist added the discussion label Jun 11, 2020
Mmdn_object/contain6_19_0.txt
* FAQ Frequently asked questions about MDN Plus
Mmdn_object/css0_29_0.txt
As of jQuery 1.8, the ` .css() ` setter will automatically take care of prefixing the property name. For example, take ` .css( "user-select", "none" ) ` in Chrome/Safari will set it as ` -webkit-user-select ` , Firefox will use ` -moz-user-select ` , and IE10 will use ` -ms-user-select ` . As of jQuery 1.6, ` .css() `...
Mmdn_object/18889_33_0.txt
Already on GitHub? Sign in to your account Jump to bottom
Mmdn_object/Mmdn_object_28_0.txt
* Skip to main content * Skip to search * Skip to select language [ MDN Web Docs ](/en-US/) Open main menu * References [ References ](/en-US/docs/Web) * [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web) * [ HTML Structure of content on the web ](/en-US/do...
Mmdn_object/18889_3_0.txt
Automate any workflow * Packages
Mmdn_object/Mmdn_object_13_2.txt
riptor for the property being defined or modified. ### Return value The object that was passed to the function, with the specified property added or modified. ## Description ` Object.defineProperty() ` allows a precise addition to or modification of a property on an object. Normal property addition through [ assi...
Mmdn_object/contain6_71_0.txt
Your blueprint for a better internet. * MDN on Mastodon * MDN on X (formerly Twitter) * MDN on GitHub * MDN Blog RSS Feed
Mmdn_object/Mmdn_object_28_1.txt
okupSetter__) Deprecated 5. [ ` Object.assign() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) 6. [ ` Object.create() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create) 7. [ ` Object.defineProperties() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Objec...
Mmdn_object/Mmdn_object_5_2.txt
/Global_Objects/Object/getOwnPropertyNames) , you can get all symbol properties of a given object as an array of symbols. Note that [ ` Object.getOwnPropertyNames() ` ](/en- US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames) itself does not contain the symbol properties of an object and only th...
Mmdn_object/css0_30_0.txt
As of jQuery 1.4, ` .css() ` allows us to pass a function as the property value: 1 2 3 | $( "div.example" ).css( "width", function( index ) { return index * 50;}); ---|--- This example sets the widths of the matched elements to incrementally larger values.
Mmdn_object/Mmdn_object_35_3.txt
affect Object } It can also be used with [ ` null ` -prototype objects ](/en- US/docs/Web/JavaScript/Reference/Global_Objects/Object#null-prototype_objects) . These do not inherit from ` Object.prototype ` , and so ` hasOwnProperty() ` is inaccessible. js const foo = Object.create(null); ...
Mmdn_object/Mmdn_object_23_4.txt
(/en-US/docs/Learn) * [ MDN Plus ](/en-US/plus) * [ Hacks Blog ](https://hacks.mozilla.org/) [ Mozilla logo ](https://www.mozilla.org/) * [ Website Privacy Notice ](https://www.mozilla.org/privacy/websites/) * [ Cookies ](https://www.mozilla.org/privacy/websites/#cookies) * [ Legal ](https://www.mozilla.or...
Mmdn_object/Mmdn_object_25_1.txt
nce/Global_Objects/Object/__lookupSetter__) Deprecated 5. [ ` Object.assign() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) 6. [ ` Object.create() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create) 7. [ ` Object.defineProperties() ` ](/en-US/docs/Web/JavaScript/...
Mmdn_object/18889_9_0.txt
Plan and track work * Discussions
Mmdn_object/contain6_61_0.txt
Without containment, the counter would increment from 1 to 5 for each list item. Style containment causes the ` counter-increment ` property to be scoped to the element's subtree and the counter begins again at 1: #### Containment and quotes
Mmdn_object/18889_72_0.txt
const styles = { color: 'hotpink', 'div': { color: 'green' } } This ` styles ` object is not assignable to ` CSS.Properties ` , nor it is assignable to ` Record<string,CSS.Properties> ` . Why is it assignable to ` Style ` though? 🤔 Either way - I understand where are you c...
Mmdn_object/Mmdn_object_23_2.txt
](/en- US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) . ### Return value A boolean value indicating whether the specified property is enumerable and is the object's own property. ## Description All objects that inherit from ` Object.prototype ` (that is, all except [ ` null ` -prototype objects ](/en- US...
Mmdn_object/18889_65_0.txt
### zanona commented Jun 6, 2020
Mmdn_object/Mmdn_object_29_1.txt
precated 5. [ ` Object.assign() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) 6. [ ` Object.create() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create) 7. [ ` Object.defineProperties() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperti...
Mmdn_object/18889_23_0.txt
Cancel Submit feedback # Saved searches
Mmdn_object/Mmdn_object_1_3.txt
perators/Assignment) 5. [ async function expression ](/en-US/docs/Web/JavaScript/Reference/Operators/async_function) 6. [ async function* expression ](/en-US/docs/Web/JavaScript/Reference/Operators/async_function*) 7. [ await ](/en-US/docs/Web/JavaScript/Reference/Operators/await) 8. [ Bitwise AND (&) ]...
Mmdn_object/css0_26_0.txt
An object of property-value pairs to set. As with the ` .prop() ` method, the ` .css() ` method makes setting properties of elements quick and easy. This method can take either a property name and value as separate parameters, or a single object of key-value pairs.
Mmdn_object/18889_24_0.txt
## Use saved searches to filter your results more quickly Name
Mmdn_object/contain6_25_4.txt
meline-scope Experimental 99. top 100. touch-action 101. transform-* 1. transform 2. transform-box 3. transform-origin 4. transform-style 102. transition-* 1. transition 2. transition-behavior 3. transition-delay 4. transition-duration ...
Mmdn_object/contain6_48_0.txt
## Formal definition Initial value | ` none ` ---|--- Applies to | all elements Inherited | no Computed value | as specified Animation type | Not animatable ## Formal syntax
Mmdn_object/Mmdn_object_29_2.txt
Try it ## Syntax js Object.seal(obj) ### Parameters ` obj ` The object which should be sealed. ### Return value The object being sealed. ## Description Sealing an object is equivalent to [ preventing extensions ](/en- US/docs/Web/JavaScript/Reference/Global_Objects/Object/preven...
Mmdn_object/Mmdn_object_3_2.txt
y_comparisons_and_sameness#same- value_equality_using_object.is) . Two values are the same if one of the following holds: * both [ ` undefined ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined) * both [ ` null ` ](/en-US/docs/Web/JavaScript/Reference/Operators/null) * both ` true ` or both ` fals...
Mmdn_object/Mmdn_object_30_7.txt
and returns its return value. [ ` Object.prototype.__defineSetter__() ` ](/en- US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__) Deprecated Associates a function with a property that, when set, executes that function which modifies the property. [ ` Object.prototype.__lookupGetter__() `...
Mmdn_object/Mmdn_object_1_7.txt
b/JavaScript/Reference/Errors/Invalid_for-in_initializer) 28. [ SyntaxError: function statement requires a name ](/en-US/docs/Web/JavaScript/Reference/Errors/Unnamed_function_statement) 29. [ SyntaxError: getter and setter for private name #x should either be both static or non-static ](/en-US/docs/Web/JavaScri...
Mmdn_object/18889_76_0.txt
Labels TypeScript
Mmdn_object/18889_26_0.txt
Cancel Create saved search Sign in
Mmdn_object/18889_6_0.txt
Instant dev environments * Copilot
Mmdn_object/contain6_43_0.txt
Inline size containment is applied to the element. The inline size of the element can be computed in isolation, ignoring the child elements. This value cannot be combined with ` size ` . ` layout `
Mmdn_object/contain6_76_0.txt
Mozilla logo * Website Privacy Notice * Cookies * Legal * Community Participation Guidelines
Mmdn_object/css0_6_0.txt
Description: Get the computed style properties for the first element in the set of matched elements. * #### version added: 1.0 .css( propertyName )
Mmdn_object/18889_52_0.txt
Thanks, @Andarist . That's an interesting approach, I guess that if the user had the option to extend the interface to add non-standard properties, it could still benefit those situations while actively helping to reduce typos and errors? After all, if there's any non-standard property being defined, it's likely to...
Mmdn_object/Mmdn_object_0_1.txt
t/__lookupSetter__) Deprecated 5. [ ` Object.assign() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) 6. [ ` Object.create() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create) 7. [ ` Object.defineProperties() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects...
Mmdn_object/css0_13_0.txt
As of jQuery 1.9 , passing an array of style properties to ` .css() ` will result in an object of property-value pairs. For example, to retrieve all four rendered ` border-width ` values, you could use ` $( elem ).css([ "borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth" ]) ` . As of jQuery 3...
Mmdn_object/Mmdn_object_32_3.txt
ction: set foo] js const obj2 = { __proto__: { set foo(value) { this.bar = value; }, }, }; function findSetter(obj, prop) { while (obj) { const desc = Object.getOwnPropertyDescriptor(obj, prop); if (desc) { return de...
Mmdn_object/css0_27_0.txt
Also, jQuery can equally interpret the CSS and DOM formatting of multiple-word properties. For example, jQuery understands and returns the correct value for both ` .css({ "background-color": "#ffe", "border-left": "5px solid #ccc" }) ` and ` .css({backgroundColor: "#ffe", borderLeft: "5px solid #ccc" }) ` . Notice that...
Mmdn_object/Mmdn_object_13_5.txt
p.c; // undefined p.d; // 4 p[Symbol.for("e")]; // 5 p[Symbol.for("f")]; // undefined #### Configurable attribute The ` configurable ` attribute controls whether the property can be deleted from the object and whether its attributes (other than ` value ` and ` writable ` ) can be changed. This e...
Mmdn_object/18889_38_0.txt
## Comments Copy link
Mmdn_object/Mmdn_object_2_3.txt
` type ` in the body of the function. This is a very succinct way to access the relevant values of elements within a function. We can also create groups inferred from values in one or more properties of the elements. Below is a very similar example that puts the items into ` ok ` or ` restock ` groups based on the va...
Mmdn_object/contain6_16_0.txt
* AI Help (beta) Get real-time assistance and support
Mmdn_object/18889_50_0.txt
Copy link Author
Mmdn_object/Mmdn_object_32_0.txt
* Skip to main content * Skip to search * Skip to select language [ MDN Web Docs ](/en-US/) Open main menu * References [ References ](/en-US/docs/Web) * [ Overview / Web Technology Web technology reference for developers ](/en-US/docs/Web) * [ HTML Structure of content on the web ](/en-US/do...
Mmdn_object/contain6_47_0.txt
Descendants of the element don't display outside its bounds. If the containing box is offscreen, the browser does not need to paint its contained elements — these must also be offscreen as they are contained completely by that box. If a descendant overflows the containing element's bounds, then that descendant ...
Mmdn_object/Mmdn_object_32_1.txt
ence/Global_Objects/Object/__lookupSetter__) Deprecated _ 5. [ ` Object.assign() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) 6. [ ` Object.create() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create) 7. [ ` Object.defineProperties() ` ](/en-US/docs/Web/JavaScri...
Mmdn_object/contain6_33_0.txt
css /* Keyword values */ contain: none; contain: strict; contain: content; contain: size; contain: inline-size; contain: layout; contain: style; contain: paint; /* Multiple keywords */ contain: size paint; contain: size layout paint; contain: inline-si...
Mmdn_object/Mmdn_object_1_9.txt
standard, built-in objects, including their methods and properties. The term "global objects" (or standard built-in objects) here is not to be confused with **the global object** . Here, "global objects" refer to **objects in the global scope** . The **global object** itself can be accessed using the [ ` this ` ](/e...
Mmdn_object/18889_0_0.txt
Skip to content ## Navigation Menu
Mmdn_object/Mmdn_object_18_2.txt
riptor() ` ](/en- US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor) API. This method's behavior is only specified for web compatibility, and is not required to be implemented in any platform. It may not work everywhere. The **` __lookupGetter__() ` ** method of [ ` Object ` ](/en- US/doc...
Mmdn_object/contain6_69_0.txt
Learn how to contribute . This page was last modified on Feb 2, 2024 by MDN contributors .
Mmdn_object/18889_81_0.txt
© 2024 GitHub, Inc. ### Footer navigation
Mmdn_object/18889_25_0.txt
Query To see all available qualifiers, see our documentation .