- From: Hamish Willee via GitHub <sysbot+gh@w3.org>
- Date: Fri, 05 Aug 2022 02:26:12 +0000
- To: public-svg-issues@w3.org
hamishwillee has just created a new issue for https://github.com/w3c/svgwg: == SVGStyleElement.media setter behaviour not specified == The [spec IDL](https://svgwg.org/svg2-draft/styling.html#InterfaceSVGStyleElement) indicates that the `SVGStyleElement.media` is writeable, and at the same time the the same section indicates the property should reflect the value of the corresponding attribute on the style tag. However it says nothing about whether the value can be set and how that case is handled (as far as I can tell, neither does `HTMLStyleElement.media`). All it says is that the value reflects the attribute - and if this is settable it probably should say "_initially_ reflects the ...". The reason I ask is that in user testing on Chrome and Firefox (104) - both browsers let you set a value - Chrome ignores any value set (well, at least the query I tested. - FF respects a set value that is a valid media query. Can you confirm whether the intent is for this to be settable, and whether the spec can be updated to confirm that too? This follows from MDN docs in development at https://github.com/mdn/content/pull/19172. There is a live example at https://pr19172.content.dev.mdn.mozit.cloud/en-US/docs/Web/API/SVGStyleElement/media#result that can be run on Chrome/Firefox to demonstrate the different behaviour. Please view or discuss this issue at https://github.com/w3c/svgwg/issues/891 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 5 August 2022 02:26:13 UTC