Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quirk: bare <li> have list-style-position: inside #10959

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented Jan 28, 2025

Fixes #10958.

(See WHATWG Working Mode: Changes for more details.)


/rendering.html ( diff )

@Loirooriol
Copy link
Contributor

Should this go to https://quirks.spec.whatwg.org/ instead of HTML?

@zcorpan
Copy link
Member Author

zcorpan commented Jan 29, 2025

@Loirooriol no, HTML already has quirks mode style rules like this. Eventually, all quirks should be upstreamed to the appropriate spec instead of being defined in a delta spec.

@zcorpan zcorpan added the do not merge yet Pull request must not be merged per rationale in comment label Jan 30, 2025
@zcorpan
Copy link
Member Author

zcorpan commented Jan 30, 2025

Marking "do not merge yet" for #10958 (comment) (also see earlier comments).

@zcorpan zcorpan changed the title Quirk: bare <li> have list-style-position: inside Bare <li> should have list-style-position: inside Feb 3, 2025
@zcorpan zcorpan removed the do not merge yet Pull request must not be merged per rationale in comment label Feb 3, 2025
@zcorpan
Copy link
Member Author

zcorpan commented Feb 3, 2025

I've updated this PR to also apply this behavior in standards mode and to include menu and dir in the selector, per web compat research findings. I've also updated the tests.

@emilio
Copy link
Contributor

emilio commented Feb 3, 2025

Slight preference to align on current WebKit / Firefox Nightly behavior (just quirks and no dir / menu) fwiw... There may be other compat impact of making the change to computed styles in standards mode so if we can get away with it seems preferable, specially if the visual impact is minimal

@emilio
Copy link
Contributor

emilio commented Feb 3, 2025

(Plus those selectors are not particularly cheap)

@zcorpan zcorpan changed the title Bare <li> should have list-style-position: inside Quirk: bare <li> have list-style-position: inside Feb 4, 2025
@zcorpan
Copy link
Member Author

zcorpan commented Feb 4, 2025

I've changed this again to only apply in quirks mode.

@zcorpan zcorpan requested a review from nt1m February 4, 2025 12:24
Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, seems fine to put dir/menu on my end again. @nt1m given the discussions above does it seems reasonable to you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Specify the bare li element "list-style-position:inside" quirk
3 participants