[SVG] Remove support of width and height as presentation attributes on nested <svg> elements#59086
Draft
chromium-wpt-export-bot wants to merge 1 commit intomasterfrom
Draft
[SVG] Remove support of width and height as presentation attributes on nested <svg> elements#59086chromium-wpt-export-bot wants to merge 1 commit intomasterfrom
chromium-wpt-export-bot wants to merge 1 commit intomasterfrom
Conversation
attributes on nested <svg> elements Per the SVG WG resolution for the issue [1] and the spec update [2], CSS `width` and `height` properties are honored as presentation attributes only for <rect>, <image>, <foreignObject>, and outer-SVG elements. For nested <svg>, it means width and height properties do not apply as CSS properties now. This CL reverts the changes from CL:6573214 which added CSS width/ height support on nested <svg>. This CL also contains changes to relevant WPTs such that they do not honour CSS width and height for nested/inner <svg>. [1] w3c/svgwg#1057 [2] w3c/svgwg#1059 Bug: 40409865, 41105358 Change-Id: I2e6bacee63f0079f921d7366a2750a0418415cbc
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Per the SVG WG resolution for the issue [1] and the spec update
[2], CSS
widthandheightproperties are honored as presentationattributes only for <rect>, <image>, <foreignObject>, and outer-SVG
elements. For nested <svg>, it means width and height properties
do not apply as CSS properties now.
This CL reverts the changes from CL:6573214 which added CSS width/
height support on nested <svg>.
This CL also contains changes to relevant WPTs such that they do
not honour CSS width and height for nested/inner <svg>.
[1] w3c/svgwg#1057
[2] w3c/svgwg#1059
Bug: 40409865, 41105358
Change-Id: I2e6bacee63f0079f921d7366a2750a0418415cbc
Reviewed-on: https://chromium-review.googlesource.com/7703544
WPT-Export-Revision: 227758bc7f00a361dd8e4c87d5c10821aa298b2b