Skip to content

[css-highlight-api-1] Make HighlightRegistry maplike#6198

Merged
sanketj merged 3 commits intow3c:mainfrom
sanketj:HighlightRegistr-maplike
Apr 15, 2021
Merged

[css-highlight-api-1] Make HighlightRegistry maplike#6198
sanketj merged 3 commits intow3c:mainfrom
sanketj:HighlightRegistr-maplike

Conversation

@sanketj
Copy link
Copy Markdown
Member

@sanketj sanketj commented Apr 9, 2021

[css-highlight-api-1] Make HighlightRegistry maplike and remove name property from Highlight.
[css-highlight-api-1] Add note recommending authors to use custom highlight names that are CSS identifiers for easier styling via CSS.
[css-highlight-api-1] Add note recommending authors to only use one name to style a highlight and add an example showcasing why using multiple names is problematic.

Resolves #5910

@sanketj sanketj requested review from LeaVerou and tabatkins April 13, 2021 07:35
Copy link
Copy Markdown
Member

@LeaVerou LeaVerou left a comment

Choose a reason for hiding this comment

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

LGTM. See the one minor comment I left.

sanketj added 3 commits April 14, 2021 23:17
…hlight names that are CSS identifiers for easier styling via CSS.
…ame to style a highlight and add an example showcasing why using multiple names is problematic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[css-highlight-api] maplike vs setlike

3 participants