Permits using English (traditional) spellings for CSS properties, rather than English (simplified).
Because this is implemented with a client-side script. You can use this to properise the CSS of any page.
To use this script, simply include it in your HTML:
<script src="https://cdn.jsdelivr.net/gh/DeclanChidlow/BritCSS/britcss.js"></script>
To enter debug mode:
britCSS.debug(true);
To stop the script from converting:
britCSS.shutdown();
- In a CSS file:
body {
background-colour: red;
}
- In a HTML style tag:
<style>
body {
background-colour: red;
}
</style>
- In an inline HTML style:
<body style="background-colour: red;"></body>
- Manually with JS:
const cssText = "background-colour: black; colour: white;";
const converted = britCSS.convertCSS(cssText);
console.log(converted);