Skip to content

refactor(core): route ReSpec's own style injection through insertStyle - #5447

Open
marcoscaceres wants to merge 1 commit into
mainfrom
refactor/core-insert-style
Open

refactor(core): route ReSpec's own style injection through insertStyle#5447
marcoscaceres wants to merge 1 commit into
mainfrom
refactor/core-insert-style

Conversation

@marcoscaceres

Copy link
Copy Markdown
Contributor

ReSpec injected its own stylesheets from fifteen different places, each hand-rolling createElement("style") or an html template, including two near-identical local insertStyle helpers in core/style.js and core/ui.js. This routes them all through one core/insert-style.js with no behavior change, verified by rendering the same spec with both bundles and diffing the resulting head: 31 children and 13 style elements, identical in id, class attribute, order and content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant