mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +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:
parent
dc7a52957e
commit
f0a4baabc7
5 changed files with 75 additions and 4 deletions
19
Tests/LibWeb/Ref/css-quotes.html
Normal file
19
Tests/LibWeb/Ref/css-quotes.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue