Skip to content

fix(css): add corner-shape properties to keyword list#4416

Open
ezforhamza wants to merge 1 commit into
highlightjs:mainfrom
ezforhamza:fix/css-corner-shape-properties
Open

fix(css): add corner-shape properties to keyword list#4416
ezforhamza wants to merge 1 commit into
highlightjs:mainfrom
ezforhamza:fix/css-corner-shape-properties

Conversation

@ezforhamza

Copy link
Copy Markdown

Summary

Adds the corner-shape family of CSS properties to the keyword list in src/languages/lib/css-shared.js.

The following properties are now recognized and highlighted:

  • corner-shape
  • corner-top-left-shape
  • corner-top-right-shape
  • corner-bottom-left-shape
  • corner-bottom-right-shape

These properties were recently added to CSS as part of the Corner Shaping specification and are beginning to appear in real-world code.

Before

.rounded-rect {
  corner-shape: squircle;   /* ← not highlighted */
  border-radius: 16px;      /* ← highlighted */
}

After

.rounded-rect {
  corner-shape: squircle;   /* ← now highlighted */
  border-radius: 16px;      /* ← highlighted */
}

Related

Closes #4330

Adds corner-shape, corner-top-left-shape, corner-top-right-shape,
corner-bottom-left-shape, and corner-bottom-right-shape to the CSS
properties list in css-shared.js.

Closes highlightjs#4330
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.

(CSS) Corner-shape attribute is missing

1 participant