Skip to content

Preserve valid border-image syntax when serializing CSSOM values - #1182

Open
JinDX wants to merge 1 commit into
w3c:mainfrom
JinDX:fix-border-image-serialization-20261110
Open

JinDX wants to merge 1 commit into
w3c:mainfrom
JinDX:fix-border-image-serialization-20261110

Conversation

@JinDX

@JinDX JinDX commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Keep the slice when a width or outset is serialized and preserve the slice’s fill keyword. Prepend slash separators to width and outset so the result conforms to the border-image grammar. Related to w3c/csswg-drafts#12854.

This preserves, for example, 100% fill, 100% / 2, and 100% // 2 instead of dropping the slice or putting slashes after the values.

Validation: checked the changed algorithm and single-file diff. Local Bikeshed builds of the original and patched source have the same pre-existing reference errors; a full build has not passed locally.

Found while reviewing my CJK translations:

This branch has not been deployed

No deployments
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.

1 participant