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
3 changes: 3 additions & 0 deletions .config/.commitlintrc.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>

SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions .config/.lintstagedrc-prettier.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>

SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions .config/.lintstagedrc.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>

SPDX-License-Identifier: MIT
4 changes: 4 additions & 0 deletions .config/.markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
#
# SPDX-License-Identifier: MIT

---
###########################
###########################
Expand Down
3 changes: 3 additions & 0 deletions .config/.stylelintrc.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>

SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions .config/.stylelintrc.older.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>

SPDX-License-Identifier: MIT
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
#
# SPDX-License-Identifier: MIT

# For more information about the properties used in
# this file, please see the EditorConfig documentation:
# https://editorconfig.org/
Expand Down
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
#
# SPDX-License-Identifier: MIT

# adapted out of https://github.com/h5bp/html5-boilerplate/blob/main/.gitattributes and https://rehansaeed.com/gitattributes-best-practices/
# Automatically normalize line endings for all text-based files
# https://git-scm.com/docs/gitattributes#_end_of_line_conversion
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/reuse-compliance-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0
---
name: REUSE Compliance Check

on: [push, pull_request]

permissions:
contents: read

jobs:
reuse-compliance-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: REUSE Compliance Check
uses: fsfe/reuse-action@v5
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
#
# SPDX-License-Identifier: MIT

.DS_Store
node_modules
npm-debug.log
Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
#
# SPDX-License-Identifier: MIT

pnpm-lock.yaml
node_modules
dist
Expand Down
3 changes: 3 additions & 0 deletions .prettierrc.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>

SPDX-License-Identifier: MIT
4 changes: 4 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
#
# SPDX-License-Identifier: MIT

# Configuration file for yamllint.
# It extends the default conf by adjusting some options.

Expand Down
108 changes: 108 additions & 0 deletions docs/TEST_FIXTURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Input CSS:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.responsive {
width: if(media(width <= 768px): 100%; else: 50%);
}
Expand All @@ -19,6 +25,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Expected Output:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.responsive {
width: 50%;
}
Expand All @@ -40,6 +52,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Input CSS:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.grid {
display: if(supports(display: grid): grid; else: block);
}
Expand All @@ -48,6 +66,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Expected Output:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.grid {
display: block;
}
Expand All @@ -69,6 +93,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Input CSS:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.test {
color: if(style(--theme): var(--primary) ; else: #00f);
}
Expand All @@ -77,6 +107,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Expected Output:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.test {
color: #00f;
}
Expand All @@ -93,6 +129,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Input CSS:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.example {
color: if(media(width <= 768px): #00f; else: red);
font-size: if(supports(display: grid): 1.2rem; else: 1rem);
Expand All @@ -102,6 +144,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Expected Output:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.example {
color: red;
}
Expand Down Expand Up @@ -131,6 +179,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Input CSS:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.responsive {
padding: if(
media(width >= 1200px): 40px; media(width >= 768px): 30px;
Expand All @@ -142,6 +196,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Expected Output:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.responsive {
padding: 15px;
}
Expand Down Expand Up @@ -173,6 +233,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Input CSS:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.test {
color: if(media(width >= 768px): #00f; else: red);
background: if(style(--dark-mode): black; else: white);
Expand All @@ -182,6 +248,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Expected Output:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.test {
color: red;
}
Expand All @@ -206,6 +278,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Input CSS:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.responsive {
width: if(media((width >= 768px) and (width <= 1024px)): 50%; else: 100%);
}
Expand All @@ -214,6 +292,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Expected Output:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.responsive {
width: 100%;
}
Expand All @@ -235,6 +319,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Input CSS:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

/* Header styles */
.header {
background: #00f;
Expand All @@ -253,6 +343,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Expected Output:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

/* Header styles */
.header {
background: #00f;
Expand Down Expand Up @@ -282,6 +378,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Input CSS:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.normal {
color: red;
font-size: 1rem;
Expand All @@ -291,6 +393,12 @@ This document demonstrates the centralized test fixture system that provides a s
**Expected Output:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.normal {
color: red;
font-size: 1rem;
Expand Down
12 changes: 12 additions & 0 deletions docs/refactoring/TEST_CENTRALIZATION_SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ pnpm run build:docs # Auto-generates docs from fixtures
**Input CSS:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.responsive {
width: if(media(width <= 768px): 100%; else: 50%);
}
Expand All @@ -92,6 +98,12 @@ pnpm run build:docs # Auto-generates docs from fixtures
**Expected Output:**

```css
/*
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
*
* SPDX-License-Identifier: MIT
*/

.responsive {
width: 50%;
}
Expand Down
3 changes: 3 additions & 0 deletions package.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>

SPDX-License-Identifier: MIT
6 changes: 6 additions & 0 deletions packages/lightningcss-plugin-if-function/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>

SPDX-License-Identifier: MIT
-->

# lightningcss-plugin-if-function

[![Default CI/CD Pipeline](https://github.com/mfranzke/css-if-polyfill/actions/workflows/default.yml/badge.svg)](https://github.com/mfranzke/css-if-polyfill/actions/workflows/default.yml)
Expand Down
Loading