Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Extract CSS module #21007

Merged
merged 4 commits into from Feb 23, 2019
Merged

♻️ Extract CSS module #21007

merged 4 commits into from Feb 23, 2019

Conversation

jridgewell
Copy link
Contributor

Extracts CSS specific functions from src/dom.js into src/css.js.

@@ -18,6 +18,7 @@ import * as dom from '../../src/dom';
import {BaseElement} from '../../src/base-element';
import {createAmpElementForTesting} from '../../src/custom-element';
import {loadPromise} from '../../src/event-helper';
import {setScopeSelectorSupportedForTesting} from '../../src/css';

Choose a reason for hiding this comment

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

Kinda weird, ideally should mock isScopeSelectorSupported instead.

Extracts CSS specific functions from `src/dom.js` into `src/css.js`.
@jridgewell jridgewell added this to To do in Make Malte, Dima, Justin Happy via automation Feb 23, 2019
@jridgewell jridgewell merged commit 551db28 into ampproject:master Feb 23, 2019
Make Malte, Dima, Justin Happy automation moved this from To do to Done Feb 23, 2019
@jridgewell jridgewell deleted the css-module branch February 23, 2019 07:07
noranazmy pushed a commit to noranazmy/amphtml that referenced this pull request Mar 22, 2019
* Extract CSS module

Extracts CSS specific functions from `src/dom.js` into `src/css.js`.

* Fix build

* Move assertIsName into css module

* Move test
bramanudom pushed a commit to bramanudom/amphtml that referenced this pull request Mar 22, 2019
* Extract CSS module

Extracts CSS specific functions from `src/dom.js` into `src/css.js`.

* Fix build

* Move assertIsName into css module

* Move test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants