Re: [csswg-drafts] [css-box-4][css-break-4] Do terms like "truncate", "discard" and "trim" require more specification? (margin-break/margin-trim) (#3443)

1. Does "truncate" without a target mean "truncate to zero"?

This probably depends on the context of the sentence, the one I see is referencing truncation to zero in the previous sentence.

2. Does "truncate to X" mean "set value to X" or "set value to X if it is larger than X" (so "truncate to zero" would not change negative values)?

The latter, per English definition. You can't increase the size of something by truncating it.

3. Same as 1. and 2. but for "trim"

Same.

4. Does "discard" mean "set value to zero" (in contrast to things like "skip any processing that requires the value and do some special alternative steps...")?

Yes.

5. If those change the value, can we assume it is the used value (e.g. of margin-top) that is changed, not affecting inheriting children but the resolved style for getComputedStyle?

Yes.


-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3443#issuecomment-1989125535 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 11 March 2024 18:11:59 UTC