From 5ced6d0b9636a1b904474d1546674b305346daa0 Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:18:23 +0200 Subject: [PATCH 01/26] Remove masonry-auto-flow and redirect to grid-auto-flow (#35471) --- files/en-us/_redirects.txt | 1 + files/en-us/_wikihistory.json | 4 - files/en-us/web/css/css_grid_layout/index.md | 1 - .../css_grid_layout/masonry_layout/index.md | 7 +- files/en-us/web/css/grid-auto-flow/index.md | 4 + .../en-us/web/css/masonry-auto-flow/index.md | 138 ------------------ 6 files changed, 6 insertions(+), 149 deletions(-) delete mode 100644 files/en-us/web/css/masonry-auto-flow/index.md diff --git a/files/en-us/_redirects.txt b/files/en-us/_redirects.txt index 2a7e6cf9c1e6442..b587e9a63a476e3 100644 --- a/files/en-us/_redirects.txt +++ b/files/en-us/_redirects.txt @@ -11660,6 +11660,7 @@ /en-US/docs/Web/CSS/linear-gradient() /en-US/docs/Web/CSS/gradient/linear-gradient /en-US/docs/Web/CSS/margin-new /en-US/docs/Web/CSS/margin /en-US/docs/Web/CSS/margin_collapsing /en-US/docs/Web/CSS/CSS_box_model/Mastering_margin_collapsing +/en-US/docs/Web/CSS/masonry-auto-flow /en-US/docs/Web/CSS/grid-auto-flow /en-US/docs/Web/CSS/max() /en-US/docs/Web/CSS/max /en-US/docs/Web/CSS/media /en-US/docs/Web/CSS/@media /en-US/docs/Web/CSS/media/Bitmap /en-US/docs/Web/CSS/@media diff --git a/files/en-us/_wikihistory.json b/files/en-us/_wikihistory.json index 4d68d8f403ed4cc..9d074f9ae90e53a 100644 --- a/files/en-us/_wikihistory.json +++ b/files/en-us/_wikihistory.json @@ -86802,10 +86802,6 @@ "Heycam" ] }, - "Web/CSS/masonry-auto-flow": { - "modified": "2020-11-12T04:50:46.255Z", - "contributors": ["rachelandrew", "chrisdavidmills"] - }, "Web/CSS/math-style": { "modified": "2020-12-12T22:36:34.292Z", "contributors": ["sideshowbarker", "chrisdavidmills", "rachelandrew"] diff --git a/files/en-us/web/css/css_grid_layout/index.md b/files/en-us/web/css/css_grid_layout/index.md index c53d603ce0afca0..b6593e6a375f393 100644 --- a/files/en-us/web/css/css_grid_layout/index.md +++ b/files/en-us/web/css/css_grid_layout/index.md @@ -106,7 +106,6 @@ The example below shows a three-column track grid with new rows created at a min - {{CSSxRef("row-gap")}} - {{CSSxRef("column-gap")}} - {{CSSxRef("gap")}} -- {{CSSxRef("masonry-auto-flow")}} ### Functions diff --git a/files/en-us/web/css/css_grid_layout/masonry_layout/index.md b/files/en-us/web/css/css_grid_layout/masonry_layout/index.md index afdcdec8af4705d..68339a8f777bf1a 100644 --- a/files/en-us/web/css/css_grid_layout/masonry_layout/index.md +++ b/files/en-us/web/css/css_grid_layout/masonry_layout/index.md @@ -50,12 +50,6 @@ This example includes an item which has positioning for columns. Items with defi {{EmbedGHLiveSample("css-examples/grid/masonry/positioned.html", '100%', 1000)}} -## masonry-auto-flow - -The `masonry-auto-flow` property gives you a way to change how the masonry algorithm behaves. Give it a value of `next` and items will display in order on the grid axis, rather than going into whichever track has the most free space. The value `positioned` will ignore items with definite placement and place items in order-modified document order. - -{{EmbedGHLiveSample("css-examples/grid/masonry/masonry-auto-flow.html", '100%', 1000)}} - ## Fallback In browsers [that do not support masonry](#browser_compatibility), regular grid auto-placement will be used instead. @@ -66,4 +60,5 @@ In browsers [that do not support masonry](#browser_compatibility), regular grid ## See also +- {{cssxref("grid-auto-flow")}} for controlling grid auto-placement - [Native CSS masonry layout in CSS grid](https://www.smashingmagazine.com/native-css-masonry-layout-css-grid/) diff --git a/files/en-us/web/css/grid-auto-flow/index.md b/files/en-us/web/css/grid-auto-flow/index.md index c1632c1cf956d1d..5f5827471b2469c 100644 --- a/files/en-us/web/css/grid-auto-flow/index.md +++ b/files/en-us/web/css/grid-auto-flow/index.md @@ -11,6 +11,10 @@ The **`grid-auto-flow`** [CSS](/en-US/docs/Web/CSS) property controls how the au {{EmbedInteractiveExample("pages/css/grid-auto-flow.html")}} +> [!NOTE] +> The `masonry-auto-flow` property was dropped from CSS [Masonry layout](/en-US/docs/Web/CSS/CSS_grid_layout/Masonry_layout) in favor of `grid-auto-flow`. +> See [csswg-drafts #10231](https://github.com/w3c/csswg-drafts/issues/10231) for details. + ## Syntax ```css diff --git a/files/en-us/web/css/masonry-auto-flow/index.md b/files/en-us/web/css/masonry-auto-flow/index.md deleted file mode 100644 index 48dd26ad8c94e99..000000000000000 --- a/files/en-us/web/css/masonry-auto-flow/index.md +++ /dev/null @@ -1,138 +0,0 @@ ---- -title: masonry-auto-flow -slug: Web/CSS/masonry-auto-flow -page-type: css-property -status: - - experimental -browser-compat: css.properties.masonry-auto-flow ---- - -{{CSSRef}}{{SeeCompatTable}} - -The **`masonry-auto-flow`** [CSS](/en-US/docs/Web/CSS) property modifies how items are placed when using [masonry](/en-US/docs/Web/CSS/CSS_grid_layout/Masonry_layout) in [CSS grid layout](/en-US/docs/Web/CSS/CSS_grid_layout). - -## Syntax - -```css -/* Keyword values */ -masonry-auto-flow: pack; -masonry-auto-flow: next; -masonry-auto-flow: ordered; -masonry-auto-flow: definite-first; -masonry-auto-flow: next ordered; - -/* Global values */ -masonry-auto-flow: inherit; -masonry-auto-flow: initial; -masonry-auto-flow: revert; -masonry-auto-flow: revert-layer; -masonry-auto-flow: unset; -``` - -This property may take one of two forms: - -- A single keyword: one of `pack`, `next`, `definite-first`, or `ordered` -- Two keywords, for example `next ordered`. - -### Values - -- `pack` - - : As per the default masonry algorithm, items will be placed into the track with the most room. -- `next` - - : Items will be placed one after the other in the grid axis. -- `definite-first` - - : Display as in the default masonry algorithm, placing items with a definite place first before placing other masonry items. -- `ordered` - - : Ignore any items with a definite placement, and place everything according to order-modified document order. - -## Formal definition - -{{cssinfo}} - -## Formal syntax - -{{csssyntax}} - -## Examples - -### Using the next keyword - -#### HTML - -```html -
-
-
-
-
-
-
- -``` - -#### CSS - -```css -#grid { - height: 200px; - width: 200px; - display: grid; - gap: 10px; - grid-template-columns: repeat(3, 1fr); - grid-template-rows: masonry; - masonry-auto-flow: pack; -} - -#item1 { - background-color: lime; - height: 2em; -} - -#item2 { - background-color: yellow; -} - -#item3 { - background-color: blue; - height: 3em; -} - -#item4 { - background-color: red; - height: 2.5em; -} - -#item5 { - background-color: aqua; - height: 4em; -} -``` - -```js -const selectElem = document.querySelector("select"); - -function changeMasonryFlow() { - const grid = document.getElementById("grid"); - const direction = document.getElementById("flow"); - const masonryAutoFlow = direction.value === "pack" ? "pack" : "next"; - - grid.style.masonryAutoFlow = masonryAutoFlow; -} - -selectElem.addEventListener("change", changeMasonryFlow); -``` - -#### Result - -{{EmbedLiveSample("Using_the_next_keyword", "200px", "230px")}} - -## Specifications - -{{Specifications}} - -## Browser compatibility - -{{Compat}} From c9e9d3335165b225defae2d95de6a2f7fa28e885 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Ogam?= Date: Wed, 11 Sep 2024 15:40:28 +0200 Subject: [PATCH 02/26] Remove an unnecessary div in the scrolltop example (#35828) * Remove an unnecessary div in the scrolltop example * Update files/en-us/web/api/element/scrolltop/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Joshua Chen Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../en-us/web/api/element/scrolltop/index.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/files/en-us/web/api/element/scrolltop/index.md b/files/en-us/web/api/element/scrolltop/index.md index 1e3ed2deae4154b..589c55f2d23de96 100644 --- a/files/en-us/web/api/element/scrolltop/index.md +++ b/files/en-us/web/api/element/scrolltop/index.md @@ -24,22 +24,20 @@ The `scrollTop` property can be set, which causes the element to scroll to the s ### Scrolling an element -In this example, try scrolling the inner container with the dashed border, and see how the value of `scrollTop` changes. +In this example, try scrolling the container with the dashed border, and see how the value of `scrollTop` changes. #### HTML ```html
-
-

- Far out in the uncharted backwaters of the unfashionable end of the - western spiral arm of the Galaxy lies a small unregarded yellow sun. - Orbiting this at a distance of roughly ninety-two million miles is an - utterly insignificant little blue green planet whose ape-descended life - forms are so amazingly primitive that they still think digital watches are - a pretty neat idea. -

-
+

+ Far out in the uncharted backwaters of the unfashionable end of the western + spiral arm of the Galaxy lies a small unregarded yellow sun. Orbiting this + at a distance of roughly ninety-two million miles is an utterly + insignificant little blue green planet whose ape-descended life forms are so + amazingly primitive that they still think digital watches are a pretty neat + idea. +

scrollTop: 0
@@ -48,7 +46,7 @@ In this example, try scrolling the inner container with the dashed border, and s #### CSS ```css -#scroller { +#container { overflow: scroll; height: 150px; width: 150px; @@ -63,11 +61,11 @@ In this example, try scrolling the inner container with the dashed border, and s #### JavaScript ```js -const scroller = document.querySelector("#scroller"); +const container = document.querySelector("#container"); const output = document.querySelector("#output"); -scroller.addEventListener("scroll", (event) => { - output.textContent = `scrollTop: ${scroller.scrollTop}`; +container.addEventListener("scroll", (event) => { + output.textContent = `scrollTop: ${container.scrollTop}`; }); ``` From abad787f40e4f80bfb0a9df78ba21bfac6206db4 Mon Sep 17 00:00:00 2001 From: Marco Dissel Date: Wed, 11 Sep 2024 17:06:21 +0200 Subject: [PATCH 03/26] Fix example in Intl.ListFormat.formatToParts(list) (Issue #35833) (#35839) --- .../global_objects/intl/listformat/formattoparts/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/javascript/reference/global_objects/intl/listformat/formattoparts/index.md b/files/en-us/web/javascript/reference/global_objects/intl/listformat/formattoparts/index.md index eb1e3f65496e4bd..e536b44bf4b8ac0 100644 --- a/files/en-us/web/javascript/reference/global_objects/intl/listformat/formattoparts/index.md +++ b/files/en-us/web/javascript/reference/global_objects/intl/listformat/formattoparts/index.md @@ -60,7 +60,7 @@ console.table(myListFormat.formatToParts(fruits)); // { "type": "element", "value": "Apple" }, // { "type": "literal", "value": ", " }, // { "type": "element", "value": "Orange" }, -// { "type": "literal", "value": ", and " }, +// { "type": "literal", "value": " and " }, // { "type": "element", "value": "Pineapple" } // ] ``` From 4f8a4458308af009a9598f6fa6b8a2f6992905ec Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Wed, 11 Sep 2024 08:20:14 -0700 Subject: [PATCH 04/26] Add note that gamepad features aren't on all platforms/controllers (#35827) --- files/en-us/web/api/gamepad/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/en-us/web/api/gamepad/index.md b/files/en-us/web/api/gamepad/index.md index 3067a48a173afca..8b1a926b44d6b00 100644 --- a/files/en-us/web/api/gamepad/index.md +++ b/files/en-us/web/api/gamepad/index.md @@ -11,6 +11,9 @@ The **`Gamepad`** interface of the [Gamepad API](/en-US/docs/Web/API/Gamepad_API A Gamepad object can be returned in one of two ways: via the `gamepad` property of the {{domxref("Window.gamepadconnected_event", "gamepadconnected")}} and {{domxref("Window.gamepaddisconnected_event", "gamepaddisconnected")}} events, or by grabbing any position in the array returned by the {{domxref("Navigator.getGamepads()")}} method. +> [!NOTE] +> The support of gamepad features varies across different combinations of platforms and controllers. Even if the controller supports a certain feature (for example, haptic feedback), the platform may not support it for that controller. + ## Instance properties - {{domxref("Gamepad.axes")}} {{ReadOnlyInline}} From 30d0a926fffe7bcf586def53959c12a5e526fa26 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Wed, 11 Sep 2024 11:24:12 -0400 Subject: [PATCH 05/26] New page for reflection properties of HTMLTextAreaElement (#35664) * New page for reflection properties of HTMLTextAreaElement * Apply suggestions from code review Co-authored-by: Estelle Weyl * Update files/en-us/web/api/htmltextareaelement/cols/index.md --------- Co-authored-by: Estelle Weyl --- .../htmltextareaelement/autocomplete/index.md | 34 +++++++++++++++++ .../web/api/htmltextareaelement/cols/index.md | 37 ++++++++++++++++++ .../htmltextareaelement/defaultvalue/index.md | 38 +++++++++++++++++++ .../api/htmltextareaelement/disabled/index.md | 37 ++++++++++++++++++ .../htmltextareaelement/placeholder/index.md | 35 +++++++++++++++++ .../api/htmltextareaelement/readonly/index.md | 36 ++++++++++++++++++ .../api/htmltextareaelement/required/index.md | 36 ++++++++++++++++++ .../web/api/htmltextareaelement/rows/index.md | 38 +++++++++++++++++++ .../htmltextareaelement/textlength/index.md | 38 +++++++++++++++++++ .../web/api/htmltextareaelement/wrap/index.md | 36 ++++++++++++++++++ 10 files changed, 365 insertions(+) create mode 100644 files/en-us/web/api/htmltextareaelement/autocomplete/index.md create mode 100644 files/en-us/web/api/htmltextareaelement/cols/index.md create mode 100644 files/en-us/web/api/htmltextareaelement/defaultvalue/index.md create mode 100644 files/en-us/web/api/htmltextareaelement/disabled/index.md create mode 100644 files/en-us/web/api/htmltextareaelement/placeholder/index.md create mode 100644 files/en-us/web/api/htmltextareaelement/readonly/index.md create mode 100644 files/en-us/web/api/htmltextareaelement/required/index.md create mode 100644 files/en-us/web/api/htmltextareaelement/rows/index.md create mode 100644 files/en-us/web/api/htmltextareaelement/textlength/index.md create mode 100644 files/en-us/web/api/htmltextareaelement/wrap/index.md diff --git a/files/en-us/web/api/htmltextareaelement/autocomplete/index.md b/files/en-us/web/api/htmltextareaelement/autocomplete/index.md new file mode 100644 index 000000000000000..b51975c7ae49358 --- /dev/null +++ b/files/en-us/web/api/htmltextareaelement/autocomplete/index.md @@ -0,0 +1,34 @@ +--- +title: "HTMLTextAreaElement: autocomplete property" +short-title: autocomplete +slug: Web/API/HTMLTextAreaElement/autocomplete +page-type: web-api-instance-property +browser-compat: api.HTMLTextAreaElement.autocomplete +--- + +{{ APIRef("HTML DOM") }} + +The **`autocomplete`** property of the {{DOMxRef("HTMLTextAreaElement")}} interface indicates whether the value of the control can be automatically completed by the browser. It reflects the `