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

Khan / aphrodite / 423
100%
master: 0%

Build:
Build:
LAST BUILD BRANCH: clearer-error-message
DEFAULT BRANCH: master
Ran 11 Oct 2017 11:12PM UTC
Jobs 1
Files 8
Run time 12min
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

pending completion
423

push

travis-ci

lencioni
Allow overridden styles to re-order in generated CSS

We ran into a weird scenario, where if you passed the following two
objects to css() in this order:

```js
{
  '@media all and (min-width: 1128px)': {},
},
{
  '@media all and (min-width: 744px)': {
    backgroundColor: 'red',
  },
  '@media all and (min-width: 1128px)': {
    backgroundColor: 'blue',
  },
}
```

you would normally expect it to produce a style that has the 744px
min-width media query first. Unfortunately, because the first object
already had that media query as an ordered key in its OrderedElements
object, it maintained its original position. This caused the 1128px
media query to be output first, which is unexpected and ended up causing
a visual bug.

To fix this, I modified OrderedElements to always move overridden keys
to the end. This now behaves more like you would expect regular CSS to
work.

I needed to add a special case for string handlers, since they aren't
actually overriding a style but rather replacing a property with a newly
computed value.

117 of 117 branches covered (100.0%)

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

268 of 268 relevant lines covered (100.0%)

49.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 423.1 11 Oct 2017 11:12PM UTC 0
100.0
Travis Job 423.1
Source Files on build 423
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #423
  • 898c2282 on github
  • Prev Build on media-queries (#419)
  • Next Build on media-queries (#421)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc