smtp4dev icon indicating copy to clipboard operation
smtp4dev copied to clipboard

"Feature `table-layout` not found on `thunderbird.macos`"

Open jamesstonehill opened this issue 1 year ago • 2 comments

When running the server through Docker (using the docker-compose in the project as a starting template), I'm seeing this error message when opening the dashboard in the browser.

For my browser I'm using Chrome version 127.0.6533.88 (Official Build) (arm64). For OS I'm using Mac OS version 14.5 (23F79).

image

jamesstonehill avatar Aug 01 '24 11:08 jamesstonehill

Thanks for reporting this. I can reproduce this when using that rule in a CSS style tag.

This seems to be an issue with the doiuse-email library which we are using: https://github.com/shellscape/doiuse-email/blob/3549c2b30be512cc907933cf822b77e59d52e643/src/doiuse.ts#L82

We can see in the data it uses, that indeed thunderbird.macos is not included for that CSS feature: https://github.com/shellscape/doiuse-email/blob/3549c2b30be512cc907933cf822b77e59d52e643/src/data/can-i-email.json#L12390

Even in the latest data, this is not there: https://raw.githubusercontent.com/hteumeuleu/caniemail/refs/heads/main/_features/css-table-layout.md

The caniemail website site shows this in grey: Image https://www.caniemail.com/features/css-table-layout/

So I guess this means the feature status is not known in that client. Therefore the bug seems to be in how doiuse-email handles this. Throwing an error doesn't seem the best course of action. It could return those as 'unknown status' warnings instead.

I will look at either submitting a bug or PR to fix (if author is open/responsive) or forking/replacing this library if not.

rnwood avatar Apr 25 '25 19:04 rnwood

PR #1739 created for this.

Todo: submit the package patch for caniuse-email upstream.

rnwood avatar May 01 '25 20:05 rnwood