summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMichael Drake <Michael Drake tlsa@netsurf-browser.org>2020-11-15 10:51:40 +0000
committerMichael Drake <Michael Drake tlsa@netsurf-browser.org>2020-11-15 10:51:40 +0000
commit0b84fa9cc67593667002d7e7953d90400a66ac09 (patch)
tree652feb1d55a745c5eff13a74ea5490c8c8b17a06 /docs
parent1c1cf39d306428fe91260842082dfc9a66a6a236 (diff)
downloadlibcss-0b84fa9cc67593667002d7e7953d90400a66ac09.tar.gz
libcss-0b84fa9cc67593667002d7e7953d90400a66ac09.tar.bz2
bytecode: Change unit representation, so that length has a bit set.
This means that we can use a mask to check the unit class.
Diffstat (limited to 'docs')
-rw-r--r--docs/Bytecode12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/Bytecode b/docs/Bytecode
index dd0f424..880ccbd 100644
--- a/docs/Bytecode
+++ b/docs/Bytecode
@@ -33,7 +33,7 @@ The table is found in the stylesheet object.
CSS dimensions are stored as two 32bit values: <length, units>.
Length is a 32bit numeric value (as described above) and unit is as follows:
- bit 8 clear => length unit
+ bit 8 set => length unit
bits 9-31: MBZ
bits 0-7 :
00000000 => px
@@ -58,11 +58,11 @@ Length is a 32bit numeric value (as described above) and unit is as follows:
00010011 => vmax
00010100 => q
- bit 8 set => percentage unit
+ bit 9 set => percentage unit
bits 9-31: MBZ
bits 0-7 : MBZ
- bit 9 set => angle unit
+ bit 10 set => angle unit
bits 10-31: MBZ
bit 8 : MBZ
bits 0-7 :
@@ -71,21 +71,21 @@ Length is a 32bit numeric value (as described above) and unit is as follows:
00000010 => rad
00000011 => turn
- bit 10 set => time unit
+ bit 11 set => time unit
bits 11-31: MBZ
bits 8-9 : MBZ
bits 0-7 :
00000000 => ms
00000001 => s
- bit 11 set => frequency unit
+ bit 12 set => frequency unit
bits 12-31: MBZ
bits 8-10 : MBZ
bits 0-7 :
00000000 => Hz
00000001 => kHz
- bit 12 set => resolution unit
+ bit 13 set => resolution unit
bits 13-31: MBZ
bits 8-11 : MBZ
bits 0-7 :