Re: [csswg-drafts] [Cascade / Pseudo-elements / Values / Fragmentation] currentColor when fragments have differents colors (#1510)

The CSS Working Group just discussed `[Cascade / Pseudo-elements / Values / Fragmentation] currentColor when fragments have different colors`, and agreed to the following:

* `RESOLVED: The return value of gCS to match FF behavior that first-line is ignored in gCS`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [Cascade / Pseudo-elements / Values / Fragmentation] currentColor when fragments have different colors<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/1510<br>
&lt;fantasai> https://github.com/w3c/csswg-drafts/issues/1510#issuecomment-803203212<br>
&lt;emilio> grr, webex interface is confused about whether I'm muted because Linux is confused about what mic I'm using, fantastic :(<br>
&lt;dael> fantasai: We discussed what to do when an element is frag so it has different parentage. span split between first and 2nd line and there's a first-line pseudo. Decided on inheritance and a bunch. Resolved currentColor or em or resolved per fragment<br>
&lt;dael> fantasai: FF has impl this based on test cases in issue. Edited in<br>
&lt;dael> fantasai: Don't have answer when you call API like gCS on the element. Has one style per element. Proposal is define the API which assume single value per box must ignore effect of non-tree abiding elements<br>
&lt;Rossen_> q?<br>
&lt;dael> fantasai: Means span split across 2 lines pretends first-line pseudo is not there. You don't have to compute differently if have broken across lines. Seems to be what FF is doing<br>
&lt;dael> fantasai: Want to run past WG<br>
&lt;dael> Rossen_: Proposed behavior is similar to that of first-line for gCS?<br>
&lt;dael> fantasai: Talking about defining the case of first-line for gCS<br>
&lt;dael> Rossen_: Rephrase: if you have an inline item that has a spec line-height and you do gCS and that line item has a number of fragments, one if first and one in second. gCS will return the first. Perhaps line-height isn't good example. What returns used values<br>
&lt;dael> TabAtkins: Color<br>
&lt;dael> Rossen_: What would color return?<br>
&lt;dael> fantasai: Color it will ignore the first-line style. First line is blue, span on 2nd line and it's black. Span splits it returns black. Span on the first-line still returns black. That way browser doesn't have to take into effect if the span breaks. We ignore first-line styles<br>
&lt;dael> fantasai: Could say take style of first box fragment. That's another possibility<br>
&lt;dael> Rossen_: Okay, makes sense. Thank you<br>
&lt;dael> Rossen_: Any feedback?<br>
&lt;dael> Rossen_: If not we can call for objections<br>
&lt;dael> oriol: Concern is usually cascade is in element tree and this is in fragment tree. Given display:contents you can have elements w/o fragments in frag tree. not clear it's well defined. Might be outside of scope of the issue. It may need extra work in the future in another issue<br>
&lt;dael> Rossen_: Thanks oriol<br>
&lt;dael> fantasai: Either way we need an answer for what gCS returns<br>
&lt;dael> Rossen_: Prop here is have the same behavior as FF and as you described for color?<br>
&lt;dael> fantasai: Yep<br>
&lt;dael> fantasai: 2 things that could make sense. Returnt he styles ignoring first-line. Other is return style of first fragment. FF has impl first option so we propose that.<br>
&lt;dael> Rossen_: Impl PoV this is easier. User PoV these are equally wrong since you don't have per frag access. For consistency sake with current impl I'm in favor of that proposed behavior<br>
&lt;dael> Rossen_: Not hearing other proposals. Objections to resolve return value of gCS to match FF behavior that first-line is ignored in gCS<br>
&lt;dael> RESOLVED: The return value of gCS to match FF behavior that first-line is ignored in gCS<br>
&lt;dael> Rossen_: Anything else on this?<br>
&lt;dael> fantasai: Just need to fold in edit<br>
</details>


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


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

Received on Wednesday, 31 March 2021 16:18:49 UTC