Weasyprint: list-style-type as content being ignored

Created on 2 Sep 2020  路  3Comments  路  Source: Kozea/WeasyPrint

With CSS3 introducing content being set as list-style-type, this is being ignored by Weasyprint:

CSS:
ul {list-style-type: '-';} ul ul {list-style-type: '+';}

Console error:
WARNING: Ignored list-style-type:\"-\" at *, invalid value.
WARNING: Ignored list-style-type:\"+\" at *
, invalid value.

feature good first issue

All 3 comments

Hey, I tested this with the master branch and it seems it's working.

<html>
<head>
 <style>
   ul {list-style-type: '-';}
   ul ul {list-style-type: '+';}
 </style>
</head>
<body>
  <ul>
    <li>Homammed<li>
    <ul>
      <li>Homammed<li>
    </ul>
  </ul>
</body>
</html>

image

Hey, I tested this with the master branch and it seems it's working.

~There鈥檚 no code in WeasyPrint to handle that, and I get:~

WARNING: Ignored `list-style-type: "-"` at 2:8, invalid value.
WARNING: Ignored `list-style-type: "+"` at 3:11, invalid value.

~I don鈥檛 know how it could work for you :smile:.~

EDIT: you鈥檙e right, it鈥檚 fixed by 473443c.

Hey, I tested this with the master branch and it seems it's working.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amarnav picture amarnav  路  5Comments

antuaneacion picture antuaneacion  路  3Comments

ivanprice picture ivanprice  路  3Comments

whitelynx picture whitelynx  路  5Comments

schettino72 picture schettino72  路  5Comments