-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Update SVG attributes page #41583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
estelle
wants to merge
8
commits into
main
Choose a base branch
from
estelle-patch-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+29
−25
Open
Update SVG attributes page #41583
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7186c43
Refactor SVG attributes page. Link events
estelle 37f0879
Update files/en-us/web/svg/reference/attribute/index.md
estelle ec0816d
Merge branch 'main' into estelle-patch-1
estelle 77d3088
link
estelle e6b1613
note
estelle 7b7036b
Fixes
Josh-Cena 255b296
Merge branch 'main' into estelle-patch-1
estelle 6a52aea
revert event list
estelle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -291,37 +291,44 @@ Below is a list of all of the attributes available in SVG along with links to re | |
|
||
## SVG attributes by category | ||
|
||
### Generic attributes | ||
|
||
- Core attributes | ||
- {{SVGAttr("id")}} | ||
- {{SVGAttr("class")}} | ||
- {{SVGAttr("style")}} | ||
- {{SVGAttr("lang")}} | ||
- {{SVGAttr("tabindex")}} | ||
- {{SVGAttr("autofocus")}} | ||
- {{SVGAttr("xml:lang")}} | ||
- {{SVGAttr("xml:space")}} | ||
|
||
- Conditional processing attributes | ||
- {{SVGAttr("requiredExtensions")}} | ||
- {{SVGAttr("requiredFeatures")}} | ||
- {{SVGAttr("systemLanguage")}} | ||
### Core attributes | ||
|
||
The core attributes are global attributes. | ||
|
||
- {{SVGAttr("id")}} | ||
- {{SVGAttr("class")}} | ||
- {{SVGAttr("style")}} | ||
- {{SVGAttr("lang")}} | ||
- {{SVGAttr("tabindex")}} | ||
- {{SVGAttr("xml:lang")}} | ||
- {{SVGAttr("xml:space")}} | ||
|
||
### Conditional processing attributes | ||
|
||
The conditional processing attributes control whether or not the element on which it appears is processed. | ||
|
||
- {{SVGAttr("requiredExtensions")}} | ||
- {{SVGAttr("requiredFeatures")}} | ||
- {{SVGAttr("systemLanguage")}} | ||
|
||
### XLink attributes | ||
|
||
- {{SVGAttr("xlink:href")}}{{deprecated_inline}} | ||
The XLink attributes can reference resources. | ||
|
||
- {{SVGAttr("xlink:href")}} {{deprecated_inline}} | ||
- {{SVGAttr("xlink:type")}} | ||
- {{SVGAttr("xlink:role")}} | ||
- {{SVGAttr("xlink:arcrole")}} | ||
- {{SVGAttr("xlink:title")}} | ||
- {{SVGAttr("xlink:title")}} {{deprecated_inline}} | ||
- {{SVGAttr("xlink:show")}} | ||
- {{SVGAttr("xlink:actuate")}} | ||
Comment on lines
+318
to
324
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of these should be deprecated |
||
|
||
### Presentation attributes | ||
|
||
All SVG presentation attributes can be used as CSS properties. | ||
|
||
> [!NOTE] | ||
> All SVG presentation attributes can be used as CSS properties. | ||
> Whether these attributes are presentation attributes depends on the element on which they are set. For example, `x` is a presentation attribute for {{svgelem("circle")}}, but not for {{svgelem("tspan")}}; it's the coordinate of the starting point of the text baseline, or the x coordinate of each individual glyph if a list of values is provided. | ||
|
||
- {{SVGAttr("alignment-baseline")}} | ||
- {{SVGAttr("baseline-shift")}} | ||
|
@@ -395,7 +402,7 @@ Below is a list of all of the attributes available in SVG along with links to re | |
|
||
### Filters attributes | ||
|
||
- Filter primitive attributes | ||
- Filter primitive attributes (presentation attributes) | ||
- : {{SVGAttr("height")}}, {{SVGAttr("result")}}, {{SVGAttr("width")}}, {{SVGAttr("x")}}, {{SVGAttr("y")}} | ||
- Transfer function attributes | ||
- : {{SVGAttr("type")}}, {{SVGAttr("tableValues")}}, {{SVGAttr("slope")}}, {{SVGAttr("intercept")}}, {{SVGAttr("amplitude")}}, {{SVGAttr("exponent")}}, {{SVGAttr("offset")}} | ||
|
@@ -438,7 +445,6 @@ Below is a list of all of the attributes available in SVG along with links to re | |
- **`onend`** | ||
- **`onended`** | ||
- **`onerror`** | ||
- **`onerror`** | ||
- **`onfocus`** | ||
- **`onfocusin`** | ||
- **`onfocusout`** | ||
|
@@ -467,8 +473,6 @@ Below is a list of all of the attributes available in SVG along with links to re | |
- **`onrepeat`** | ||
- **`onreset`** | ||
- **`onresize`** | ||
- **`onresize`** | ||
- **`onscroll`** | ||
- **`onscroll`** | ||
- **`onseeked`** | ||
- **`onseeking`** | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to restore
autofocus
in the new list