Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion css/dist/ReadiumCSS-after.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
11 changes: 10 additions & 1 deletion css/dist/ReadiumCSS-before.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down Expand Up @@ -400,6 +400,15 @@ img, svg|svg, video{
break-inside:avoid;
}

@supports (zoom: 1) and (not ((-webkit-column-axis: horizontal) and (-webkit-column-progression: normal))){

:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] img,
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] svg|svg,
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] video{
zoom:calc(100% / var(--USER__fontSize));
}
}

audio{
max-width:100%;
-webkit-column-break-inside:avoid;
Expand Down
2 changes: 1 addition & 1 deletion css/dist/ReadiumCSS-default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/cjk-horizontal/ReadiumCSS-after.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
11 changes: 10 additions & 1 deletion css/dist/cjk-horizontal/ReadiumCSS-before.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down Expand Up @@ -400,6 +400,15 @@ img, svg|svg, video{
break-inside:avoid;
}

@supports (zoom: 1) and (not ((-webkit-column-axis: horizontal) and (-webkit-column-progression: normal))){

:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] img,
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] svg|svg,
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] video{
zoom:calc(100% / var(--USER__fontSize));
}
}

audio{
max-width:100%;
-webkit-column-break-inside:avoid;
Expand Down
2 changes: 1 addition & 1 deletion css/dist/cjk-horizontal/ReadiumCSS-default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/cjk-vertical/ReadiumCSS-after.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
14 changes: 12 additions & 2 deletions css/dist/cjk-vertical/ReadiumCSS-before.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down Expand Up @@ -400,6 +400,16 @@ img, svg|svg, video{
break-inside:avoid;
}

@supports (zoom: 1) and (not ((-webkit-column-axis: horizontal) and (-webkit-column-progression: normal))){

:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] img,
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] svg|svg,
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] video,
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div{
zoom:calc(100% / var(--USER__fontSize));
}
}

audio{
max-width:100%;
-webkit-column-break-inside:avoid;
Expand All @@ -409,5 +419,5 @@ audio{

table{
max-height:var(--RS__maxMediaWidth);
box-sizing:var(--RS__boxSizingTable)
box-sizing:var(--RS__boxSizingTable);
}
2 changes: 1 addition & 1 deletion css/dist/cjk-vertical/ReadiumCSS-default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/rtl/ReadiumCSS-after.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
11 changes: 10 additions & 1 deletion css/dist/rtl/ReadiumCSS-before.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down Expand Up @@ -400,6 +400,15 @@ img, svg|svg, video{
break-inside:avoid;
}

@supports (zoom: 1) and (not ((-webkit-column-axis: horizontal) and (-webkit-column-progression: normal))){

:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] img,
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] svg|svg,
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] video{
zoom:calc(100% / var(--USER__fontSize));
}
}

audio{
max-width:100%;
-webkit-column-break-inside:avoid;
Expand Down
2 changes: 1 addition & 1 deletion css/dist/rtl/ReadiumCSS-default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/webPub/ReadiumCSS-webPub.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.25
* Readium CSS v.2.0.0
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
12 changes: 11 additions & 1 deletion css/src/modules/ReadiumCSS-safeguards-vertical.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ img, svg|svg, video {
break-inside: avoid;
}

/* Zoom Compensation of viewport units in Chrome/Firefox */
@supports (zoom: 1) and (not ((-webkit-column-axis: horizontal) and (-webkit-column-progression: normal))) {
:root:--experimental-zoom:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] img,
:root:--experimental-zoom:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] svg|svg,
:root:--experimental-zoom:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] video,
:root:--experimental-zoom:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] div {
zoom: calc(100% / var(--USER__fontSize));
}
}

/* Setting width and height for audio creates issues with controls (invisible in Chromium, only the play button is displayed in Webkit).
These styles should just help a little bit if the fallback is displayed cos audio is not supported. */
audio {
Expand All @@ -68,5 +78,5 @@ audio {
/* Try preventing border being cut-off, webkit + blink have content-box by default */
table {
box-sizing: var(--RS__boxSizingTable);
max-height: var(--RS__maxMediaWidth)
max-height: var(--RS__maxMediaWidth);
}
9 changes: 9 additions & 0 deletions css/src/modules/ReadiumCSS-safeguards.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ img, svg|svg, video {
break-inside: avoid;
}

/* Zoom Compensation of viewport units in Chrome/Firefox */
@supports (zoom: 1) and (not ((-webkit-column-axis: horizontal) and (-webkit-column-progression: normal))) {
:root:--experimental-zoom:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] img,
:root:--experimental-zoom:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] svg|svg,
:root:--experimental-zoom:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] video {
zoom: calc(100% / var(--USER__fontSize));
}
}

/* Setting width and height for audio creates issues with controls (invisible in Chromium, only the play button is displayed in Webkit).
These styles should just help a little bit if the fallback is displayed cos audio is not supported. */
audio {
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@readium/css",
"description": "A set of reference stylesheets for EPUB Reading Systems",
"version": "2.0.0-beta.25",
"version": "2.0.0",
"homepage": "https://github.com/readium/css",
"license": "BSD-3-Clause",
"keywords": [
Expand All @@ -23,11 +23,12 @@
"bugs": {
"url": "https://github.com/readium/css/issues"
},
"main": "css/ReadiumCSS-config.css",
"files": [
"css/**/*",
"!css/*.js",
"!css/demo/**/*"
"!css/demo/**/*",
"!css/src/**/*",
"!css/ReadiumCSS-config.css"
],
"devDependencies": {
"@daltontan/postcss-import-json": "^1.1.1",
Expand Down