diff --git a/docs/contributing/artefact/files/role/style.css.md b/docs/contributing/artefact/files/role/style.css.md index 7b46f7fa33..7f40a264b4 100644 --- a/docs/contributing/artefact/files/role/style.css.md +++ b/docs/contributing/artefact/files/role/style.css.md @@ -10,7 +10,8 @@ For browser-side validation requirements after visible UI changes, see [Playwrig - A role ships its override as `files/style.css` when it needs no Jinja, otherwise as `templates/style.css.j2`. - Rules that apply only while the role ships a logo go into `files/logo.css`. `sys-front-inj-design` appends that file only when `design.logo` resolves to a path, so the guard lives in one place instead of in every sheet. - `sys-front-inj-design` renders `templates/css/app.css.j2` ahead of both: a `:root` block declaring `--design-url--`, `--design-url-favicon-ico`, `--design-slot--` and `--design-url-app-` for every entry of the role's `design_css_urls`. A sheet reads the branding through those properties instead of interpolating a URL. -- `sys-front-inj-design` drops the CDN scheme and host from every URL of the composed sheet before it deploys it, so one `style.css` serves the CDN vhost of every network and each URL resolves against the CDN the page loaded the sheet from. +- `sys-front-inj-design` drops the CDN scheme and host from every URL of the composed sheet before it deploys it, so each CDN URL resolves against the CDN the page loaded the sheet from. +- Any other host in the sheet, such as the role's own origin from `lookup('tls', application_id, 'url.origin')`, follows the vhost being rendered. `sys-front-inj-design` stores the composed sheet once per network the role is served on (`style.css` for the first network, `