media queries: not operator not working for some queries like min-aspect-ration and aspect-ratio

VERIFIED INVALID

Status

()

Core
CSS Parsing and Computation
VERIFIED INVALID
7 years ago
7 years ago

People

(Reporter: aryx, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Created attachment 565827 [details]
testcase

Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Mozilla/5.0 (Windows NT 5.1; rv:10.0a1) Gecko/20111001 Firefox/10.0a1

I'm trying to apply a style sheet using the following media query:
@media (not min-aspect-ratio: 1/1)

It doesn't get applied and I also had no success with:
@media (max-aspect-ratio: 1/1) and (not aspect-ratio: 1/1)

https://developer.mozilla.org/En/CSS/Media_queries#Logical_operators lists |(not color)| as an example which I cannot verify due to lack of an appropriate device. Or does |not| only apply to boolean query elements?

Updated

7 years ago
Component: DOM: CSS Object Model → Style System (CSS)
'not' only works at the start of a media query; it doesn't go inside expressions.  (So in a media query list, it can happen either at the start or right after a comma.)
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INVALID
Thank you, |not all and (min-aspect-ratio: 1/1)| works, shortening it by removing |all and| was a bad idea. (|not| in the expressions was already the last try.)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.