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

Right, it was an accident when I implemented `::marker` that it applies text decorations. I'm currently [removing our legacy rendering path](https://bugzilla.mozilla.org/show_bug.cgi?id=1542807) for `list-style-type/image` markers and instead creating generated content and making it take the same path as `::marker { content: ...}`. I'll address this at the same time to make all markers have the same (old) behavior.

That said, I'm willing to decorate _inside_ markers by default as suggested if we add `display` to the list of supported `::marker` properties to enable authors to opt out from decorations with `::marker { display: inline-block }` or some such.  We should give authors the tools they need to workaround this backwards-incompatible change. As I've said before, there's no reason to tie authors' hands behind their back with these unmotivated restrictions on `::marker` anyway. It _literally_ goes through the same box construction, layout and rendering paths as `::before`/`::after` which doesn't have these property restrictions. (Granted, there's some special sauce to position an outside marker and make it influence the primary box block-size, but that doesn't really motivate these restrictions either. We can sort that out separately in #3771). Giving authors explicit control over what's included/excluded from decoration, either via a new property, or a new value on an existing property (like `text-decoration-skip`) also works.

The table of results above is incomplete though. It appears Chrome (both legacy and LayoutNG) never underlines `list-style-type:disc` etc.  It also handles `<li>` without a parent `<ol>`/`<ul>` differently (it underlines outside markers): [testcase](https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=8984).

I tend to think that all types (images excluded obviously) of inside markers should behave the same w.r.t decorations. Outside markers too, whether they have a `<ol>`/`<ul>` parent or not.

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


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

Received on Sunday, 7 March 2021 04:19:05 UTC