Re: [csswg-drafts] [css-pseudo] SVG only CSS text properties should not apply to ::placeholder, but should apply to ::first-line/::first-letter (#9918)

Or maybe everything is working correctly, and no work is needed?

Currently, SVG properties can be applied to HTML elements and cascade as normal. They just don't do anything to the rendering.

Test case: https://jsfiddle.net/dmjhtnps/ , where we can see SVG property `rx` is treated as a normal property on HTML elements. The behavior is same on Chrome and Firefox.

So SVG properties can be always allowed in `::first-letter` and `::first-line`, and they don't do anything if the originating element is not an SVG element.

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


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

Received on Thursday, 22 February 2024 04:57:01 UTC