Re: [csswg-drafts] [css-transforms] `transform-box:stroke-box` with `vector-effect:non-scaling-stroke` creates a cyclical dependency (#9640)

The CSS Working Group just discussed ``[css-transforms] `transform-box:stroke-box` with `vector-effect:non-scaling-stroke` creates a cyclical dependency``, and agreed to the following:

* `RESOLVED: If the tranform-box is stroke-box and the element has non-scaling-stroke, then the used transform-box is fill-box.`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> emilio: Several transform-related things<br>
&lt;fantasai> emilio: You end up in a circular dependency where you need the containing transform<br>
&lt;fantasai> emilio: What we did for now is what was suggested, which was if you set transform-box: stroke-box, we use the fill-box if you have non-scaling stroke<br>
&lt;fantasai> emilio: other solutions welcome<br>
&lt;fantasai> TabAtkins: [relays ChrisL's comment]<br>
&lt;fantasai> https://github.com/w3c/csswg-drafts/issues/9640#issuecomment-1905952267<br>
&lt;fantasai> emilio: In situations where computing a transform-box specified as stroke-box creates a cyclical dependency, use fill-box instead<br>
&lt;fantasai> TabAtkins: if you set `transform-box: stroke-box` and don't use percentages, then you don't have a dependency<br>
&lt;fantasai> TabAtkins: but we want to do this computation fix even if those observable things<br>
&lt;fantasai> emilio: Let's do it always<br>
&lt;dbaron> emilio: you could see it through transform-origin<br>
&lt;fantasai> dbaron: I don't think you want the cyclical wording into the spec, you want to detail the cases in the spec<br>
&lt;fantasai> dholbert: Isn't it just the `vector-effect: non-scaling-stroke` case?<br>
&lt;fantasai> dbaron: any dependency on descendants?<br>
&lt;fantasai> dholbert: no<br>
&lt;fantasai> TabAtkins: also affects offset property<br>
&lt;dbaron> s/also affects/this should apply to other things that use stroke-box on the element, such as the/<br>
&lt;fantasai> PROPOSED: If the specified tranform-box is stroke-box and the element has non-scaling-stroke, then the used transform-box is fill-box.<br>
&lt;fantasai> emilio: I think this also applies to the border-box value<br>
&lt;fantasai> PROPOSED: If the tranform-box is stroke-box and the element has non-scaling-stroke, then the used transform-box is fill-box.<br>
&lt;fantasai> RESOLVED: If the tranform-box is stroke-box and the element has non-scaling-stroke, then the used transform-box is fill-box.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9640#issuecomment-1942894984 using your GitHub account


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

Received on Wednesday, 14 February 2024 00:21:58 UTC