summaryrefslogtreecommitdiff
path: root/include/libcss
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-06-01 18:32:37 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-06-01 18:32:37 +0100
commitc6d7f24987a90bc61e408c4249a6a212276b4174 (patch)
tree75a3f5478618e0e583db6f168193e7645c012dda /include/libcss
parent89a4d061a46490d5fad3792a565a1a0114c400e0 (diff)
downloadlibcss-c6d7f24987a90bc61e408c4249a6a212276b4174.tar.gz
libcss-c6d7f24987a90bc61e408c4249a6a212276b4174.tar.bz2
Add support for CSS3 overflow-x and overflow-y properties.
Now, overflow is a shorthand property setting both overflow-x and overflow-y. The getter for the computed overflow has been removed, and replaced with two for overflow-x and overflow-y.
Diffstat (limited to 'include/libcss')
-rw-r--r--include/libcss/computed.h9
-rw-r--r--include/libcss/properties.h3
2 files changed, 8 insertions, 4 deletions
diff --git a/include/libcss/computed.h b/include/libcss/computed.h
index 324af3f..8e327d2 100644
--- a/include/libcss/computed.h
+++ b/include/libcss/computed.h
@@ -303,10 +303,13 @@ uint8_t css_computed_padding_bottom(
uint8_t css_computed_padding_left(
const css_computed_style *style,
css_fixed *length, css_unit *unit);
-
-uint8_t css_computed_overflow(
+
+uint8_t css_computed_overflow_x(
const css_computed_style *style);
-
+
+uint8_t css_computed_overflow_y(
+ const css_computed_style *style);
+
uint8_t css_computed_position(
const css_computed_style *style);
diff --git a/include/libcss/properties.h b/include/libcss/properties.h
index bbb6baa..dbcd75a 100644
--- a/include/libcss/properties.h
+++ b/include/libcss/properties.h
@@ -74,7 +74,7 @@ enum css_properties_e {
CSS_PROP_OUTLINE_COLOR = 0x039,
CSS_PROP_OUTLINE_STYLE = 0x03a,
CSS_PROP_OUTLINE_WIDTH = 0x03b,
- CSS_PROP_OVERFLOW = 0x03c,
+ CSS_PROP_OVERFLOW_X = 0x03c,
CSS_PROP_PADDING_TOP = 0x03d,
CSS_PROP_PADDING_RIGHT = 0x03e,
CSS_PROP_PADDING_BOTTOM = 0x03f,
@@ -126,6 +126,7 @@ enum css_properties_e {
CSS_PROP_COLUMN_SPAN = 0x06d,
CSS_PROP_COLUMN_WIDTH = 0x06e,
CSS_PROP_WRITING_MODE = 0x06f,
+ CSS_PROP_OVERFLOW_Y = 0x070,
CSS_N_PROPERTIES
};