-
Notifications
You must be signed in to change notification settings - Fork 145
Align type and media attributes from SVGStyleElement with HTMLStyleElement #1001
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
base: main
Are you sure you want to change the base?
Conversation
…ement - type and media no longer have an initial value - type is obsoleted
https://bugs.webkit.org/show_bug.cgi?id=297909 Reviewed by NOBODY (OOPS!). See w3c/svgwg#1001 This aligns SVGStyleElement type and media to use pure attribute reflection which matches how HTMLStyleElement works. This aligns WebKit with Firefox/Gecko. * LayoutTests/imported/w3c/web-platform-tests/svg/styling/attr-style-media-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/svg/styling/attr-style-media.html: Added. * LayoutTests/imported/w3c/web-platform-tests/svg/styling/attr-style-type-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/svg/styling/attr-style-type.html: Added. * Source/WebCore/svg/SVGStyleElement.cpp: (WebCore::SVGStyleElement::type const): Deleted. (WebCore::SVGStyleElement::setType): Deleted. (WebCore::SVGStyleElement::media const): Deleted. (WebCore::SVGStyleElement::setMedia): Deleted. * Source/WebCore/svg/SVGStyleElement.h: * Source/WebCore/svg/SVGStyleElement.idl:
https://bugs.webkit.org/show_bug.cgi?id=297909 Reviewed by NOBODY (OOPS!). See w3c/svgwg#1001 This aligns SVGStyleElement type and media to use pure attribute reflection which matches how HTMLStyleElement works. This aligns WebKit with Firefox/Gecko.
https://bugs.webkit.org/show_bug.cgi?id=297909 Reviewed by Tim Nguyen. See w3c/svgwg#1001 This aligns SVGStyleElement type and media to use pure attribute reflection which matches how HTMLStyleElement works. This aligns WebKit with Firefox/Gecko. Canonical link: https://commits.webkit.org/299252@main
https://bugs.webkit.org/show_bug.cgi?id=297909 Reviewed by Tim Nguyen. See w3c/svgwg#1001 This aligns SVGStyleElement type and media to use pure attribute reflection which matches how HTMLStyleElement works. This aligns WebKit with Firefox/Gecko. Canonical link: https://commits.webkit.org/299252@main
|
https://wpt.fyi/results/svg/styling/attr-style-media.html Firefox and Safari are now aligned. @lukewarlow I have the feeling that the beginning of your issues has been eaten by a cookie monster. Is there a PR? You would like to make on the SVG spec? |
|
This is the PR. I'll fix OP in a bit. |
|
/me put his eyes in his eye sockets again. Sorry. :D |
|
RESOLUTION: 'type' attribute to be deprecated. 'media' attribute resolution deferred for now. |
Align type and media
attributes from
SVGStyleElement with HTMLStyleElement
This aligns the behaviour with Firefox and with the HTMLStyleElement.
WebKit Bug:
https://bugs.webkit.org/show_bug.cgi?id=297909(Fixed to match this behaviour)Firefox Bug: N/A (Current behaviour)
Chromium Bug: https://issues.chromium.org/u/1/issues/441253575
WPT Changes: web-platform-tests/wpt#54529
Fixes #996 and #995