content icon indicating copy to clipboard operation
content copied to clipboard

SVG presentation properties not included in CSS cascade information

Open BeksOmega opened this issue 9 months ago • 3 comments

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/Cascade

What specific section or headline is this issue about?

Maybe https://developer.mozilla.org/en-US/docs/Web/CSS/Cascade#author_styles_inline_styles_layers_and_precedence

What information was incorrect, unhelpful, or incomplete?

There's no reference to how presentation attributes (e.g. <path fill="#fff" ... />) in svg are considered. I assumed that they were treated as inline styles, but this is incorrect.

What did you expect to see?

Presentation attributes are treated as having 0-specificity, and being first in the order of author styles.

Do you have any supporting links, references, or citations?

https://www.w3.org/TR/SVG11/styling.html#:~:text=For%20user%20agents,%E2%80%98style%E2%80%99%20attributes.

Do you have anything more you want to share?

No response

MDN metadata

Page report details
  • Folder: en-us/web/css/cascade
  • MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/Cascade
  • GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/css/cascade/index.md
  • Last commit: https://github.com/mdn/content/commit/88930816e169c5b51afdfcd22c3b2c54383a22b7
  • Document last modified: 2023-11-22T13:04:52.000Z

BeksOmega avatar May 03 '24 23:05 BeksOmega

@BeksOmega can you please assign me!! on this issue

hariharan0905 avatar May 04 '24 18:05 hariharan0905

Hiya @hariharan0905 I'm not a maintainer on this repo, just someone filing a bug =) Once the maintainers have time to take a look they'll see if it makes sense to fix this!

BeksOmega avatar May 06 '24 15:05 BeksOmega

@BeksOmega thank you for your infromation!

hariharan0905 avatar May 06 '24 15:05 hariharan0905

@BeksOmega ok sure!

hariharan0905 avatar May 27 '24 16:05 hariharan0905