Bug 268620 - SVGStyleSheet tests fails while CSSOM passes on `StyleSheet_property_values`
Summary: SVGStyleSheet tests fails while CSSOM passes on `StyleSheet_property_values`
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar, WPTImpact
Depends on:
Blocks:
 
Reported: 2024-02-02 06:58 PST by Ahmad Saleem
Modified: 2024-02-08 13:11 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2024-02-02 06:58:42 PST
Hi Team,

While looking into WPT Test cases failure, I noticed that we fail `SVG` one while passing CSS one.

So just raising so we can investigate and fix it.

WPT Test Case (Live Link) - http://wpt.live/svg/styling/style-sheet-interfaces.svg

WPT Test Case: https://wpt.fyi/results/svg/styling/style-sheet-interfaces.svg?label=master&label=experimental&aligned

Thanks!
Comment 2 Ahmad Saleem 2024-02-02 09:44:28 PST
We do fail on `ownerNode` and if I look into `CSSStyleSheet` Interface:

https://drafts.csswg.org/cssom/#the-stylesheet-interface

Web-Spec says:

readonly attribute (Element or ProcessingInstruction)? ownerNode;

While we have:

readonly attribute Node ownerNode;

___

We don't have it nullable and also not taking ProcessingInstruction into account. I know in the past, I learnt that ProcessingInstruction is also node type. So it is covered by Node but I remember looking into Mozilla Firefox and Chromium / Blink and it was nullable at least.
Comment 3 Radar WebKit Bug Importer 2024-02-08 13:11:03 PST
<rdar://problem/122574381>