You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(t=>{conststyleMap=createDeclaredStyleMap(t,'--foo: auto');assert_equals(styleMap.get('--Foo'),null);},'Getting a custom property not in the CSS rule returns null');
It seems both Safari and Chrome implement this as returning null, not undefined. Should the spec change? Or should the tests (and implementations) update?
The text was updated successfully, but these errors were encountered:
The current CSS Typed OM spec specifies StylePropertyMapReadOnly's
get()
as:However, the WTP tests for this all seem to expect null to be the return value when property is not in a rule. For example, in this test, https://github.com/web-platform-tests/wpt/blob/b6027abc9f/css/css-typed-om/the-stylepropertymap/declared/get.html#L14, the first test case is:
It seems both Safari and Chrome implement this as returning null, not undefined. Should the spec change? Or should the tests (and implementations) update?
The text was updated successfully, but these errors were encountered: