[csswg-drafts] [css-cascade-5] imported layers syntax : quotes or not? (#9716)

raphaelgoetter has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-cascade-5] imported layers syntax : quotes or not? ==
According to specs, a Layer name in an @imported file should be written [without quotes](https://www.w3.org/TR/css-cascade-5/#layer-names) : `@import url(bootstrap.css) layer(bootstrap);`  (example 27 and others)

However, browsers support seems different upon using quotes or not :

- `@import url("...") layer(bootstrap);` (without quotes) : **not OK** on Chrome, Firefox, Safari (only tested on Mac)
- `@import url("...") layer("bootstrap");` (with quotes) : **OK** on Chrome, Firefox, Safari (only tested on Mac)

See a live example : 

https://codepen.io/raphaelgoetter/pen/ExrJBgb?editors=1100



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9716 using your GitHub account


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

Received on Sunday, 17 December 2023 10:55:42 UTC