1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibWeb: Support quotes in content values

This adds initial support for `open-quote`, `close-quote`,
`no-open-quote` and `no-close-quote`. We don't yet track the "nesting
level" so we always use the first pair of quotes from the `quotes`
property.
This commit is contained in:
Sam Atkins 2023-09-12 14:22:46 +01:00 committed by Andrew Kaster
parent dc7a52957e
commit f0a4baabc7
5 changed files with 75 additions and 4 deletions

View file

@ -0,0 +1,19 @@
<!doctype html>
<link rel="match" href="reference/css-quotes-ref.html" />
<style>
div::before {
content: open-quote "Well, hello friends!" close-quote;
}
.a {
quotes: none;
}
.b {
quotes: auto;
}
.c {
quotes: "/* " " */";
}
</style>
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>

View file

@ -0,0 +1,4 @@
<!doctype html>
<div class="a">Well, hello friends!</div>
<div class="b">“Well, hello friends!”</div>
<div class="c">/* Well, hello friends! */</div>