W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

Re: [csswg-drafts] [css-pseudo] Add stroke-color and stroke-width to the list of highlight properties (#2362)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Fri, 28 Dec 2018 22:39:16 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-450438254-1546036755-sysbot+gh@w3.org>
I'm not sure that "layout overflow" is a meaningful concept in SVG. There's currently no way that a stroke  size on one element can affect the layout of another rendered element, although it can affect marker sizing (Markers being "decorations" on the same element as the stroke property -- from a rendering-tree perspective they'd be like child content.)

Chrome already supports the stroke and fill properties on `::selection` in SVG. (https://codepen.io/AmeliaBR/pen/VqMrPV) although not `paint-order`, which I would add to the list. 

In general, selection styling and SVG is a mess, because there is no official support for background color on SVG text spans, yet it's still part of the default selection styles in most browsers. But that's a separate issue that shouldn't hold up these changes.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2362#issuecomment-450438254 using your GitHub account
Received on Friday, 28 December 2018 22:39:17 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:41 UTC