• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MyIntervals / PHP-CSS-Parser / 44236143888
96%

Build:
DEFAULT BRANCH: main
Ran 18 Nov 2026 04:16AM UTC
Jobs 1
Files 55
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Nov 2026 04:16AM UTC coverage: 93.33% (+0.01%) from 93.316%
44236143888

push

github

web-flow
[BUGFIX] Reject hex colors containing non-hex digits (#1726)

This bug fix makes the parser reject hex colors with non-hex digits, so
`#zzz` is no longer silently turned into `#000`.

`Color::parseHexColor()` only checked the length of the identifier after
`#`. Invalid digits were converted with `intval($pair, 16)`, which
returns 0, so `a{color:#zzz}` rendered as `a{color:#000}`. Browsers
ignore such declarations.

The parser now throws an `UnexpectedTokenException` when the value is
not entirely hex digits. In lenient mode only that declaration is
dropped, and in strict mode a parse error is reported. Valid 3, 4, 6 and
8 digit colors in any letter case parse as before.

5 of 5 new or added lines in 1 file covered. (100.0%)

2169 of 2324 relevant lines covered (93.33%)

44.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44236143888.1 18 Nov 2026 04:16AM UTC 55
93.33
GitHub Action Run
Source Files on build 44236143888
  • Tree
  • List 55
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44236143888
  • 83e3de57 on github
  • Prev Build on main (#44235139521)
  • Next Build on main (#44237874162)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc