element-web icon indicating copy to clipboard operation
element-web copied to clipboard

HTML chat exports appear to be missing CSS, and their text is weirdly small

Open turt2live opened this issue 2 years ago • 4 comments

Steps to reproduce

  1. Export a room using the HTML format. Timeline settings are not terribly relevant.
  2. Open that export after extracting it.

Outcome

What did you expect?

A prettier export.

What happened instead?

image

It feels like when Compound (or similar) was introduced, a critical set of class names/selectors changed, but the export code wasn't made aware of those changes.

Operating system

Windows 11

Application version

Element Nightly version: 0.0.1-nightly.2023121201 Crypto version: Olm 3.2.15

How did you install the app?

The Internet

Homeserver

t2l.io

Will you send logs?

Yes

turt2live avatar Dec 14 '23 05:12 turt2live

also worth noting that the avatars aren't loading, but the export does contain them. This might be a Windows issue, though.

turt2live avatar Dec 14 '23 05:12 turt2live

this isn't uncommon; it consistently breaks the whole feature...

ara4n avatar Jan 05 '24 18:01 ara4n

Its uncommon because we don't believe the feature is widely used, there's no upvotes on the issue to suggest otherwise hence "Most users are unlikely to come across this issue"

t3chguy avatar Jan 05 '24 18:01 t3chguy

I use this more and more now we don't share keys on invite, and the generated HTML is genuninely difficult to read (when it used to be great).

lampholder avatar Jun 27 '24 17:06 lampholder

Can confirm the regression is due to Compound adoption

t3chguy avatar Jul 12 '24 16:07 t3chguy

So this is made interesting by the JS CSS API being super weird

image

This rule gets exploded into a bunch of blank rules

image

Looks like the issue is explained a little in https://www.w3.org/TR/css-variables-1/#variables-in-shorthands

Chrome & FF behave identically, and Chrome closed it as a wontfix https://issues.chromium.org/issues/40252592

t3chguy avatar Jul 12 '24 17:07 t3chguy