Comments (5)
I agree this should be part of default styling so all specs benefit from it. So this needs to be discussed in tr-design. I think we also need to reduce some margins and paddings on small screens and high zoom values so more text can be shown in a single line.
For reference: Reflow in WCAG 2.1
from tr-design.
Transferred to tr-design repo...
from tr-design.
The problem with making this the default is that sometimes line breaks are semantically important to the example. So the stylesheets apply overflow: auto
to allow overflowing text to be seen, but they don't actually allow wrapping because that could distort the example.
Individual specs can add rules to enable wrapping, or we could add a pre.wrap { overflow-wrap: break-word } rule to base.css to make it easier to enable wrapping; but I wouldn't want to enable it by default on all pre elements because that can break some specs.
from tr-design.
+1 to @fantasai. In addition, this would be a breaking change if we were modifying the default.
If we had a pre.wrap CSS class, would this be of enough interest? Neither Respec nor Bikeshed contain such a style rule so far, which tells me this isn't used significantly.
from tr-design.
If we had a pre.wrap CSS class, would this be of enough interest?
As an individual rule it's a bit pointless. I don't want to add it to the hundreds of examples across the specs I work on, and have to keep remembering to add it on every time we add a new one.
Could you do something like a global body.example-wrap class, so that all pre tags in the body get wrapped?
That would be better than having to inline a rule manually, and would also presumably allow it to be documented so that others can be made aware of this issue.
from tr-design.
Related Issues (20)
- Bidi support
- WCAG 2.2 target size issues on Table of contents HOT 1
- Should "It is not a W3C Standard nor is it on the W3C Standards Track." be more clearly displayed? HOT 1
- Linking to latest Snapshot
- Auto-add title attribute for amendments
- Add a "domintro" style HOT 12
- Links within `ins` elements cannot be distinguished visually HOT 5
- Incorporate RFC2119 styling HOT 5
- Styling Audit HOT 1
- Where are the current styles? HOT 3
- Dashed underline for text insertion style not working HOT 2
- Upstream style for test boxes generated by bikeshed
- Upstream "algo container" styles to W3C stylesheet? HOT 8
- Images for invisible, whitespace, and combining characters HOT 5
- current "Single Codepoint Template" is incorrect and produces poor rendering
- .dark class for dark mode HOT 3
- Provide styles for sticky table headers HOT 1
- Table of Contents header contrast too low in dark mode
- fixup.js: open `<details>` when referencing ID inside details HOT 1
- Document convention - Unnecessarily hard to read high stakes information HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tr-design.