diff mbox series

[wwwdocs] Use CSS to format gcc-3.1/criteria.html

Message ID alpine.LSU.2.21.1809091222520.6216@anthias.pfeifer.com
State New
Headers show
Series [wwwdocs] Use CSS to format gcc-3.1/criteria.html | expand

Commit Message

Gerald Pfeifer Sept. 9, 2018, 10:26 a.m. UTC
This was the last regular page (outside our main page, where I also 
nearly completed the conversion) that wasn't HTML 5 but used deprecated
elements.

Committed.

Gerald

Generalize the "center" class to also center non-text elements such
as tables.  Use that for gcc-3.1/criteria.html.

Comments

Gerald Pfeifer Sept. 23, 2018, 2:35 p.m. UTC | #1
On Sun, 9 Sep 2018, Gerald Pfeifer wrote:
> This was the last regular page (outside our main page, where I also 
> nearly completed the conversion) that wasn't HTML 5 but used deprecated
> elements.

There were still some warnings, and to avoid those and bring
this page in line with its brethren (gcc-3.0/criteria.html to
gcc-3.4/criteria.html) I applied the patch below.

Gerald

Remove the border="1" attribute from tables to make this fully
HTML 5 (validating without warnings) and aligned with similar
pages.

Index: gcc-3.1/criteria.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-3.1/criteria.html,v
retrieving revision 1.40
diff -u -r1.40 criteria.html
--- gcc-3.1/criteria.html	9 Sep 2018 10:25:43 -0000	1.40
+++ gcc-3.1/criteria.html	23 Sep 2018 12:06:34 -0000
@@ -70,7 +70,7 @@
 systems and the most popular microprocessors.  Of course, where
 possible, the release will support other targets as well.</p>
 
-<table class="center" border="1">
+<table class="center">
 <caption>Primary Evaluation Platforms</caption>
 <tr><th>Chip</th>     <th>OS</th>                  
                       <th>Triplet</th>
@@ -123,7 +123,7 @@
 team, will make reasonable efforts to assist these volunteers by
 answering questions and reviewing patches as time permits.</p>
 
-<table class="center" border="1">
+<table class="center">
 <caption>Secondary Evaluation Platforms</caption>
 <tr><th>Chip</th>     <th>OS</th>
                       <th>Triplet</th>
@@ -197,7 +197,7 @@
 to general information about a package and a source URL.  Versions
 shown here are used for GCC 3.1 integration testing.</p>
 
-<table class="center" border="1">
+<table class="center">
 <caption>Integration Tests</caption>
 <tr><th>Name</th>
     <th>Language</th>
@@ -309,7 +309,7 @@
 Therefore, we will use the following benchmarks for measuring code
 quality:</p>
 
-<table class="center" border="1">
+<table class="center">
 <tr><th>Name</th>
     <th>Language</th>
     <th>Source URL</th>
@@ -351,7 +351,7 @@
 
 <p>In order to measure compile-time performance, we will use the
 following unit tests:</p>
-<table class="center" border="1">
+<table class="center">
 <tr><th>Name</th>
     <th>Language</th>
     <th>Source</th>
diff mbox series

Patch

Index: gcc.css
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc.css,v
retrieving revision 1.64
diff -u -r1.64 gcc.css
--- gcc.css	3 Sep 2018 19:43:07 -0000	1.64
+++ gcc.css	9 Sep 2018 10:21:59 -0000
@@ -17,7 +17,7 @@ 
 
 .left     { text-align:left; }
 .right    { text-align:right; }
-.center   { text-align:center; }
+.center   { text-align:center; margin-left:auto; margin-right:auto; }
 .top      { vertical-align:top; }
 
 .width33  { width:33%; }
Index: gcc-3.1/criteria.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-3.1/criteria.html,v
retrieving revision 1.39
diff -u -r1.39 criteria.html
--- gcc-3.1/criteria.html	1 Sep 2018 23:42:03 -0000	1.39
+++ gcc-3.1/criteria.html	9 Sep 2018 10:21:59 -0000
@@ -70,7 +70,7 @@ 
 systems and the most popular microprocessors.  Of course, where
 possible, the release will support other targets as well.</p>
 
-<table align="center" border="1">
+<table class="center" border="1">
 <caption>Primary Evaluation Platforms</caption>
 <tr><th>Chip</th>     <th>OS</th>                  
                       <th>Triplet</th>
@@ -123,7 +123,7 @@ 
 team, will make reasonable efforts to assist these volunteers by
 answering questions and reviewing patches as time permits.</p>
 
-<table align="center" border="1">
+<table class="center" border="1">
 <caption>Secondary Evaluation Platforms</caption>
 <tr><th>Chip</th>     <th>OS</th>
                       <th>Triplet</th>
@@ -197,7 +197,7 @@ 
 to general information about a package and a source URL.  Versions
 shown here are used for GCC 3.1 integration testing.</p>
 
-<table align="center" border="1">
+<table class="center" border="1">
 <caption>Integration Tests</caption>
 <tr><th>Name</th>
     <th>Language</th>
@@ -309,7 +309,7 @@ 
 Therefore, we will use the following benchmarks for measuring code
 quality:</p>
 
-<table align="center" border="1">
+<table class="center" border="1">
 <tr><th>Name</th>
     <th>Language</th>
     <th>Source URL</th>
@@ -351,7 +351,7 @@ 
 
 <p>In order to measure compile-time performance, we will use the
 following unit tests:</p>
-<table align="center" border="1">
+<table class="center" border="1">
 <tr><th>Name</th>
     <th>Language</th>
     <th>Source</th>