Bug 84151

Summary: '(orientation)' media query incorrectly returns false
Product: WebKit Reporter: Eric Meyer <eric>
Component: CSSAssignee: 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
Reported 2012-04-17 07:06:46 PDT
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
Ahmad Saleem
Comment 1 2022-08-06 18:12:13 PDT
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!
Note You need to log in before you can comment on or make changes to this bug.