Re: [csswg-drafts] [css-display][css-pseudo] Interaction of display:contents and ::first-line

> then their first fragments would inherit from section::first-line for sure.

Sure, but then you still have to recursively change the styles on them going down the tree...

That said, what Gecko actually implements is done on the box tree; so for us option 2 would in fact be quite a bit easier to implement, but not because of the "have to look at them all" bit.  Rather it's because it avoids the need to attach multiple styles to a single element (the display:contents thing), which is not something we have infrastructure for right now (we can attach styles to boxes, and one style to an element).

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

Received on Wednesday, 12 July 2017 18:43:01 UTC