w3c / w3c/csswg-drafts

Upstream HTML Rendering section's monkey patches to CSS

Open
#4,977 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

HTML
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

See https://github.com/whatwg/html/pull/5462#issuecomment-616443377

HTML special-cases handling of the 'line-height' property for the input element, for web compat. To make it more discoverable for implementers, it would be good to specify this in the definition of the 'line-height' property directly. Though maybe HTML can still say which elements exercise the special behavior.

There's more stuff like this in HTML. For example the margin collapsing quirk, fieldset's layout model, ignoring 'overflow' on marquee, to name a few.

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

Start with the linked WHATWG HTML pull-request comment and compare the cited rendering sections for line-height, margin collapsing, fieldset layout, and marquee overflow. Determine which HTML rendering quirks should be specified in CSS property definitions and which element-specific behavior should remain in HTML; completion is a documented resolution for the proposed upstreaming scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.