Re: [csswg-drafts] [css-lists] Are outside markers out-of-flow? (#4574)

In Chromium LayoutNG, outside markers are implemented as inline-blocks, and text decorations are not supposed to be propagated to atomic inlines. So doing that seemed a bug, which has been fixed as a side-effect of my work for implementing ::marker.

Decoration propagations for outside markers are mostly interoperable now, but not for inside ones. [Testcase](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0A.inside%20%7B%20list-style-position%3A%20inside%20%7D%0Ali%20%7B%20text-decoration%3A%20underline%3B%20white-space%3A%20pre%20%7D%0Ali%3Anth-child(1)%20%7B%20list-style-type%3A%20decimal%20%7D%0Ali%3Anth-child(2)%20%7B%20list-style-type%3A%20%221.%20%22%20%7D%0Ali%3Anth-child(3)%3A%3Amarker%20%7B%20content%3A%20%221.%20%22%20%7D%0A%3C%2Fstyle%3E%0A%3Col%3E%0A%20%20%3Cli%3Eoutside%3C%2Fli%3E%0A%20%20%3Cli%3Eoutside%3C%2Fli%3E%0A%20%20%3Cli%3Eoutside%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Col%20class%3D%22inside%22%3E%0A%20%20%3Cli%3Einside%3C%2Fli%3E%0A%20%20%3Cli%3Einside%3C%2Fli%3E%0A%20%20%3Cli%3Einside%3C%2Fli%3E%0A%3C%2Fol%3E)

| Firefox | Chromium<br>LayoutNG | Chromium<br>legacy | WebKit | Edge |
| -- | -- | -- | -- | -- |
| ![firefox](https://user-images.githubusercontent.com/7477678/71281536-72508900-235e-11ea-9726-908ef1d8fdbc.png)  | ![layoutng](https://user-images.githubusercontent.com/7477678/71281544-7aa8c400-235e-11ea-9bb5-87be8ddeef7f.png) | ![legacy](https://user-images.githubusercontent.com/7477678/71281559-82686880-235e-11ea-977b-7f9af42f0fe4.png) | ![webkit](https://user-images.githubusercontent.com/7477678/71281629-b04dad00-235e-11ea-80f1-2e97e410fa35.png) | ![edge](https://user-images.githubusercontent.com/7477678/71281671-c65b6d80-235e-11ea-805b-2bf93cb2f6d4.png) |

> It's also worth noting that outside markers influence the first line's line-box

This is a MAY in the spec. For example Firefox doesn't seem to always do it, so outside markers can seem out-of-flowish. But Chromium does it, so that's a convincing argument against out-of-flow.










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

Received on Friday, 20 December 2019 19:34:46 UTC