[Webkit-unassigned] [Bug 215941] Add ::marker { font-variant-numeric: tabular-nums; } to UA stylesheet per spec

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 13 08:08:56 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215941

Oriol Brufau <obrufau at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |obrufau at igalia.com

--- Comment #10 from Oriol Brufau <obrufau at igalia.com> ---
(In reply to Darin Adler from comment #7)
> 3) This code change isn’t actually needed for some reason.
Basically this one. font-variant-numeric is already applied in RenderListItem::computeMarkerStyle
https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/rendering/RenderListItem.cpp#L59

However, before bug 214359, I think this wouldn't be reflected in getComputedStyle for unstyled ::marker.

BTW, not sure if it's the same in WebKit, but directly adding ::marker in the UA sheet would have disabled some optimizations in Chromium. I had to do it more carefully. See this comment from the link above:

> Although the CSS Pseudo-Elements Module Level 4 spec. saids to add ::marker to the UA sheet we apply it here as an optimization because it only applies to markers. That is, it does not apply to all elements.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200913/3f533263/attachment.htm>


More information about the webkit-unassigned mailing list