Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,22 @@ The [`@container`](/en-US/docs/Web/CSS/Reference/At-rules/@container) CSS at-rul
- `layout.css.style-queries.enabled`
- : Set to `true` to enable.

### Absolutely positioned elements in multi-column containers and printing

Absolutely positioned elements inside [multi-column containers](/en-US/docs/Web/CSS/Guides/Multicol_layout) and when printing are now correctly positioned and fragmented.
This improves interoperability with other browsers and prevents layout issues such as overlapping text or content loss.
([Firefox bug 2018797](https://bugzil.la/2018797)).

| Release channel | Version added | Enabled by default? |
| ----------------- | ------------- | ------------------- |
| Nightly | 150 | Yes |
| Developer Edition | 150 | No |
| Beta | 150 | No |
| Release | 150 | No |

- `layout.abspos.fragmentainer-aware-positioning.enabled`
- : Set to `true` to enable.

## SVG

**No experimental features in this release cycle.**
Expand Down
4 changes: 4 additions & 0 deletions files/en-us/mozilla/firefox/releases/150/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ These features are shipping in Firefox 150 but are disabled by default.
To experiment with them, search for the appropriate preference on the `about:config` page and set it to `true`.
You can find more such features on the [Experimental features](/en-US/docs/Mozilla/Firefox/Experimental_features) page.

- **Absolutely positioned elements in multi-column containers and when printing**: `layout.abspos.fragmentainer-aware-positioning.enabled`

Absolutely positioned elements inside [multi-column containers](/en-US/docs/Web/CSS/Guides/Multicol_layout) and when printing are now correctly positioned and fragmented. This improves interoperability with other browsers and prevents layout issues such as overlapping text or content loss. ([Firefox bug 2018797](https://bugzil.la/2018797)).

- **Scoped custom element registries**: `dom.scoped-custom-element-registries.enabled`

The {{domxref("CustomElementRegistry","customElementRegistry")}} property is supported on {{domxref("Document")}}, {{domxref("Element")}}, and {{domxref("ShadowRoot")}}.
Expand Down
16 changes: 16 additions & 0 deletions files/en-us/web/css/reference/values/attr/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ attr(data-size type(<length> | <percentage>))
attr(data-count type(<number>), 0)
attr(data-width px, inherit)
attr(data-something, "default")

/* With namespace */
attr(color|myAttr type(*), red)
```

### Parameters
Expand All @@ -70,6 +73,19 @@ The parameters are:

- `<attr-name>`
- : The attribute name whose value should be retrieved from the selected HTML element(s).
- Namespaces
- : The attribute name can contain a [`namespace`](/en-US/docs/Web/CSS/Guides/Namespaces) which allows the targeting elements of [XML](/en-US/docs/Web/XML)-based markup languages such as [SVG](/en-US/docs/Web/SVG) or [MathML](/en-US/docs/Web/MathML).

```css
@namespace svg url("http://www.w3.org/2000/svg");
a {
fill: attr(svg|myattr type(*), green);
}
```

> [!NOTE]
> If no namespace is specified (just an identifier is given, like `attr(foo)`), the null namespace is implied. This is usually what's desired, as namespaced attributes are rare. As with attribute selectors, the case-sensitivity of `<attr-name>` depends on the document language.

- `<attr-type>`
- : Specifies how the attribute value is parsed into a CSS value. This can be the `raw-string` keyword, a {{cssxref("type()")}} function, or a CSS dimension unit (specified using an `<attr-unit>` identifier). When omitted, it defaults to `raw-string`.
- `raw-string`
Expand Down
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
"devDependencies": {
"@apideck/better-ajv-errors": "^0.3.7",
"@mdn/fred": "2.4.0",
"@mdn/fred": "2.4.1",
"@octokit/rest": "^22.0.1",
"ajv": "^8.18.0",
"ajv-formats": "^3.0.1",
Expand All @@ -62,7 +62,7 @@
"cspell-group-by-file-reporter": "^1.0.1",
"env-cmd": "11.0.0",
"fdir": "^6.5.0",
"file-type": "^22.0.0",
"file-type": "^22.0.1",
"fs-extra": "^11.3.4",
"gray-matter": "^4.0.3",
"imagemin": "^9.0.1",
Expand All @@ -76,7 +76,7 @@
"markdownlint-rule-search-replace": "1.2.0",
"node-html-parser": "^7.1.0",
"parse-diff": "^0.11.1",
"prettier": "3.8.1",
"prettier": "3.8.3",
"tempy": "^3.2.0",
"yaml": "^2.8.3",
"yargs": "^18.0.0"
Expand Down