Skip to content

Commit 3f99530

Browse files
authored
chore: Add css-inline 0.14.6 (pyodide#5304)
1 parent d9c16bb commit 3f99530

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

Diff for: docs/project/changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ myst:
2020

2121
- Upgraded `protobuf` to 5.29.2 {pr}`5298`
2222
- Added `apsw` 3.47.2.0 {pr}`5251`
23+
- Added `css_inline` 0.14.6 {pr}`5304`
2324

2425
## Version 0.27.0
2526

Diff for: packages/css-inline/meta.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package:
2+
name: css-inline
3+
version: 0.14.6
4+
top-level:
5+
- css_inline
6+
source:
7+
url: https://github.com/Stranger6667/css-inline/releases/download/python-v0.14.6/css_inline-0.14.6-cp37-abi3-pyodide_2024_0_wasm32.whl
8+
sha256: d8ba5ceb0362092d051683a3f56dd04d34bfd34c00ab646d3ca04972bb852d03
9+
about:
10+
home: https://github.com/Stranger6667/css-inline
11+
summary: High-performance library for inlining CSS into HTML 'style' attributes
12+
license: MIT
13+
extra:
14+
recipe-maintainers:
15+
- Stranger6667

Diff for: packages/css-inline/test_css_inline.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from pytest_pyodide import run_in_pyodide
2+
3+
4+
@run_in_pyodide(packages=["css_inline"])
5+
def test_inline_html(selenium):
6+
import css_inline
7+
8+
html = """<html>
9+
<head>
10+
<style>h1 { color:blue; }</style>
11+
</head>
12+
<body>
13+
<h1>Big Text</h1>
14+
</body>
15+
</html>"""
16+
17+
assert '<h1 style="color: blue;">Big Text</h1>' in css_inline.inline(html)

0 commit comments

Comments
 (0)