Go to file
Brad Jorsch f7bf5a4e23 Add "wrapper" attribute to <templatestyles/>
The wrapper attribute may contain an extra CSS simple selector to
include when prefixing. For example, including a template as
<templatestyles src="..." wrapper="div.my-template"/> would transform

 .foo .bar { color:red; }

into

 .mw-parser-output div.my-template .foo .bar{color:red}

This can allow particular templates to opt in to the "styles are scoped
to the template itself" model that was desired by some when
TemplateStyles was being designed; the driving use case in the linked
task is doing so for the benefit of side-by-side comparisons of the
current and sandboxed versions of a template.

Bug: T200441
Change-Id: If49d4c5be31feca95abd21452238fd10ab1916b1
2018-10-17 14:17:59 -04:00
i18n Add "wrapper" attribute to <templatestyles/> 2018-10-17 14:17:59 -04:00
includes Add "wrapper" attribute to <templatestyles/> 2018-10-17 14:17:59 -04:00
tests/phpunit Add "wrapper" attribute to <templatestyles/> 2018-10-17 14:17:59 -04:00
.eslintrc build: Replace jshint and jscs with eslint; bump other devDeps 2017-05-25 17:31:35 +02:00
.gitignore Use wikimedia/css-sanitizer, and rewrite the hooking 2017-06-07 15:14:09 +00:00
.gitreview Whoops, track not trace 2016-10-24 17:03:54 -07:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 17.0.0 2018-03-29 06:09:06 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.4.0 2018-09-01 14:41:18 +00:00
composer.json build: Updating mediawiki/phan-taint-check-plugin to 1.5.0 2018-09-08 06:09:47 +00:00
COPYING Use wikimedia/css-sanitizer, and rewrite the hooking 2017-06-07 15:14:09 +00:00
extension.json Upgrade extension.json to version 2 and add merge strategy for $wgTemplateStylesNamespaces 2018-10-16 11:25:52 -04:00
Gruntfile.js build: Always exclude vendor and node_modules 2017-11-12 00:39:13 +01:00
hooks.txt Use wikimedia/css-sanitizer, and rewrite the hooking 2017-06-07 15:14:09 +00:00
package.json build: Updating npm dependencies for security issues 2018-10-11 11:16:08 +00:00