Re: [css-houdini-drafts] [css-typed-om-1] What does computedStyleMap() do on elements that are in documents with no browsing context?

> What are the various ways that browsers handle this with getComputedStyle()?

Last I checked, some apply styles from the window that getComputedStyle was called on.  Some apply only UA (and user?) styles.  Some apply UA styles and inline style attributes but nothing else.

Note that UA and user styles can include media queries, so fully defining computed style means defining which of those match.  For example, what values of the "resolution" media query match on a system with two monitors that have different resolutions when the element involved is in an XHR responseXML document?  Yes, I know this case is moderately ridiculous to define sanely.  :(

-- 
GitHub Notification of comment by bzbarsky
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/659#issuecomment-366413072 using your GitHub account

Received on Saturday, 17 February 2018 03:32:44 UTC