Clarify when var() falls back to its second argument#44015
Merged
Clarify when var() falls back to its second argument#44015
Conversation
Member
Author
|
@nchevobbe let me know if it makes it more accurate |
Contributor
|
Preview URLs (1 page) Flaws (2) Found an unexpected or unresolvable flaw? Please report it here. URL:
(comment last updated: 2026-05-06 12:07:12) |
Contributor
that looks great to me, thanks a lot ! |
chrisdavidmills
approved these changes
May 6, 2026
Contributor
chrisdavidmills
left a comment
There was a problem hiding this comment.
Looking pretty good, @pepelsbey. Just one language suggestion, but I'll approve, so you can merge when you've looked at it.
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Member
Author
|
Thanks everyone! |
pepelsbey
added a commit
to pepelsbey/mdn-content
that referenced
this pull request
May 6, 2026
* upstream/main: (150 commits) PWA relative links (mdn#43953) feat(jsondata): add `external_link` translation key (mdn#43978) Clarify when var() falls back to its second argument (mdn#44015) Correct incorrect filename on learn assessment (mdn#44012) FF151 Relnote CanvasRenderingContext2D.lang (mdn#44010) FF151: Update container style queries support (mdn#44002) Firefox experimental features clean-up (mdn#43887) FF151 Relnote: shadowrootslotassignment (mdn#43881) Editorial review: Document WebGPU compatibility mode (mdn#43944) Correction of solution (mdn#44001) Synchronize with BCD v7.3.14 (mdn#44007) Editorial review: Document texture_and_sampler_let WGSL feature (mdn#43768) Editorial review: Document NavigationTransition.committed (mdn#43692) Update window.open on document / window creation and load behavior (mdn#43913) FF151 Relnote: keyboardLock option for Element.requestFullScreen() (mdn#43883) FF118 keyboard value for Window Event tidy (mdn#43942) Bump yaml from 2.8.3 to 2.8.4 (mdn#44005) Rename Stylesheet glossary definition to Style sheet (mdn#43997) Clarify else-if evaluation order (mdn#43917) chore(dictionaries): add technical terms flagged by spelling check (mdn#43907) ... # Conflicts: # files/en-us/web/api/svgscriptelement/async/index.md # files/en-us/web/api/svgscriptelement/index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates the
var()syntax section with a more accurate fallback description.Motivation
The previous wording was misleading: not every CSS-wide keyword triggers the fallback (only
initial, and only for non-registered custom properties), and it ignored@property-registered properties and cyclic dependencies.Additional details
Related issues and pull requests
Fixes #44011