-
Notifications
You must be signed in to change notification settings - Fork 707
[css-lists] counter scopes should be based on box tree, not element tree #674
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
Comments
The issue is currently open because no one presented use cases or implementation constraints that would indicate which definition is the better one to have... Would be good to have Mats or bz comment on this! |
CSSWG concluded in Seattle that counters should be operating on the box tree. I've removed the issue in CSS Display; CSS Lists will need an update, though, so re-assigning. |
Ran into counter issues in the display:contents implementation in Blink. So, by box tree, do you mean that the ::before counters below should both be displaying 1 (anonymous table-row around the cell)?:
Also, box tree means that you'll get "1X" and "2Y" below:
For Shadow DOM and distribution I think box tree (or flat tree) makes sense. Blink currently uses light tree traversal, but uses flat tree traversal for style containment for counters. |
Just wanted to offer a set of testcases... ...for which safari still has an open ticket/bug that kind of relates https://bugs.webkit.org/show_bug.cgi?id=187718 |
@fantasai when you say...
Does this mean the working group already made a decision here? And that decision makes geckos and blinks implementations not aligned with the impending specification edits? And that the behavior in webkit will be considered correct? See this test case between those three vendors -> http://jsfiddle.net/5rcjk9gv/4 I ask, because aside from this reduced test case, I have run into wanting geckos/blinks behavior a few times, while never having a use for webkits. |
@jonjohnjohnson - could you briefly explain the cases where you ran into wanting the gecko/blink behavior? |
@dbaron Currently, if you view both: Their only difference is css line 5, changing the Case 2 - Gecko/Blink Case 2 - Webkit For all I really know, what I'm asking about is supported by the current box tree defined state of the spec, but I just haven't understood the answers to me question yet related to the cases I've linked here for the third time. :/ |
The CSS Working Group just discussed The full IRC log of that discussion<dael> Topic: counter scopes should be based on box tree, not element tree<dael> github: <dael> github: https://github.com//issues/674 <dael> TabAtkins: fantasai added the agenda. I'm curious why. There's a person asking about implications but don't know what to discuss <dael> fantasai: I don't remember <dael> astearns: We have a comment with different cases <dael> TabAtkins: I need to look through his HTML cases to figure out what they're trying to favor. I think we have to defer for now <dael> astearns: My reading is here are the cases that show a difference. not sure they're picking a side |
CSS Lists and Counters spec says:
While there is an issue listed in CSS Display spec says:
I'm not sure if there is any normative text in CSS Display spec leads to that issue, but given that the issue exists, there might be some disagreement between the two specs we may want to resolve.
The text was updated successfully, but these errors were encountered: