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] test for the root of property scoped to a subtree

Tests the spec changes/clarification from
w3c/csswg-drafts#2349
  • Loading branch information...
frivoal committed Apr 20, 2018
commit 7aad64ade18bce9db257c34d72c6dad126a9e9cd
@@ -0,0 +1,27 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test: style containment and subtree root</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="When considering the effects of the scoped property on elements inside the subtree, the element at the base of the subtree is treated as if it was the root of the document">
<link rel=help href="https://drafts.csswg.org/css-contain/#containment-style">
<link rel="match" href="reference/counter-scoping-003-ref.html">
<style>
div {
contain: style;
counter-increment: c 123;
}
span::before {
content: counter(c);
counter-increment: c 1;
}
</style>
<p>Test passes if the text below is "1 2" (not including the quotation marks).<p>
<div>
<span></span>
<span></span>
</div>
@@ -0,0 +1,9 @@
<!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 "1 2" (not including the quotation marks).<p>
<div>1 2</div>
ProTip! Use n and p to navigate between commits in a pull request.