mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
23 lines
645 B
HTML
23 lines
645 B
HTML
<!DOCTYPE html>
|
|
<style id="style"></style>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let selectors = [
|
|
":has(:yakthonk)",
|
|
":has(:not(:yakthonk))",
|
|
":has(:has(span))",
|
|
":has(:not(:has(span)))",
|
|
":has(::before)",
|
|
":has(:not(::before))",
|
|
];
|
|
|
|
let style = document.getElementById("style");
|
|
|
|
for (let selector of selectors) {
|
|
style.innerText = `${selector} { color: red; }`;
|
|
println(`${selector} should be invalid: ${style.sheet.cssRules.length === 0 ? "PASS" : "FAIL"}`);
|
|
}
|
|
});
|
|
</script>
|