Re: [csswg-drafts] [css-pseudo] Should ::first-line include markers? (#4506)

I tested several CSS Paged Media implementations, with the [PrintCSS Playground](https://printcss.live/), Test: https://printcss.live/l4zbqQ3bpr, and got the following 5 different results:

- [Vivliostyle](https://vivliostyle.org/) and [Antenna House Formatter](https://www.antennahouse.com/formatter-v7)
  - ::first-line excludes markers
  - ::first-letter excludes markers  
  ![](https://user-images.githubusercontent.com/3324737/147521018-20ff6006-5d81-4010-896d-c5de18eeb355.png)
- [Paged.js](https://www.pagedjs.org/)
  - ::first-line excludes markers, but the background includes the inside marker
  - ::first-letter excludes markers  
  ![](https://user-images.githubusercontent.com/3324737/147521238-daf0f5eb-1078-4d7d-baf2-3045294af541.png)
- [Prince](https://www.princexml.com/) and [DocRaptor](https://www.docraptor.com/)
  - ::first-line includes the inside marker and excludes the outside marker
  - ::first-letter includes the inside marker and excludes the outside marker  
  ![](https://user-images.githubusercontent.com/3324737/147521293-dc935e93-56c9-4309-892a-6116371c68cd.png)
- [PDFreactor](https://www.pdfreactor.com/) and [typeset.sh](https://typeset.sh/en)
  - ::first-line is not supported
  - ::first-letter excludes markers  
  ![](https://user-images.githubusercontent.com/3324737/147521330-54dcdd95-a9e0-4588-83ef-988e0116b6e8.png)
- [WeasyPrint](https://weasyprint.org/)
  - ::first-line is not supported
  - ::first-letter includes the inside marker and excludes the outside marker  
  ![](https://user-images.githubusercontent.com/3324737/147521360-4a6ecf66-e91a-437c-9153-44f259619f4b.png)

I think that the ::first-letter should always exclude markers and the ::first-line should exclude the outside marker, but for the ::first-line and the the inside marker both excluding and and including would make sense. 


-- 
GitHub Notification of comment by MurakamiShinyu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4506#issuecomment-1001846929 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 28 December 2021 03:15:03 UTC