mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10: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
16 lines
804 B
HTML
16 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:[email protected]" 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>
|