Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This makes the first column in tables of test results alternate between white and light gray for the background color of its rows, making it easier to see which test scores line up with which test.
The backgrounds for the scores themselves are left unaltered, as those have actual meaning.
Review Information
Personally, I wrote this css into the inline stylesheet on the production site (can use this page to test) and then copy-pasted it into that same inline stylesheet in the code, using the Github web-editor.
If I were reviewing this, I'd probably just do the reverse, as that sounds more straight-forward than cloning this into a dev environment and shows the change just as well.
Changes
I added a single new CSS rule in the inline stylesheet in wpt-results.js.
The rule looks like this:
2n
conveniently starts selecting on the second row, so that the headers don't get styled.Requirements
You need to be able to look at the results of any test, with this rule inserted into the stylesheet.