summaryrefslogtreecommitdiff
path: root/src/parse/mq.h
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2017-02-04 19:43:34 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-03-10 13:42:03 +0000
commite47d8dcc95f8fbe830a2b7852ba0af0d60f1a29b (patch)
tree80522ceacbce492e7b222de59da27354b1c5adfe /src/parse/mq.h
parenta1347619c5f9ad96d2462a568e625fec567594e2 (diff)
downloadlibcss-e47d8dcc95f8fbe830a2b7852ba0af0d60f1a29b.tar.gz
libcss-e47d8dcc95f8fbe830a2b7852ba0af0d60f1a29b.tar.bz2
Media Queries: parse features
Diffstat (limited to 'src/parse/mq.h')
-rw-r--r--src/parse/mq.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse/mq.h b/src/parse/mq.h
index 7d62e8c..c5268c7 100644
--- a/src/parse/mq.h
+++ b/src/parse/mq.h
@@ -22,7 +22,7 @@ typedef struct {
css_fixed num_or_ratio; /* Where ratio is the result of a/b */
struct {
css_fixed len;
- css_unit unit;
+ uint32_t unit;
} dim;
lwc_string *ident;
} data;
@@ -31,8 +31,8 @@ typedef struct {
/*
* "name : value" is encoded as "name = value"
* "name" is encoded by setting the operator to "bool"
- * "name op value" is encoded verbatim (with op2 set to "unused")
- * "value op name" inverts the operator to encode (i.e < becomes >=) (and sets op2 to "unused")
+ * "value op name" is encoded verbatim (with op2 set to "unused")
+ * "name op value" inverts the operator to encode (i.e < becomes >=) (and sets op2 to "unused")
* "value op name op value" is encoded using op2 and value2
*/
typedef enum {