Skip to content

Commit 10ab4af

Browse files
authored
Update README with links to GitHub issues
Added references to GitHub issues for further discussion on scalability and text classification.
1 parent cda4931 commit 10ab4af

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ We'd like to introduce a new CSS property.
178178
```
179179
The maximum scaling factor for `grow`, or the minimum scaling factor for `shrink`.
180180

181+
See https://github.com/w3c/csswg-drafts/issues/12887.
181182

182183
### Examples
183184

@@ -264,29 +265,31 @@ Lines narrower than the container width are justified, and lines wider than the
264265
## Detailed design discussion
265266

266267
* Items contained in a line box are classified as either "scalable" or "static", and only "scalable" items are affected by this feature.
267-
* Texts are scalable.
268-
* Should we assume text with a fixed font-size as "static"? e.g. `<div style="text-grow:per-line; font-size:24px">scalable <span style="font-size:1.1em">font-relative font-size should be scalable</span> <span style="font-size:30px">non-relative font-size; static-or-scalable?</span>...`
268+
* See https://github.com/w3c/csswg-drafts/issues/12888.
269+
* All texts are scalable even if a text has a font-size diffrent from the container font-size.
270+
* %-based `letter-spacing` and `word-spacing` are scalable.
269271
* Replaced elements such as `<img>` and `<input>` are static.
270272
* Atomic inlines are static
271-
* What about padding/border/margin of inline boxes?
273+
* `padding`, `border`, and `margin` for inline direction are static.
274+
* This classification may be configurable in the future.
272275
* How does this interact with properties with `<length>`.
273-
* Should the length be scaled or not? Depends on its units (`px`, `em`, `rem`, `%`, `vw`, `vh`, etc.)?
274-
* Property examples: `line-height`, `letter-spacing`, `word-spacing`, `text-indent`, `vertical-align`, ...
276+
* Should the `<length>` be scaled or not? See https://github.com/w3c/csswg-drafts/issues/12888.
277+
* In general, `<length>` values are not scaled. `4px` should be `4px` even if a line is scaled.
278+
Font-relative length units such as `em` are not scalable too. Exceptionally, the percentage
279+
values ​​of some CSS properties should be linked to the rendered font size, so they are scalable.
275280
<!--
276281
* The methods vaues `scale` and `font-size` that can be specified for `<fit-method>` can produce similar visual results. Through prototype implementation and discussion, we aim to decide whether to standardize both or remove one of them.
277282
* `scale` linearly scales up the glyph data obtained at the original font size for rendering. Consequently, the displayed glyph might differ from the ideal glyph intended for that size. However, since the glyph data retrieval process only happens once, it operates significantly faster.
278283
* `font-size` renders the ideal glyph for the displayed size. This process can be considerably slower because it necessitates trying out glyphs of various sizes.
279284
-->
285+
<!--
280286
* How to find the best-fit font-size?
281287
There are cases where the line width becomes smaller even if the font-size is increased.
282-
<!--
283288
* `font-weight` or `font-width` for `<fit-method>`?
284289
They work well only with specific fonts, and they don't offer the flexibility to fit text to any width. So we don't apply them in the initial proposal.
285290
-->
286291
* Accessibility: See https://github.com/w3c/csswg-drafts/issues/12886.
287-
* Text decoration, emphasis marks, ruby annotations should work well.
288-
* Line's available width can depend on its block offset. e.g. `float` and `initial-letter`.
289-
* `text-align` should be applied after this feature. It will be applied only to narrow lines.
292+
* Text decoration, emphasis marks, ruby annotations should work well with scaled font-size.
290293
* This feature should not affect the container's intrinsic size.
291294

292295

0 commit comments

Comments
 (0)