projectwallace / projectwallace/css-code-coverage

Breaks when using non `\n` line breaks

Open
#55 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

test.css

body {
    width: 100%;
	font-size:24px;
}

@media (max-width: 600px) {
    .inside-media-1 {
        color: blue;
    }

    .inside-media-2 {
        height: 12px;
    }
    .inside-media-3 {
        color: green;
    }
}

h1 {
    font-size: 30px;
}

Coverage-simple.json

Chrome

Image

CSS Code Coverage

Image

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

Start by reproducing the issue with the provided test.css and Coverage-simple.json in Chrome, then inspect how CSS Code Coverage handles line breaks. Verify the result with inputs using line breaks other than \n and confirm that the coverage report is generated correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
testing, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.