Skip to content

fix(border-image-generator): put border-image-source last in CSS output - #217

Open
AzazelSensei wants to merge 1 commit into
mdn:mainfrom
AzazelSensei:fix/border-image-source-order
Open

fix(border-image-generator): put border-image-source last in CSS output#217
AzazelSensei wants to merge 1 commit into
mdn:mainfrom
AzazelSensei:fix/border-image-source-order

Conversation

@AzazelSensei

Copy link
Copy Markdown

Description:

Reorder the CSS Code property blocks in the border-image generator so short properties come first and border-image-source (often a long data URL) is last.

Motivation:

When copying CSS, developers often skip the lengthy border-image-source and can miss later properties such as border-style, which Chrome needs for the border image to show. Putting the source last keeps the important short properties easy to copy.

Additional details:

  • New order: border-styleborder-image-sliceborder-image-widthborder-image-outsetborder-image-repeatborder-image-source
  • Existing element IDs are unchanged, so script.js wiring stays intact
  • Copy CSS follows DOM order, so the clipboard output matches this order

Related issues and pull requests:

Fixes #93

Reorder the CSS Code properties so short values appear first and the
lengthy border-image-source data URL is last, matching issue mdn#93.
@AzazelSensei
AzazelSensei requested a review from a team as a code owner August 12, 2026 09:02
@AzazelSensei
AzazelSensei requested a review from pepelsbey August 12, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MDN Border-image generator: Move border-image-source to the end in CSS Code output

2 participants