layout: Implement a non-recursive version of CSS quotes (#34770)

* Squash and don't explicitly use noto-cjk in tests

Signed-off-by: Xiaocheng Hu <xiaochengh.work@gmail.com>

* Mark quotes-034.html.ini failure

Signed-off-by: Xiaocheng Hu <xiaochengh.work@gmail.com>

* Address review comments

Signed-off-by: Xiaocheng Hu <xiaochengh.work@gmail.com>

---------

Signed-off-by: Xiaocheng Hu <xiaochengh.work@gmail.com>
This commit is contained in:
Xiaocheng Hu 2025-02-28 00:00:21 +08:00 committed by GitHub
parent 31de9c1c21
commit 11f54b9f23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 536 additions and 229 deletions

View file

@ -161519,6 +161519,19 @@
{}
]
],
"quotes-lang-dynamic-001.html": [
"736627eeb0a8b9c44359659782df7212bd2a2256",
[
null,
[
[
"/css/css-content/reference/quotes-lang-dynamic-001-ref.html",
"=="
]
],
{}
]
],
"quotes-slot-scoping.html": [
"3caeabef4eccc76d8703825bf5db09e129186987",
[
@ -413698,7 +413711,7 @@
[]
],
"quotes-slot-scoping-ref.html": [
"e3e907cba589deb2e2c950a0a109cc639d0d16bd",
"a546fa96e56cb89cd081188b363ec8d530ed7f12",
[]
],
"reference": {
@ -413845,6 +413858,10 @@
"quotes-first-letter-002-ref.html": [
"094be48cd8c90b569b82ce26d9083daecca7ae44",
[]
],
"quotes-lang-dynamic-001-ref.html": [
"14ef76596211d5b03f8474387c81821d8d8e628f",
[]
]
},
"resources": {

View file

@ -0,0 +1,2 @@
[content-056.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[content-156.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[content-157.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[first-letter-dynamic-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[first-letter-dynamic-002.xht]
expected: FAIL

View file

@ -10,3 +10,4 @@
[Property bookmark-level does not inherit]
expected: FAIL

View file

@ -1,2 +0,0 @@
[quotes-002.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[quotes-010.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[quotes-021.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[quotes-031.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[quotes-slot-scoping.html]
expected: FAIL

View file

@ -0,0 +1,13 @@
<!doctype html>
<meta charset=utf-8>
<title>CSS-content test: changing the lang attribute affects quotes</title>
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh.work@gmail.com">
<link rel="match" href="reference/quotes-lang-dynamic-001-ref.html">
<link rel=help href="https://drafts.csswg.org/css-content/#quotes">
<div id="root" lang="en"><q>First letter</q></div>
<script>
document.body.offsetTop;
root.setAttribute('lang', 'fr');
</script>

View file

@ -4,15 +4,8 @@
<title>Quote scope Shadow DOM and SLOT</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="help" href="https://www.w3.org/TR/css-content-3/#quote-values">
<style>
q {
quotes: '1''1''2''2''3''3';
}
</style>
</head>
<body>
<q>
<q>Quote</q>
</q>
1 2Quote2 1
</body>
</html>

View file

@ -0,0 +1,7 @@
<!doctype html>
<meta charset=utf-8>
<title>CSS-content test: changing the lang attribute affects quotes</title>
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh.work@gmail.com">
<link rel=help href="https://drafts.csswg.org/css-content/#quotes">
<div>&#xab;First letter&#xbb;</div>