filamentgroup/EnhanceJS — Issue #4: Media Types not working in Konqueror
Author: Geraint
Created: 2011-11-08 10:17:55+00:00
State: open

Observed in Konqueror 4.6.5.

If I specify a media type in the call to `enhance()`, then *all* CSS fails (including `basic.css`, i.e. not loaded via `enhance.js`).

This will not work:

```javascript
enhance({
alertOnFailure: true,
loadStyles: [
{href: 'enhanced.css', media: 'screen'}
]
});
```

However, the following works OK:

```javascript
enhance({
alertOnFailure: true,
loadStyles: [
'enhanced.css'
]
});
```

Also, post-test, `enhance.query('screen')` returns `false`.

I did some digging, and in the function assigned to `mediaquery`, the expression `divWidth == 10` is returning `false`.

It looks like the dynamically injected styleblock is not being applied to the node at `#ejs-qtest`.