w3c / w3c/csswg-drafts

Clarity on whether supported legacy name aliases are supported properties

Open
#7,166 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-cascade-4
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

  1. should CSS.supports("word-wrap", "break-word") return true or false?
  2. should CSS.supports("(word-wrap: break-word)") return true or false?
  3. should "word-wrap" in window.getComputedStyle(document.documentElement) be true or false?
  4. should [...window.getComputedStyle(document.documentElement)].includes("word-wrap") be true or false?

IMO:

  1. all UAs say true, which falls out from "for string arguments"
  2. all UAs say true, which falls out from converting it "at parse time" (but we may want to be more explicit that we mean any property name parsing, because "at parse time" is kinda unclear as to what parse time)
  3. all UAs say true; but this I'm unsure about what the current specs imply: does "applies in the CSSOM [for] property accessors" effect the generation of WebIDL attributes?
  4. all UAs supporting word-wrap as a legacy name alias say false; does this just fall out from the getter giving "longhand properties that are supported CSS properties", on the basis that they aren't supported properties (they're instead legacy name aliases)?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the CSS Cascade 5 legacy name alias section and the CSSOM sections on supported CSS properties, property accessors, and CSSStyleDeclaration iteration. Compare the four listed CSS.supports, property-access, and iteration cases with current browser behavior and specification wording. Done means resolving the intended behavior and clarifying the relevant normative text.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.