Skip to content

linking to <dimension> and CSS Units & Values from CSSUnitValue#43699

Merged
chrisdavidmills merged 12 commits intomdn:mainfrom
nickyonge:patch-1
Apr 9, 2026
Merged

linking to <dimension> and CSS Units & Values from CSSUnitValue#43699
chrisdavidmills merged 12 commits intomdn:mainfrom
nickyonge:patch-1

Conversation

@nickyonge
Copy link
Copy Markdown
Contributor

Added a couple links to CSSUnitValue and unit

Description

Links to (because that's what we're working with) and the CSS Units and Values page, to have a direct reference to all possible values for unit.

Motivation

I jumped to the docs from VS Code to see what values I could use in a parser that I was writing, and was surprised to find nothing more detailed than the "em" and "px" in the example. I had to hop back to google to find that list, so just linked it here

Additional details

m/a

Related issues and pull requests

n/a, just a couple extra lines in the docs :)

added See Also and link to <dimension>
Added link to <dimension> and some reference links to all types of units
@nickyonge nickyonge requested a review from a team as a code owner April 7, 2026 19:49
@nickyonge nickyonge requested review from chrisdavidmills and removed request for a team April 7, 2026 19:49
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Apr 7, 2026
can be any numeric data type, not just <dimension>. also better examples
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Preview URLs (2 pages)

(comment last updated: 2026-04-09 09:58:39)

chrisdavidmills and others added 6 commits April 8, 2026 08:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the edit, @nickyonge — I think these additions are pretty useful. I've made some small casing changes to some of the "See also" links, and I've left a suggestion for you about one sentence that had gotten a bit muddled.

Apart from that, looking good.

nickyonge and others added 2 commits April 8, 2026 17:48
thanks chris!

Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
@nickyonge
Copy link
Copy Markdown
Contributor Author

thank you @chrisdavidmills :) added your suggestion. Clarity is always a win~

Copy link
Copy Markdown
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, let's get this one in. Thanks again, @nickyonge.

@chrisdavidmills chrisdavidmills merged commit efab12f into mdn:main Apr 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants