Skip to content

Infoview hoverrendering missing css on firefox #11

@jcreedcmu

Description

@jcreedcmu

This is the result of hovering over the natural numbers symbol.
Image

What I expect: a nice opaque gray background.
What I observe: no background; transparent and illegible.

If I setTimeout(() => { debugger; }, 3000) in console and then hover, I can catch the state where the tooltip exists.

The css rule that should be applied here is from the infoview implementation https://github.com/leanprover/vscode-lean4/blob/bbe3ff126cd54defd10ac6e07a2b94dd2d865c42/lean4-infoview/src/infoview/index.css#L134-L148

document.querySelectorAll('link[rel="stylesheet"], style') shows that there is an active stylesheet, inside the iframe, with url

<link rel="stylesheet" href="https://vscode-remote%2Blocalhost-003a3000.vscode-resource.vscode-cdn.net/workspace/.openvscode-server/extensions/leanprover.lean4-universal/dist/lean4-infoview/index.css">

My guess is that this is a url that would work if we were in a genuine copy of vscode running on the desktop, and that something about openvscode-server or our configuration of it is failing to cause this url to be rewritten or resolve to the right thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions