Comments (8)
Forked and pushed my workaround for this issue: TreehouseJS/CSSStyleDeclaration@9fa65f9b79
from cssstyle.
ugh, yeah ugly, but if that's what's need, that's what's needed. I actually don't push versions from the master branch anymore, but from the 0.2.x or 0.3.x branches. I'll think a little bit about organizing this better. Maybe have a require for CSS2.1 and one for CSS3, and then break them down even more in there, for related properties.
from cssstyle.
Ok, sounds good. Let me know what you decide and I'll integrate my changes if necessary.
from cssstyle.
Would be pretty cool to somehow make this work so that we don't have to bundle the separate fork with jsdom for browserify users.
One way to do it is to create a prepublish script that generates those lines ahead of time. You can then make the pretest script be npm run prepublish
and such. We did that for the Promises/A+ tests in promises-aplus/promises-tests@e099884
from cssstyle.
my mind is slow today, I'll get this fixed and still have lazy load later today
from cssstyle.
Hmm, if it can be done in an easily-maintainable way, maybe use the browser field in package.json so that browser consumers get one file and Node another?
From: chad3814mailto:[email protected]
Sent: ý2014-ý10-ý13 13:44
To: chad3814/CSSStyleDeclarationmailto:[email protected]
Cc: Domenic Denicolamailto:[email protected]
Subject: Re: [CSSStyleDeclaration] Browserify support (#11)
actually, the problem is now it lazy loads the files because of #14https://github.com/chad3814/CSSStyleDeclaration/pull/14 I'm not sure what I can do make both happy...
—
Reply to this email directly or view it on GitHubhttps://github.com/chad3814/CSSStyleDeclaration/issues/11#issuecomment-58928480.
from cssstyle.
% npm publish
[email protected] prepublish .
node ./scripts/generate_properties.js
npm http PUT https://registry.npmjs.org/cssstyle
npm http 201 https://registry.npmjs.org/cssstyle
from cssstyle.
% npm publish
[email protected] prepublish .
node ./scripts/generate_properties.js
npm http PUT https://registry.npmjs.org/cssstyle
npm http 201 https://registry.npmjs.org/cssstyle
from cssstyle.
Related Issues (20)
- Doesn't support `calc` HOT 6
- update url parsing logic to match current browsers HOT 1
- Code cleanup, DRY HOT 10
- Add mechanism to handle [CEReactions] extended IDL attributes HOT 1
- Wrong behavior when setting `max-width` property on element
- Positioning css properties don't except `auto`
- 'border' setter does not validate new value
- allow var functions in style.color values HOT 1
- Values are not properly converted to DOMString HOT 1
- Color function values are not properly rounded
- Opaque hexadecimal color values should be resolved to rgb
- Invalid hexadecimal color value is parsed as valid
- HSL to RGB conversion results in black
- repeat() does not get resolved as per CSS Grid HOT 1
- linear-gradient in background is parsed as invalid HOT 2
- Feature request: support for grid-area, grid-row/column-start/end
- Allow usage of `calc` for margins
- CSS Custom Properties not supported HOT 7
- font-size not covered by the parse function and can set with invalid values HOT 1
- CSS Parser: rgba test incorrect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cssstyle.