Skip to content

Sort vendor-prefixed CSS properties by their first non-prefixed letter in CSS_Ref #792

Description

@caugner

Description

In the CSS_Ref index, initial_letter returns the literal first character of the title, so vendor-prefixed properties (e.g. -webkit-foo) are all bucketed under the "-" heading instead of a letter.

Motivation

Make the CSS reference index easier to scan by grouping prefixed properties under their meaningful initial letter (e.g. -webkit-foo under "F").

Additional details

This is a content/UX decision — confirm the desired behavior (strip a leading vendor prefix / leading - before taking the initial letter) before implementing. Relevant code: initial_letter in crates/rari-doc/src/templ/templs/css_ref.rs.

Related issues and pull requests

Follow-up from #673 (comment).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions