mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
This cleans up and also allows us to keep the distinction between content: none and content: normal, which allows us to fix the computed style we return from getComputedStyle(). Do this last bit from the resolved value instead of StyleAdjuster, because otherwise we need to tweak every initial struct for ::before / ::after. Differential Revision: https://phabricator.services.mozilla.com/D58276 --HG-- extra : moz-landing-system : lando
15 lines
804 B
HTML
15 lines
804 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Test: initial computed value of content for elements is not none</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-content/#content-property">
|
|
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1605803">
|
|
<link rel="author" href="https://mozilla.org" title="Mozilla">
|
|
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script>
|
|
test(function() {
|
|
assert_equals(getComputedStyle(document.documentElement, "::before").content, "none");
|
|
assert_not_equals(getComputedStyle(document.documentElement).content, "none");
|
|
}, "initial computed value of content for elements is not none");
|
|
</script>
|