New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Css contain #10549

Merged
merged 10 commits into from Apr 25, 2018

[css-contain] style containment tests for the [no-]?[open|close]-quote

Relates to the spec changes from:
w3c/csswg-drafts#2483
  • Loading branch information...
frivoal committed Apr 20, 2018
commit f6efd2ff775bea39e34b1b260959de618908046b
@@ -0,0 +1,28 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test: style containment and open-quote</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="style containment cause the open-quote value of the content property are scoped to the element's subtree">
<link rel="match" href="reference/quote-scoping-001-ref.html">
<link rel=help href="https://drafts.csswg.org/css-contain/#containment-style">
<style>
div {
quotes: "A" "Z" "1" "9";
}
div::before, span::before {
content: open-quote;
}
div::after {
content: close-quote;
}
div {
contain: style;
}
</style>
<p>Test passes if the text below is "A1Z" (not including the quotation marks).<p>
<div><span></span></div>
@@ -0,0 +1,28 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test: style containment and close-quote</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="style containment cause the close-quote value of the content property are scoped to the element's subtree">
<link rel="match" href="reference/quote-scoping-002-ref.html">
<link rel=help href="https://drafts.csswg.org/css-contain/#containment-style">
<style>
div {
quotes: "A" "Z" "1" "9";
}
div::before {
content: open-quote;
}
div::after, span::after {
content: close-quote;
}
div {
contain: style;
}
</style>
<p>Test passes if the text below is "A9Z" (not including the quotation marks).<p>
<div><span></span></div>
@@ -0,0 +1,32 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test: style containment and no-open-quote</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="style containment cause the no-open-quote value of the content property are scoped to the element's subtree">
<link rel="match" href="reference/quote-scoping-003-ref.html">
<link rel=help href="https://drafts.csswg.org/css-contain/#containment-style">
<style>
div {
quotes: "A" "Z" "1" "9";
}
div::before{
content: open-quote;
}
span::before {
content: no-open-quote;
}
div::after {
content: close-quote;
}
div {
contain: style;
}
</style>
<p>Test passes if the text below is "AZ" (not including the quotation marks).<p>
<div><span></span></div>
@@ -0,0 +1,32 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test: style containment and no-close-quote</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="style containment cause the no-close-quote value of the content property are scoped to the element's subtree">
<link rel="match" href="reference/quote-scoping-003-ref.html">
<link rel=help href="https://drafts.csswg.org/css-contain/#containment-style">
<style>
div {
quotes: "A" "Z" "1" "9";
}
div::before{
content: open-quote;
}
span::after {
content: no-close-quote;
}
div::after {
content: close-quote;
}
div {
contain: style;
}
</style>
<p>Test passes if the text below is "AZ" (not including the quotation marks).<p>
<div><span></span></div>
@@ -0,0 +1,8 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<p>Test passes if the text below is "A1Z" (not including the quotation marks).<p>
<div>A1Z</div>
@@ -0,0 +1,8 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<p>Test passes if the text below is "A9Z" (not including the quotation marks).<p>
<div>A9Z</span></div>
@@ -0,0 +1,8 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test reference</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<p>Test passes if the text below is "AZ" (not including the quotation marks).<p>
<div>AZ</div>
ProTip! Use n and p to navigate between commits in a pull request.