Re: Is this a Safari error? CG Draft logo does not appear...

On Mon, Nov 8, 2021 at 10:19 PM Marcos Caceres <marcosc@w3.org> wrote:
> > On 9 Nov 2021, at 4:59 pm, Ivan Herman <ivan@w3.org> wrote:
> > Looking at
> >
> > https://www.w3.org/2021/a11y-discov-vocab/latest/
> >
> > If viewed from Brave (ie, chromium) or Firefox the logo (ie, the tilted text saying "Draft Community Group Report" with the CG logo) appears on the left hand corner, on top of the TOC. When viewed in Safari (latest version on BigSur) the relevant space is kept open but the logo is not thereā€¦
>
> No, I think it's a bug with the "cg-draft" [1] background rule:
>
> ```
>         background-image: url('logos/back-cg-draft.png'),
>                           var(--unofficial-watermark);
> ```
>
> Which is resolving "logos/back-cg-draft.png" against the document's URL. You can see this in DevTools as a 404 in Safari.
>
> [1] https://www.w3.org/StyleSheets/TR/2016/cg-draft

That... would be a pretty serious Safari bug, then. Relative URLs in
stylesheets are resolved against the stylesheet's url, not the
document's, and have been for decades.

~TJ

Received on Tuesday, 9 November 2021 18:13:06 UTC