aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/counters_simple_ref.html
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-03-09 23:24:47 -0600
committerbors-servo <metajack+bors@gmail.com>2015-03-09 23:24:47 -0600
commitfd1bb49a65dd998c8ef9890a1576aaf62ddfdba1 (patch)
treef426bc35a25e9f887f10856ee3e090b9e6cb5891 /tests/ref/counters_simple_ref.html
parentf4a362725faeb41aef85631965d3a4fd6153a70d (diff)
parent8703cd974720ad336349febdaf2649cb08eeea67 (diff)
downloadservo-fd1bb49a65dd998c8ef9890a1576aaf62ddfdba1.tar.gz
servo-fd1bb49a65dd998c8ef9890a1576aaf62ddfdba1.zip
auto merge of #5160 : pcwalton/servo/counters-redux, r=SimonSapin
Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases. Reconstructed from #5138 via raw diffing. r? @SimonSapin
Diffstat (limited to 'tests/ref/counters_simple_ref.html')
-rw-r--r--tests/ref/counters_simple_ref.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ref/counters_simple_ref.html b/tests/ref/counters_simple_ref.html
new file mode 100644
index 00000000000..b1adc96fb26
--- /dev/null
+++ b/tests/ref/counters_simple_ref.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<!-- Tests that `counter` works. -->
+<style>
+h1, h2, h3 {
+ font-size: 24px;
+}
+</style>
+</head>
+<body>
+<h1>1. Foo</h1>
+ <h2>1.1. Boo</h2>
+ <h2>1.2. Quux</h2>
+ <h3>1.2.1. Blah</h3>
+<h1>2. Bar</h1>
+ <h2>2.1. Boo</h2>
+ <h2>2.2. Quux</h2>
+<h1>3. Baz</h1>
+</body>
+</html>
+