Bug 84151
Summary: | '(orientation)' media query incorrectly returns false | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Meyer <eric> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, phiw2, rniwa, shanestephens, shezbaig.wk, simon.fraser, zalan |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://meyerweb.com/eric/css/tests/mq-valueless.html |
Eric Meyer
If you go to the reference URL, you’ll see that test 5 shows false even though 'orientation' is a supported media feature descriptor. According to http://www.w3.org/TR/css3-mediaqueries/#media1, it should return true:
"For a media feature feature, (feature) will evaluate to true if (feature:x) will evaluate to true for a value x other than zero or zero followed by a unit identifier (i.e., other than 0, 0px, 0em, etc.)."
Apparently that also applies to keyword-based descriptors like 'orientation'. For comparison, Firefox and Opera pass the test.
Tested in Version 5.1.5 (6534.55.3, r114368), which I downloaded fresh before running this test.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
I am unable to reproduce this bug using attached test case from URL field and it highlight as "true" to show that it is activated and [span1] as highlighted similar to Chrome Canary 106 and Firefox Nightly 105.
While (resolution) query is something which is different for Safari 15.6 and does not seems to show as working. Thanks!