learn-cs | LearnCS - website with resources | Awesome List library
kandi X-RAY | learn-cs Summary
kandi X-RAY | learn-cs Summary
LearnCS - website with resources for independently learning computer science.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of learn-cs
learn-cs Key Features
learn-cs Examples and Code Snippets
Community Discussions
Trending Discussions on learn-cs
QUESTION
In the svg2-draft specs fill
is not listed as one of the valid attributes of an svg
element.
However fill
is an inherited HTML property and CSS property, so it will be inherited by svg shapes.
Is it acceptable to use the fill
attribute &/or style on an svg
element?
As opposed to using fill on the shapes (e.g. ) directly.
Stretch question: Is it generally acceptable to use inheritable attributes/styles on any element regardless of whether it is a valid attribute/style (for that element) for the sole purpose of those attribute/styles being inherited to their intended child elements?
For example:
...ANSWER
Answered 2019-Nov-15 at 05:41In the svg2-draft specs fill is not listed as one of the valid attributes of an svg element.
That's not correct. fill
is listed under presentation attributes.
So the answer to your question is: Yes. It is acceptable. :)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install learn-cs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page