GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [css-values-4] Incorrect resolved type of math functions representing `<number>` · Issue #7486 · w3c/csswg-drafts

[css-values-4] Incorrect resolved type of math functions representing <number> #7486

New issue
Copy link
New issue
Copy link
Closed
Closed
[css-values-4] Incorrect resolved type of math functions representing <number>#7486
Copy link
Labels
Closed Accepted as Obvious BugfixFixed an obvious error with the obvious solution.Fixed an obvious error with the obvious solution.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-values-4Current WorkCurrent Work

Description

@cdoublev
cdoublev
opened on Jul 11, 2022
Issue body actions

In CSS Values 4, 10.9. Type Checking:

Math functions themselves have types, according to their contained calculations:

  • [...]
  • The type of a sign() expression is «[ "number" → 1 ]».
  • The type of a sin(), cos(), or tan() expression is «[ "number" → 1 ]».
  • [...]
  • The type of a pow(), sqrt(), log(), or exp() expression is «[ "number" → 1 ]».

[...]

A math function resolves to <number>, <length>, <angle>, <time>, <frequency>, <resolution>, <flex>, or <percentage> according to which of those productions its type matches.

I do not understand the type defined for these functions. I expect «[ ]» because from CSS Typed OM:

A type matches <number> if it has no non-zero entries and its percent hint is null.

Activity

  1. tabatkins
    added
    css-values-4Current WorkCurrent Work
    Needs Edits
    on Jul 11, 2022
  2. tabatkins commented on Jul 11, 2022

    @tabatkins
    tabatkins
    on Jul 11, 2022
    Member
    More actions

    ...indeed, you're correct. Unsure why I wrote it that way.

  3. tabatkins
    added a commit that references this issue on Oct 10, 2022

    [css-values-4] Fix the numeric type. #7486

    cc71452
  4. tabatkins
    added
    Closed Accepted as Obvious BugfixFixed an obvious error with the obvious solution.Fixed an obvious error with the obvious solution.
    Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.
    and removed
    Needs Edits
    on Oct 10, 2022
  5. tabatkins commented on Oct 10, 2022

    @tabatkins
    tabatkins
    on Oct 10, 2022
    Member
    More actions

    Done; I'm assuming this edit is fine since it's exactly what you asked for. ^_^

    Reacted by Guillaume
  6. tabatkins
    closed this as completedon Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed Accepted as Obvious BugfixFixed an obvious error with the obvious solution.Fixed an obvious error with the obvious solution.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-values-4Current WorkCurrent Work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.