---
number: 6313
title: 'DomAccess:  add rmc CSSsupports  to access CSS.supports()'
author: gplanansky
state: CLOSED
createdAt: '2025-01-27T11:42:15Z'
updatedAt: '2025-01-27T12:32:35Z'
closedAt: '2025-01-27T12:32:34Z'
mergedAt: null
head: dev
base: dev
url: 'https://github.com/neomjs/neo/pull/6313'
---
Add   Neo.main.DomAccess.CSSsupports()  remote method call, to give App worker logic access to the CSS.supports() method.

use case:   test if user text field input, of a css color value, is a valid color value.  This is a bear to do any other way.   Too see how hard check: https://developer.mozilla.org/en-US/docs/Glossary/html_color_codes

**What kind of change does this PR introduce?** (check at least one)
- [x] Bugfix:

**Does this PR introduce a breaking change?** (check one)
- [x] No




## Comments

### `@tobiu` commented on 2025-01-27T12:32:34Z

DomAccess is meant for accessing the DOM => `window.document`

This would better fit the scope of Neo.Main, since it will access `window.CSS`

Before we add lots of methods for requesting very specific attributes or functions, let us do it in a more generic way.

Resolved via https://github.com/neomjs/neo/issues/6314

---

