Closed Bug 2046222 Opened 2 days ago Closed 18 hours ago

[wpt-sync] Sync PR 60496 - [SVG] Align SVGStyleElement type and media with HTMLStyleElement

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 60496 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/60496
Details from upstream follow.

Vinay Singh <vinaysingh@microsoft.com> wrote:

[SVG] Align SVGStyleElement type and media with HTMLStyleElement

SVGStyleElement.type returned "text/css" and SVGStyleElement.media
returned "all" when the corresponding content attribute was unset.
This diverged from HTMLStyleElement, which simply reflects the raw
attribute value (the empty string when unset) per the IDL DOMString
reflection contract. Additionally, dynamic mutations of the media and
type content attributes on an SVG \<style> element were ignored — the
associated stylesheet was never updated — while the HTML element handles
both cases.

A follow-up CL will convert this to [Reflect] DOMString in the IDL and
drop the now-redundant C++ setters, matching HTMLStyleElement.idl's
style.

Bug: 441253575
Change-Id: I8224e4b1c6104ce69472df7351eb430f59402b11
Reviewed-on: https://chromium-review.googlesource.com/7895659
WPT-Export-Revision: 6a6ca89be98cc64c39a4dbe64d8ef4c84d8e9bb9

Component: web-platform-tests → SVG
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 5 tests and 3 subtests

Status Summary

Firefox

OK : 5
PASS: 15

Chrome

OK : 5
PASS: 9
FAIL: 6

Safari

OK : 5
PASS: 11
FAIL: 4

Links

GitHub PR Head
GitHub PR Base

Status: NEW → RESOLVED
Closed: 18 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
You need to log in before you can comment on or make changes to this bug.