Skip to content

Commit 34fcc74

Browse files
committed
Add more units and eliminate some duplicates
see https://developer.mozilla.org/en-US/docs/CSS/length#Units
1 parent 7ecf8a8 commit 34fcc74

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
* *No backwards-incompatible changes*
2626
* *No deprecations*
2727

28+
### 5.0.3 (2013-03-21)
29+
30+
* More size units recongnized
31+
* *No backwards-incompatible changes*
32+
* *No deprecations*
33+
2834
## 4.0
2935

3036
### 4.0.0 (2013-03-19)

lib/Sabberworm/CSS/Value/Size.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
class Size extends PrimitiveValue {
66

7-
const ABSOLUTE_SIZE_UNITS = 'px/deg/s/cm/pt/in/pc/cm/mm';
8-
const RELATIVE_SIZE_UNITS = '%/em/ex';
9-
const NON_SIZE_UNITS = 'deg/grad/rad/turns/s/ms/Hz/kHz';
7+
const ABSOLUTE_SIZE_UNITS = 'px/cm/mm/mozmm/in/pt/pc/vh/vw/vm/vmin/vmax/rem'; //vh/vw/vm(ax)/vmin/rem are absolute insofar as they don’t scale to the immediate parent (only the viewport)
8+
const RELATIVE_SIZE_UNITS = '%/em/ex/ch';
9+
const NON_SIZE_UNITS = 'deg/grad/rad/s/ms/turns/Hz/kHz';
1010

1111
private $fSize;
1212
private $sUnit;

0 commit comments

Comments
 (0)