Closed
Bug 693199
Opened 13 years ago
Closed 13 years ago
media queries: not operator not working for some queries like min-aspect-ration and aspect-ratio
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: aryx, Unassigned)
Details
Attachments
(1 file)
751 bytes,
text/html
|
Details |
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•13 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
Closed: 13 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 2•13 years ago
|
||
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.
Description
•