Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGenerate markers for list items #1232
Comments
|
css-counter-style is relatively stable, so there is no problem implementing it. What I meant is that the functionality for custom Also, for layout, it may be worth not having any custom code but implement the list marker with a |
|
@aydinkim I saw on IRC that you were looking into this. I’ll expand a bit on the above: I recommend only implementing the CSS 2.1-level set of features for now, but doing so using the Level 3 specifications which give much more detailed and precise algorithms. In CSS terms:
There are three fairly separate tasks.
Once you have all that, the |
|
@recrack Sorry I missed your IRC message. I don’t see a problem with modifying the user-agent stylesheet. Please send a pull request with what you want to be reviewed specifically. |
#1232 Servo UA (http://www.w3.org/TR/CSS21/sample.html) This is UA css from http://mxr.mozilla.org/mozilla/source/layout/style/html.css and http://dev.w3.org/csswg/css-lists/#ua-stylesheet ``` ul margin-left: 40px -> padding-left: 40px ol margin-left: 40px -> padding-left: 40px ```
|
This is needed for #1366. mentor: @larsbergstrom |
|
We are working on that at https://github.com/aydinkim/servo/commits/work5 |
|
Basic support was implemented in #5067. More specific issues can be filed for any remaining features. |
We have code that will generate them as blocks, but we need to generate the markers per the spec:
http://www.w3.org/TR/CSS21/generate.html#lists
There is also a css-display draft spec that has a clearer explanation. Per @SimonSapin, we should not expose the CSS properties but should use this draft as ideas for the implementation:
http://dev.w3.org/csswg/css-counter-styles/