diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1301e75..5531c83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,49 +4,12 @@ on: [push, pull_request] env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DOCS_PATH: ${{ secrets.DOCS_PATH }} - DOCS_BRANCH: ${{ secrets.DOCS_BRANCH }} # Snapshot baselines are per-platform and committed; a missing one is a gap, never a pass. ANGLESHARP_SNAPSHOT_STRICT: 1 - ANGLESHARP_VERSION: 1.10.0 - ANGLESHARP_CSS_VERSION: 1.4.1 + ANGLESHARP_VERSION: 1.11.0 + ANGLESHARP_CSS_VERSION: 1.6.0 jobs: - can_document: - runs-on: ubuntu-latest - outputs: - value: ${{ steps.check_job.outputs.value }} - steps: - - name: Checks whether documentation can be built - id: check_job - run: | - echo "value: ${{ env.DOCS_PATH != null && github.ref == env.DOCS_BRANCH }}" - echo "::set-output name=value::${{ env.DOCS_PATH != null && github.ref == env.DOCS_BRANCH }}" - - documentation: - needs: [can_document] - runs-on: ubuntu-latest - if: needs.can_document.outputs.value == 'true' - - steps: - - uses: actions/checkout@v5 - - - name: Use Node.js - uses: actions/setup-node@v5 - with: - node-version: "20.x" - registry-url: 'https://registry.npmjs.org' - - - name: Install Dependencies - run: | - cd $DOCS_PATH - npm install - - - name: Deploy Doclet - run: | - cd $DOCS_PATH - npx pilet publish --fresh --url https://feed.piral.cloud/api/v1/pilet/anglesharp --api-key ${{ secrets.PIRAL_FEED_KEY }} - # Every platform that has committed snapshot baselines has to run them. Skia rasterizes # glyphs through a different scaler per platform, so a baseline is only ever exercised by # the platform it was recorded on. The runner images are pinned on purpose: bumping one @@ -73,7 +36,6 @@ jobs: uses: actions/setup-dotnet@v6 with: dotnet-version: | - 8.0.x 10.0.x - name: Test @@ -109,7 +71,6 @@ jobs: uses: actions/setup-dotnet@v5 with: dotnet-version: | - 8.0.x 10.0.x # Exchanges the GitHub OIDC token for a short-lived (1 hour) NuGet API key. diff --git a/.github/workflows/update-snapshots.yml b/.github/workflows/update-snapshots.yml index f1ebe4d..250b926 100644 --- a/.github/workflows/update-snapshots.yml +++ b/.github/workflows/update-snapshots.yml @@ -15,8 +15,8 @@ permissions: contents: write env: - ANGLESHARP_VERSION: 1.10.0 - ANGLESHARP_CSS_VERSION: 1.4.1 + ANGLESHARP_VERSION: 1.11.0-beta.982 + ANGLESHARP_CSS_VERSION: 1.6.0-beta.466 jobs: # Keep this matrix identical to the `test` matrix in ci.yml, images included - a baseline diff --git a/AGENTS.md b/AGENTS.md index 64be7db..dbf8a1c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -43,7 +43,7 @@ Never resolve named families with `SKTypeface.FromFamilyName`: it substitutes th ## Upstream Policy (important) -**Never work around AngleSharp / AngleSharp.Css bugs locally.** Reproduce them with a failing test in the upstream project's own suite, fix them there, verify locally via a temporary `ProjectReference` to the sibling checkout, then revert to `PackageReference` once released. Current minimums: `AngleSharp` 1.10.0, `AngleSharp.Css` 1.4.1, set via `AngleSharpVersion`/`AngleSharpCssVersion` in the `.csproj` and the `ANGLESHARP_VERSION`/`ANGLESHARP_CSS_VERSION` env of `ci.yml` and `update-snapshots.yml` (which override the `.csproj`, so change all three together). This CSS preview does not support the popover API; defer renderer behavior that depends on its popover selector and UA styles until a supporting release is available. Prefer delegating CSS grammar to AngleSharp.Css's public parsers (`TransformParser`, `FilterParser`, `GradientParser`, `GridParser`, `TimingFunctionParser`) and keeping only the conversion to backend-agnostic `Render*` types here. Hand-roll only what upstream genuinely lacks (e.g. `clip-path` basic shapes). +**Never work around AngleSharp / AngleSharp.Css bugs locally.** Reproduce them with a failing test in the upstream project's own suite, fix them there, verify locally via a temporary `ProjectReference` to the sibling checkout, then revert to `PackageReference` once released. Current minimums: `AngleSharp` 1.11.0, `AngleSharp.Css` 1.6.0, set via `AngleSharpVersion`/`AngleSharpCssVersion` in the `.csproj` and the `ANGLESHARP_VERSION`/`ANGLESHARP_CSS_VERSION` env of `ci.yml` and `update-snapshots.yml` (which override the `.csproj`, so change all three together). This CSS preview does not support the popover API; defer renderer behavior that depends on its popover selector and UA styles until a supporting release is available. Prefer delegating CSS grammar to AngleSharp.Css's public parsers (`TransformParser`, `FilterParser`, `GradientParser`, `GridParser`, `TimingFunctionParser`) and keeping only the conversion to backend-agnostic `Render*` types here. Hand-roll only what upstream genuinely lacks (e.g. `clip-path` basic shapes). **Styling comes only from the computed style** (the render tree, cascaded with the UA stylesheet), never from tag names: no "`` is bold", "`h1` is 700", "`` is inline", "`