When opening a tab to load a local HTML file from an addon (using addon-sdk), the following code is used:
tabs.open({
url: self.data.url('index.html'),
onReady: myScript
});
However, there seems to be no straightforward way to include a CSS stylesheet that corresponds with the HTML file. It would be preferable not to have to resort to inline styles.
Is there something I am overlooking? Is there a method within the API to load the CSS?