-
Notifications
You must be signed in to change notification settings - Fork 9
CSS.supports can disagree with CSSOM feature detection #12
Comments
When resolving this issue we should check if https://github.com/foolip/mdn-bcd-collector/pull/416/files#r485522138 as been fixed. It's sort of in the same area of code. |
https://bugs.webkit.org/show_bug.cgi?id=222280 and https://bugs.webkit.org/show_bug.cgi?id=223141 will cause false-positives in WebKit-based browsers for runtime disabled properties when testing with |
Thanks @gsnedders, I hadn't noticed that, I hope we haven't updated data based on such false positives yet. I think the useful next step here would try to depend only on |
This issue affected https://mdn-bcd-collector.appspot.com/tests/css/properties/aspect-ratio in Safari 14.1, where @apple-web-evangelist FYI, there's a risk that other such false positives have occurred. |
OK, so trying to fix this and comparing the before/after test results in Safari 14.1 shows that the properties that go from true to false are In other words, this affects properties behind a runtime flag, but things can also go wrong with prefixed properties. It turns out that |
The same before/after in Chrome reveals a similar problem with I would half expect that there's been some historical weirdness with |
Instead generate both forms for the document.body.style tests where appropriate, to deal with odd -apple- and -epub-prefixed properties. Fixes #12.
Instead generate both forms for the document.body.style tests where appropriate, to deal with odd -apple- and -epub-prefixed properties. Fixes #12.
|
In that case I'll go ahead and remove these properties from mdn-bcd-collector, there will never be a reason to add them to BCD. |
These shouldn't be web exposed and it will hopefully be fixed: #12 (comment)
Bumps [@types/yargs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/yargs) from 17.0.13 to 17.0.14. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/yargs) --- updated-dependencies: - dependency-name: "@types/yargs" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Digging into https://github.com/mdn/browser-compat-data/pull/3667/files/5562af96cde102135a7e643e031f7f1fee71a3f7#diff-ca8acc47e6afb1f4ec0010894b1e7b03 I found that these two tests disagree in Edge:
CSS.supports("font-size-adjust", "inherit")
returns false'fontSizeAdjust' in document.body.style
returns trueCSS.supports("font-size-adjust", "0.5")
also returns false. Tested with https://software.hixie.ch/utilities/js/live-dom-viewer/saved/6808 in Edge 18.I'd checked before that there were no disagreements, but might not have had these results then.
It will be necessary to have a way to resolve cases where two tests for the same feature lead to true and false.
The text was updated successfully, but these errors were encountered: