From fc646c98ea7f77b2f100fc934ccf9f7a73132889 Mon Sep 17 00:00:00 2001 From: septante <130835353+septante@users.noreply.github.com> Date: Wed, 24 Jan 2024 23:21:22 +0000 Subject: [PATCH 1/7] typo fix (#31896) --- files/en-us/learn/css/styling_text/web_fonts/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/learn/css/styling_text/web_fonts/index.md b/files/en-us/learn/css/styling_text/web_fonts/index.md index 6f8c0a68d3d97cb..a2f8bb6d0783203 100644 --- a/files/en-us/learn/css/styling_text/web_fonts/index.md +++ b/files/en-us/learn/css/styling_text/web_fonts/index.md @@ -118,7 +118,7 @@ Web services for font generation typically limit file sizes. In such a case, con 1. [sfnt2woff-zopfli](https://github.com/bramstein/sfnt2woff-zopfli) for converting ttf to woff 2. [fontforge](https://fontforge.org/) for converting from ttf to svg -3. [batik ttf2svf](https://people.apache.org/~clay/batik/ttf2svg.html) for converting from ttf to svg +3. [batik ttf2svg](https://people.apache.org/~clay/batik/ttf2svg.html) for converting from ttf to svg 4. [woff2](https://github.com/google/woff2) for converting from ttf to woff2 ### Implementing the code in your demo From 2ce8f6f9d08cd6f10b77c4853ef5494c690b56b1 Mon Sep 17 00:00:00 2001 From: Jason Lam Date: Thu, 25 Jan 2024 09:46:28 +0800 Subject: [PATCH 2/7] Reference link fix in Iterator.take() method (#31898) Update index --- .../javascript/reference/global_objects/iterator/take/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/javascript/reference/global_objects/iterator/take/index.md b/files/en-us/web/javascript/reference/global_objects/iterator/take/index.md index 2b027b55ff86f94..3f48d4284a34c1e 100644 --- a/files/en-us/web/javascript/reference/global_objects/iterator/take/index.md +++ b/files/en-us/web/javascript/reference/global_objects/iterator/take/index.md @@ -75,7 +75,7 @@ Because `fibonacci()` is an infinite iterator, you can't use a `for` loop to ite ### Combining drop() with take() -You can combine `drop()` with {{jsxref("Iterator.prototype.take()")}} to get a slice of an iterator: +You can combine `take()` with {{jsxref("Iterator.prototype.drop()")}} to get a slice of an iterator: ```js for (const n of fibonacci().drop(2).take(5)) { From 6a489877196f27cadd5b51545b68b9e31884a86f Mon Sep 17 00:00:00 2001 From: MDN Web Docs GitHub Bot <108879845+mdn-bot@users.noreply.github.com> Date: Thu, 25 Jan 2024 03:02:55 +0100 Subject: [PATCH 3/7] fix: auto-cleanup by bot (#31897) chore: auto-fix Markdownlint, Prettier, and front-matter issues --- files/en-us/learn/index.md | 2 +- files/en-us/mdn/at_ten/index.md | 2 +- .../mdn/writing_guidelines/page_structures/page_types/index.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/en-us/learn/index.md b/files/en-us/learn/index.md index 23907f9494e4734..96079f628f289cf 100644 --- a/files/en-us/learn/index.md +++ b/files/en-us/learn/index.md @@ -111,7 +111,7 @@ You can update the `learning-area` repository with any changes made to the maste If you want to get in touch with us about anything, use the [communication channels](/en-US/docs/MDN/Community/Communication_channels). We'd like to hear from you about anything you think is wrong or missing on the site, requests for new learning topics, requests for help with items you don't understand, or any other questions or concerns. -If you're interested in helping develop/improve the content, take a look at [how you can help](/en-US/docs/MDN/Contribute) and get in touch! We are more than happy to talk to you, whether you are a learner, teacher, experienced web developer, or someone else interested in helping to improve the learning experience. +If you're interested in helping develop/improve the content, take a look at [how you can help](/en-US/docs/MDN/Community/Contributing) and get in touch! We are more than happy to talk to you, whether you are a learner, teacher, experienced web developer, or someone else interested in helping to improve the learning experience. ## See also diff --git a/files/en-us/mdn/at_ten/index.md b/files/en-us/mdn/at_ten/index.md index c91caacf239326b..692816098260763 100644 --- a/files/en-us/mdn/at_ten/index.md +++ b/files/en-us/mdn/at_ten/index.md @@ -18,7 +18,7 @@ In early 2005, a small team of idealists set out to create a new, free, communit For ten years, the MDN community has been documenting the open Web. From fixing simple typos to writing entire suites of an entirely new API, everyone has something to offer and no contribution is too large or too small. We have over 90,000 pages of content that have been written or translated by members of our outstanding community of Mozillians. You can become one of them. -[Learn more about contributing](/en-US/docs/MDN/Contribute) +[Learn more about contributing](/en-US/docs/MDN/Community/Contributing) ## See also diff --git a/files/en-us/mdn/writing_guidelines/page_structures/page_types/index.md b/files/en-us/mdn/writing_guidelines/page_structures/page_types/index.md index 6b3e83ebd47583d..734a6be2944356f 100644 --- a/files/en-us/mdn/writing_guidelines/page_structures/page_types/index.md +++ b/files/en-us/mdn/writing_guidelines/page_structures/page_types/index.md @@ -241,7 +241,7 @@ The list of subpages can be generated automatically using the templates [`Subpag - [Web APIs](/en-US/docs/Web/API) - [JavaScript](/en-US/docs/Web/JavaScript) - [Learning area](/en-US/docs/Learn) -- [Contributing to MDN](/en-US/docs/MDN/Contribute) +- [Contributing to MDN](/en-US/docs/MDN/Community/Contributing) ## See also From 1e6f63fd174abaa6cece7f3219c2003cf68ae18e Mon Sep 17 00:00:00 2001 From: Andreas <519178+schmidhauser@users.noreply.github.com> Date: Thu, 25 Jan 2024 03:39:17 +0000 Subject: [PATCH 4/7] Correct typos in index.md (#31892) * Choose uniform spelling for "case-sensitive" and "case-insensitive" * Move opening brace to same line as selector (for educational reasons) --- files/en-us/web/css/attribute_selectors/index.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/files/en-us/web/css/attribute_selectors/index.md b/files/en-us/web/css/attribute_selectors/index.md index 493f3e98bfea126..9bac4fcd4dfd9f8 100644 --- a/files/en-us/web/css/attribute_selectors/index.md +++ b/files/en-us/web/css/attribute_selectors/index.md @@ -9,9 +9,9 @@ browser-compat: css.selectors.attribute The CSS **attribute selector** matches elements based on the element having a given attribute explicitly set, with options for defining an attribute value or substring value match. -The case sensitivity of attribute names and values depends on the document language. In HTML, attribute names are case insensitive, as are spec-defined {{glossary("enumerated")}} values. The [case-insensitive HTML attribute values](https://html.spec.whatwg.org/multipage/semantics-other.html#case-sensitivity-of-selectors) are listed in the HTML spec. For these attributes, the attribute value in the selector is case-insensitive, regardless of whether the value is invalid or the attribute for the element on which it is set is invalid. +The case sensitivity of attribute names and values depends on the document language. In HTML, attribute names are case-insensitive, as are spec-defined {{glossary("enumerated")}} values. The [case-insensitive HTML attribute values](https://html.spec.whatwg.org/multipage/semantics-other.html#case-sensitivity-of-selectors) are listed in the HTML spec. For these attributes, the attribute value in the selector is case-insensitive, regardless of whether the value is invalid or the attribute for the element on which it is set is invalid. -If the attribute value is case sensitive, like [`class`](/en-US/docs/Web/HTML/Global_attributes/class), [`id`](/en-US/docs/Web/HTML/Global_attributes/id), and [`data-*`](/en-US/docs/Web/HTML/Global_attributes/data-*) attributes, the attribute selector value match is case-sensitive. Attributes defined outside of the HTML specification, like [`role`](/en-US/docs/Web/Accessibility/ARIA/Roles) and [`aria-*`](/en-US/docs/Web/Accessibility/ARIA/Attributes) attributes, are also case-sensitive. Normally case-sensitive attribute selectors can be made case-insensitive with the inclusion of the case-insensitive modifier (`i`). +If the attribute value is case-sensitive, like [`class`](/en-US/docs/Web/HTML/Global_attributes/class), [`id`](/en-US/docs/Web/HTML/Global_attributes/id), and [`data-*`](/en-US/docs/Web/HTML/Global_attributes/data-*) attributes, the attribute selector value match is case-sensitive. Attributes defined outside of the HTML specification, like [`role`](/en-US/docs/Web/Accessibility/ARIA/Roles) and [`aria-*`](/en-US/docs/Web/Accessibility/ARIA/Attributes) attributes, are also case-sensitive. Normally case-sensitive attribute selectors can be made case-insensitive with the inclusion of the case-insensitive modifier (`i`). ```css /* elements with a title attribute */ @@ -20,8 +20,7 @@ a[title] { } /* elements with an href matching "https://example.org" */ -a[href="https://example.org"] -{ +a[href="https://example.org"] { color: green; } @@ -101,8 +100,7 @@ a[href$=".org"] { } /* Links that start with "https://" and end in ".org" */ -a[href^="https://"][href$=".org"] -{ +a[href^="https://"][href$=".org"] { color: green; } ``` From c45e2107d7d23c2155f59849a7240f2fa5f096c4 Mon Sep 17 00:00:00 2001 From: Albert Scheiner Date: Thu, 25 Jan 2024 20:24:48 +1100 Subject: [PATCH 5/7] Add additional examples (#31902) * Add additional examples * Update files/en-us/web/css/resolution/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Chris Mills Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- files/en-us/web/css/resolution/index.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/files/en-us/web/css/resolution/index.md b/files/en-us/web/css/resolution/index.md index dda5327b5d14f5a..fb7da84781d53c4 100644 --- a/files/en-us/web/css/resolution/index.md +++ b/files/en-us/web/css/resolution/index.md @@ -36,6 +36,18 @@ The `` data type consists of a strictly positive {{cssxref("<numb @media print and (min-resolution: 300dpi) { /* … */ } + +@media (resolution: 120dpcm) { + /* … */ +} + +@media (min-resolution: 2dppx) { + /* … */ +} + +@media (resolution: 1x) { + /* … */ +} ``` ### Valid resolutions From 1e518c1e78491175db6f6ba7e47e8f7b414f7cbb Mon Sep 17 00:00:00 2001 From: Vadim Makeev Date: Thu, 25 Jan 2024 14:50:22 +0100 Subject: [PATCH 6/7] Update template element description and add shadowrootmode attribute (#31490) * Add shadowrootmode attribute * Add Shadow DOM demo * Rewrite intro, refactor demo * Add remote example * Update link to demo * Self-contain the intro * Apply suggestions from code review Co-authored-by: Dipika Bhattacharya * Add a title for usage notes * Apply suggestions from code review Co-authored-by: Dipika Bhattacharya * Move two options to usage notes * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Separate two notes * Apply suggestions from code review Co-authored-by: Estelle Weyl * Remove duplicate --------- Co-authored-by: Dipika Bhattacharya Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Estelle Weyl --- .../en-us/web/html/element/template/index.md | 77 +++++++++++++++++-- 1 file changed, 70 insertions(+), 7 deletions(-) diff --git a/files/en-us/web/html/element/template/index.md b/files/en-us/web/html/element/template/index.md index 4caab0a833413de..0d616adbb6d0900 100644 --- a/files/en-us/web/html/element/template/index.md +++ b/files/en-us/web/html/element/template/index.md @@ -7,20 +7,41 @@ browser-compat: html.elements.template {{HTMLSidebar}} -The **`