Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS changes reduce readability of documents #61

Open
pfps opened this issue May 20, 2023 · 6 comments
Open

CSS changes reduce readability of documents #61

pfps opened this issue May 20, 2023 · 6 comments

Comments

@pfps
Copy link
Contributor

pfps commented May 20, 2023

Many working group documents have had CSS changes applied to them, for example w3c/rdf-turtle#20, which include code like:

    @media (max-width: 850px) {
        table th, table td { font-size: 12px; padding: 3px 4px;}
        table.ex th, table.ex td {overflow-x: scroll; max-width: 42vw !important;}

This change has the effect of reducing the side of text in tables when window width falls below a 850px, which occurs in many situations, not just on small devices. The reduced size makes it harder to read tables. In at least some cases there is no benefit to reducing the text size as the table can be rendered with no problems without reducing the text size.

Here is a screenshot showing the size difference.

Screenshot from 2023-05-20 08-12-28

Note how when the body text is small but easily readable the text in the table is less readable. There is no reason to reduce the table text size here as the table can be rendered at this width with no problems.

@TallTed
Copy link
Member

TallTed commented May 31, 2023

I agree with @pfps that this dynamic change of font size is problematic. Barring revelation of a strong justification for it, I think this aspect of the "improving display on mobile phones" CSS changes, which I do not think it accomplishes, should be undone/removed.

@pchampin
Copy link
Contributor

I believe that the problematic changes have been reverted.
Is it ok to close this issue?

@pfps
Copy link
Contributor Author

pfps commented Feb 13, 2025

Have they? What PRs?

@afs
Copy link
Contributor

afs commented Feb 13, 2025

See the current state
https://www.w3.org/TR/rdf12-turtle/#abbrev

@pfps
Copy link
Contributor Author

pfps commented Feb 13, 2025

That table looks good. What about other tables and other documents? The change went in to many documents, with maybe only Semantics being excepted.

@TallTed
Copy link
Member

TallTed commented Feb 14, 2025

I use Web Developer extension in Chrome, which has Web Developer Responsive Layouts, which show how the same web page will look in variously sized viewports, smaller and larger than the browser window they're loading in. This was very helpful in checking this issue circa May 2023.

When I try to check https://www.w3.org/TR/rdf12-turtle/#abbrev now, none of the viewports populate, and I get a message that says, "If the responsive layouts are not loading it is because the website is blocking the ability for it to be loaded in an iframe."

Does anyone know of some magic that can make loading in an iframe work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants