Skip to content

Commit 7c22a9d

Browse files
committed
Added more viewport related units
1 parent 44ff98c commit 7c22a9d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ Configuration items are:
315315

316316
## News and noteworthy
317317

318+
v8.1.1 - 2025-12-09
319+
* Added new CSS units `dvw` and `dvh`. See [#118](https://github.com/phax/ph-css/pull/118) - thx @shagkur
320+
* Added new CSS units `dvmin`, `dvmax`, `svw`, `svh`, `svmin`, `svmax`, `lvw`, `lvh`, `lvmin`, `lvmax`
321+
318322
v8.1.0 - 2025-11-16
319323
* Updated to ph-commons 12.1.0
320324
* Using JSpecify annotations

ph-css/src/main/java/com/helger/css/ECSSUnit.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,33 @@ public enum ECSSUnit implements IHasName
8888
VMIN ("vmin", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
8989
/** Equal to the larger of 'vw' or 'vh'. */
9090
VMAX ("vmax", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
91+
92+
/** Equal to 1% of the width of the small viewport. */
93+
SVW ("svw", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
94+
/** Equal to 1% of the height of the small viewport. */
95+
SVH ("svh", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
96+
/** Equal to the smaller of 'svw' or 'svh'. */
97+
SVMIN ("svmin", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
98+
/** Equal to the larger of 'svw' or 'svh'. */
99+
SVMAX ("svmax", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
100+
101+
/** Equal to 1% of the width of the large viewport. */
102+
LVW ("lvw", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
103+
/** Equal to 1% of the height of the large viewport. */
104+
LVH ("lvh", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
105+
/** Equal to the smaller of 'lvw' or 'lvh'. */
106+
LVMIN ("lvmin", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
107+
/** Equal to the larger of 'lvw' or 'lvh'. */
108+
LVMAX ("lvmax", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
109+
91110
/** Equal to 1% of the width of the dynamic viewport. */
92111
DVW ("dvw", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
93112
/** Equal to 1% of the height of the dynamic viewport. */
94113
DVH ("dvh", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
114+
/** Equal to the smaller of 'dvw' or 'dvh'. */
115+
DVMIN ("dvmin", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
116+
/** Equal to the larger of 'dvw' or 'dvh'. */
117+
DVMAX ("dvmax", ECSSMetaUnit.VIEWPORT_RELATIVE_LENGTH),
95118

96119
/** Represents a percentage of the width of the query container. */
97120
CQW ("cqw", ECSSMetaUnit.CONTAINER_RELATIVE_LENGTH),

0 commit comments

Comments
 (0)