Lets your template add to the built-in stylesheet
All 2 scenarios hold
Pebble templates render a report, and a project can supply its own. Point the reporter at a template directory. The reporter then uses the files in that directory in place of the built-in templates, or on top of them.
The rules below read a report of one test class named Calendar. That class holds one table named Leap years, with the columns Year and Leap? and one row, 2004 and Yes. A report that small lets a rule state a whole page.
The HTML report carries its stylesheet inside the file. A role that a test declares therefore has nowhere to take a style from. The extra_stylesheet block is that place. The reporter writes what the block holds after the built-in stylesheet, and the built-in stylesheet stays.
These rows read a report of BinSample, whose Bins column holds a list.
| Scenario | Extra stylesheet | Your rule in the page? | Built-in stylesheet kept? |
|---|---|---|---|
| No template of your own | false | true | |
| A rule of your own | .cell { color: red; } | true | true |