CSSOM icon indicating copy to clipboard operation
CSSOM copied to clipboard

Unmaintained! ⚠️ CSS Object Model implemented in pure JavaScript. Also, a CSS parser.

Results 25 CSSOM issues
Sort by recently updated
recently updated
newest added

Currently CSSGroupingRule is calling CSSOM.parse but `parse` wasn't included which leads to a syntax error. This PR fixes that Line which is currently calling `CSSOM.parse`: https://github.com/NV/CSSOM/blob/a469aae2f92e454e669aec821781626924f98d17/lib/CSSGroupingRule.js#L41

`CSSGroupingRule.insertRule` requires `parse`. Previously: $ pwd /path/to/CSSOM $ node Welcome to Node.js v18.1.0. Type ".help" for more information. > const CSSOM = require('./lib'); undefined > const rule = new CSSOM.CSSGroupingRule();...

Hi, thanks for this library. I'm trying to access "font-size" on a `CSSStyleDeclaration` object like I would on the browser using `.fontSize` but apparently it is only accessible using `["font-size"]`......

```js const cssom = require("cssom"); //version 0.4.4 const styles = `@-moz-document url-prefix(){@media print{.enabled-vuetify-global-styling .v-application,.enabled-vuetify-global-styling .v-application--wrap{display:block}}}`; cssom.parse(styles); ``` throws ``` Uncaught Error: Unexpected } (line 1, char 157) at parseError (/Users/przemyslawbeigert/code/bethink/wnl-platform/node_modules/cssom/lib/parse.js:62:15)...

![Screen Shot 2021-01-01 at 9 31 22 PM](https://user-images.githubusercontent.com/43722865/103449631-ba480280-4c78-11eb-8d99-5a70074ac19f.png) `cssom` is installed with version "0.4.4" and is a dependency for `jsdom` at ^0.4.4 Followed this thread when this was an issue...

When tests are run on components written with `makeStyle` from https://material-ui.com/ library you will see plenty of those warnings in your console: ![image](https://user-images.githubusercontent.com/9931428/90792726-1f730b00-e30b-11ea-9234-3871e9ffa8c6.png) I've tracked down this issue through https://github.com/cssinjs/jss...

``` @media handheld, only screen and (max-device-width: 480px) { body {overflow: auto} } ``` [Spec](http://dev.w3.org/csswg/cssom/#css-media-rule). WebKit implementation: [CSSMediaRule.cpp](http://trac.webkit.org/browser/trunk/WebCore/css/CSSMediaRule.cpp#preview).

v0.4

I would like to see that. I'm also working on [geometry-interfaces](https://github.com/trusktr/geometry-interfaces/), so then CSSTransformValue can contain a DOMMatrix.