mathiasbynens / mathiasbynens/cssesc

cssesc always escapes identifier characters above U+00A0

Open
#8 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
176
Forks
21
PR merge metrics
No merged PRs in 30d

Description

As is not demonstrated by the online demo at https://mothereff.in/css-escapes.

If a `@charset "utf-8";` directive is present in the input, or an appropriate option is set in the options object, it would be nice to be able to preserve characters that don't need to be escaped.

The [CSS 2.1 spec](https://www.w3.org/TR/CSS21/syndata.html#characters) allows identifiers to contain characters above U+00A0, and at least CSS 2.0 allowed characters "161 and higher".

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the cssesc escaping behavior and its options object, then compare the current output with the online demo and the CSS 2.1 character rules linked in the issue. Determine how a @charset "utf-8" directive or an option should affect characters above U+00A0, and verify that the resulting identifiers preserve characters that do not require escaping.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.