Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Add addCssRule function #6

Closed
wants to merge 3 commits into from
Closed

Conversation

jason0x43
Copy link
Member

This PR adds an addCssRule function to dom. The function takes a selector and a string of CSS property specifications, and returns a handle that can be used to update or remove the rule.

Resolves #5

'handle _index is non-enumerable'() {
const handle = dom.addCssRule('.testDiv', '');
handles.push(handle);
assert.notInclude(Object.keys(handle), '_list');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to be _index? Do we also want to check _style?

@eheasley eheasley modified the milestone: Milestone 1 May 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement dom.addCssRule
3 participants